]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Use `datetime` as default time scale tooltip format (#6019)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Mon, 18 Feb 2019 18:45:38 +0000 (10:45 -0800)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Mon, 18 Feb 2019 18:45:38 +0000 (19:45 +0100)
commit3e187081837888fcf8ca724050e773d104a2181b
tree8709c93fe9c6e4537d17616e3f1feb7b02bdf532
parent32aeeac82cdc371b6eb15e0b3442d307e2f36df7
Use `datetime` as default time scale tooltip format (#6019)

Remove the logic that computed an "optimal" tooltip format. Instead, always fallback to the `datetime` adapter format which is more efficient and stable. Additionally, remove the adapter `presets` API, which is not needed anymore.
src/adapters/adapter.moment.js
src/core/core.adapters.js
src/scales/scale.time.js
test/specs/scale.time.tests.js