]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Change `ticks.mode` to `scale.distribution` (#4582)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 30 Jul 2017 19:24:29 +0000 (21:24 +0200)
committerGitHub <noreply@github.com>
Sun, 30 Jul 2017 19:24:29 +0000 (21:24 +0200)
commit97e23737210bbfb5612b41e2573430350f1aeee6
treee411cf0f598b8cb73d291a5b222f0e68e24bb2b3
parent53b7a6392fe839a72c10eb8f7e24a5581302394d
Change `ticks.mode` to `scale.distribution` (#4582)

Fix `ticks.mode` behavior when `ticks.source` is `auto`: the lookup table is now built from the data and not from the ticks, so data (and ticks) are correctly distributed along the scale. Rename the option to `distribution` (more explicit than `mode`) and since this option applies from now on the data, it seems better to have it under `scale` instead `scale.ticks`.
src/scales/scale.time.js
test/specs/scale.time.tests.js