]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Move and rewrite time helpers (#4549)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 23 Jul 2017 15:41:12 +0000 (17:41 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sun, 23 Jul 2017 15:41:12 +0000 (11:41 -0400)
commit48d6face2844ef932bd3b87a8faea2c536c2e08b
treeb8d4755baa715e9f04db0ed57697a546249c6cc6
parente7445a5f00494dab1e0980be25057fb34d140ffa
Move and rewrite time helpers (#4549)

Move time helpers back into time scale, remove the `Chart.helpers.time namespace` and attempt to make the auto generation logic a bit simpler. The generate method doesn't anymore enforce min/max, the calling code needs to clamp timestamps if needed.
src/core/core.ticks.js
src/helpers/helpers.time.js [deleted file]
src/helpers/index.js
src/scales/scale.time.js
test/specs/scale.time.tests.js