]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Handle data visibility per chart
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 23 Apr 2016 08:57:29 +0000 (10:57 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Tue, 26 Apr 2016 10:46:29 +0000 (12:46 +0200)
commit29115c9d2c94f5f52a22fa5e9d39244726a7d9d2
tree4cbb62ce9e35603f29eba6d0fccbf01ea5727339
parent82b1e5cd99d77744aac3c1a3c532bbf99b2578cf
Handle data visibility per chart

New Chart.Element.hidden bool flag storing the visibility state of its associated data. Since elements belong to a specific chart, this change allows to manage data visibility per chart (e.g. when clicking the legend of some charts).

This commit also changes (fixes?) the polar chart animation when data visibility changes. Previous implementation was affected by an edge effect due to the use of NaN as hidden implementation.
src/controllers/controller.doughnut.js
src/controllers/controller.polarArea.js
src/core/core.controller.js
src/core/core.element.js
src/scales/scale.linear.js
src/scales/scale.logarithmic.js
src/scales/scale.radialLinear.js