]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Filtering data before decimation (#8843)
authorNico-DF <difalco.nicola@gmail.com>
Wed, 7 Apr 2021 20:40:45 +0000 (22:40 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 20:40:45 +0000 (16:40 -0400)
commitba3320ef1962b6f16ae08fca95ae86ecd7d8afc8
tree99b82fae7e830ddbb56aa56cdd3ef77871211591
parent82d42bd799f5c47f1d69299db29039d97cb49329
Filtering data before decimation (#8843)

* Filtering data before decimation

Using only points between the currently displayed x-axis for the decimation algorithm.
Allows better resolution, especially if using a zoom

If data are outside range, they will not be displayed, hence the line graph will not show the trend at extremities

* Fix LTTB algorithm

* Adding test file

* Simplifying count algorithm for decimation plugin
src/controllers/controller.line.js
src/plugins/plugin.decimation.js
test/specs/plugin.decimation.tests.js [new file with mode: 0644]