]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Better animation when adding or removing data
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 1 Oct 2016 13:38:19 +0000 (15:38 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Mon, 3 Oct 2016 20:01:38 +0000 (16:01 -0400)
commit1484520692293902c9d64d39dc3a014abc98be0f
tree3eefd3f2e9b75e8994bc39f447a2850cbae688c2
parent9deebf837188164078b092a19bf3b7add660406f
Better animation when adding or removing data

In order to simulate real-time chart updates (i.e. horizontal animation), it's necessary to distinguish a removed or added value from a simple update. The dataset controller now hooks array methods that alter the data array length to synchronize metadata accordingly. Also remove the duplicate calls of updateBezierControlPoints() for line and radar charts.
src/controllers/controller.line.js
src/controllers/controller.radar.js
src/core/core.controller.js
src/core/core.datasetController.js
test/core.datasetController.tests.js [new file with mode: 0644]