Commit Graph

2938 Commits

Author SHA1 Message Date
Evert Timberg
e431554072
#5573 Link PolarArea chart docs to radial axis docs (#6901) 2020-01-03 14:56:22 -05:00
Jukka Kurkela
f4792306e0 Remove global from defaults (#6893) 2020-01-03 14:07:38 -05:00
Jukka Kurkela
099e552e6d Small optimizations (#6868)
* Only extend element if configuration is provided

* Time scale lookup optimization
2020-01-03 13:57:25 -05:00
Jukka Kurkela
afe30ca642 Determine if data is sorted (#6885)
* Determine if data is sorted
* Short circuit getMinMax when sorted
* Docs
2020-01-03 13:56:41 -05:00
Evert Timberg
e96ad6f249
Remove HTML legend that is mostly unsupported. (#6887)
* Remove HTML legend that is mostly unsupported.

Resolves the discussion in #5070

* Add migration docs
2020-01-03 13:56:11 -05:00
Evert Timberg
4ab6d7cc2a
Enable override settings for the axis border (#6883)
* Enable override settings for the axis border - #4041

Adds two new options to the cartesian axis: `borderColor` and `borderWidth`
which are used to control the border drawn at the edge of the axis area.
If these options are not set, the first grid line settings are used.

* Correct spelling
2020-01-03 13:55:50 -05:00
Jukka Kurkela
5d94cacb91 Update documentation of order (#6897) 2020-01-03 09:08:15 -05:00
Jukka Kurkela
03f65d4e7f Linear scale: use suggested limits as defaults (#6892)
* Linear scale: use suggested limits as defaults

* Review update
2020-01-03 09:07:33 -05:00
Evert Timberg
27129db2e8
Update some dependencies that have security alerts (#6891) 2020-01-02 09:42:48 -05:00
Evert Timberg
b35e552686
Convert Chart class to an ES6 class (#6886)
* Chart class is now an ES6 class
* Use of const and let in core Chart class
* Use import/export for core Chart file
2020-01-01 18:11:16 -05:00
Ben McCann
f388ed3136 Remove outdated element tests (#6869) 2020-01-01 16:02:17 -05:00
Jukka Kurkela
ab3928694f Optimize arrayUnique (#6871) 2019-12-31 12:56:33 -05:00
Jukka Kurkela
102a311b44 Rewrite filler (#6795)
Filler plugin is rewritten and test coverage increased
2019-12-31 12:56:15 -05:00
Ben McCann
8bc250f63a Remove unnecessary method argument (#6878)
Remove unnecessary method argument
2019-12-31 08:23:03 -05:00
Jukka Kurkela
3427479a25 IE11 compatibility (#6872) 2019-12-30 17:15:57 -05:00
Jukka Kurkela
dbd835f4f3 Use ticks consistently (#6873) 2019-12-30 17:14:55 -05:00
Jukka Kurkela
1cda96946b Fix default collections table (#6879) 2019-12-30 16:54:19 -05:00
Ben McCann
29801da9f5 Improved getMaxOverflow (#6874) 2019-12-30 14:54:13 -05:00
Jukka Kurkela
e48a402935 core.animations ES6 (#6867) 2019-12-29 16:55:01 -05:00
Jukka Kurkela
0b68786c04 Resync metasets array when indices change. (#6864)
* Resync metasets array when indices change.
* Make sure _metasets is initialized
2019-12-28 09:49:34 -05:00
Ben McCann
e39970d494 Alphabetize migration guide (#6865)
Alphabetize migration guide
2019-12-28 08:19:31 -05:00
Jukka Kurkela
b83f64b16e Rewrite animation logic (#6845)
* Rewrite animation logic

* Review update 1

* Review update 2

* Review update 3

* Add 'none' to api.md
2019-12-27 17:13:24 -05:00
Ben McCann
3abe9bfebf Replace Object.entries with Object.keys (#6862) 2019-12-26 08:49:22 -05:00
Ben McCann
fc7a72a8c1 Remove helpers.where and unnecessary calls to helpers.each (#6860)
* Remove unnecessary calls to helpers.each

* Remove where
2019-12-25 08:21:42 -05:00
Ben McCann
2bef1e9f23 Remove executable bit from tests (#6854) 2019-12-20 21:14:41 -05:00
Ben McCann
fc158eea89 Fix log scale autoSkip issues (#6853) 2019-12-20 21:14:21 -05:00
SansDK
1d35ebb290 (feature) Added separate top and bottom padding for title plugin. (#6852)
* (feature) Added separate top and bottom padding for title plugin.

* Added regular padding multiplier like how it was before.

* Now makes use of toPadding helper.
Fixed typo in toPadding helper.

* Fixed requested changes.
2019-12-20 08:21:20 -05:00
Jukka Kurkela
d60f634ff0 Fix automatic min value of stacked scale. (#6851) 2019-12-19 14:58:23 -05:00
Ben McCann
f34d349328 Removed unused method (#6849) 2019-12-19 08:27:32 -05:00
Ben McCann
39f27f68b5 Fix category scale autoSkip (#6847) 2019-12-18 11:01:53 -05:00
Ben McCann
1127ff561b Fix rendering of table in tooltip documentation (#6846) 2019-12-18 11:01:38 -05:00
Ben McCann
33f08f53b5 Make tests work with karma-cli (#6840) 2019-12-17 14:18:19 -05:00
Evert Timberg
c8bdca62e8
Move all helpers to src/helpers (#6841)
* Move all helpers into src/helpers

* Move curve helpers to their own file

* DOM helpers moved to their own file

* Update migration docs

* Remove migration docs on new functions
2019-12-17 08:04:40 -05:00
Evert Timberg
374b7491a3
Allow axes to be centered on the chart area (#6818)
Allow axes to be centered on the chart area or at a dynamic position based on another axis
2019-12-16 18:17:42 -05:00
Ben McCann
e25936648c Optimize tooltip event handler (#6827)
* Optimize tooltip event handler

* Address review comments

* Additional cleanup
2019-12-15 08:26:17 -05:00
Ben McCann
3093562b33 Rename calculateTickRotation to calculateLabelRotation (#6809) 2019-12-14 13:22:57 -05:00
Ben McCann
2be634a478 Interactions cleanup (#6825) 2019-12-14 13:09:50 -05:00
Jukka Kurkela
15785fdc54 Cache sorting order of dataset metas (#6757)
* Cache sorting order of dataset metas
* Cache dataset visibility
2019-12-14 13:03:09 -05:00
Ben McCann
9090b53410 Make elements optional (#6829) 2019-12-13 23:52:18 -05:00
Ben McCann
3baade7862 Tests and fixes for data watching (#6831)
* Tests and fixes for data watching
* Remove call to _configure
2019-12-13 23:51:59 -05:00
Ben McCann
6f6005d7b8 Shrink _parsed to match if dataset shrinks (#6826) 2019-12-10 18:57:21 -05:00
Ben McCann
dc4cff748f Convert line controller to use const/let (#6820) 2019-12-10 18:56:42 -05:00
Ben McCann
b7caa2410c Store parsed data more similarly to provided data (#6814)
* Store parsed data more similarly to provided data

* Add test
2019-12-08 08:52:11 -05:00
Chris Lamb
c4483d1864 Make the build reproducible (#6817)
Whilst working on the Reproducible Builds effort [0] we noticed that
Chart.js could not be built reproducibly.

This is because it was embedding another build date in a "banner"
comment. This patch uses the value from SOURCE_DATE_EPOCH [1] if
present.

This was originally filed in Debian as #946333 [2].

 [0] https://reproducible-builds.org/
 [1] https://reproducible-builds.org/specs/source-date-epoch/
 [2] https://bugs.debian.org/946333

Signed-off-by: Chris Lamb <lamby@debian.org>
2019-12-07 10:41:56 -05:00
Jukka Kurkela
53c6c618c6 Allow pre-parsed data (to scale id's) (#6768)
* Allow pre-parsed data (to scale id's)
* Only update `count` references in pre-parsed mode
* Documentation
2019-12-06 19:47:00 -05:00
Evert Timberg
7c41b6ae8a
Scale use modules (#6813) 2019-12-06 19:44:53 -05:00
Ben McCann
6961bd6baf Use const/let in time scale (#6806) 2019-12-03 17:53:33 -05:00
Edward Thomson
f615035926 Update GitHub Actions CI to include pull requests (#6705)
* Update GitHub Actions CI to include pull requests

Update GitHub Actions CI to include pull requests, and limit both triggers to the master branch.

* Run coveralls publish on bash

Always run coveralls publish on bash - on Windows, the default shell is PowerShell but that is not appropriate for this workflow.

* Run GitHub Actions against the 2.9 branch
* Temporarily remove macOS continuous integration

Chrome is unhappy executing the tests after an update to macOS Catalina.
Remove macOS CI until that can be resolved.
2019-12-03 17:52:39 -05:00
Ben McCann
07890d9620 Fix typo (#6805) 2019-12-03 17:52:04 -05:00
Evert Timberg
5a99dff5f7
Convert src/helpers to use ES6 exports (#6797)
* Canvas helpers exported
* Easing helpers use exports
* Math helper uses export
* Linting
* RTL options use export
* Allow object spread operator
* Rest of helpers use `export`
2019-12-01 13:28:34 -05:00