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
Ben McCann
1f3cf3c28d
Remove createElement and pre-allocate arrays ( #6788 )
...
* Remove createElement and pre-allocate arrays
* Address review comment
2019-11-28 07:00:50 -05:00
Ben McCann
090b5aee1f
Improve autoSkip performance ( #6783 )
...
* Improve autoSkip performance
* Maintain tick ordering
2019-11-27 18:24:57 -05:00
Jukka Kurkela
6d8bde48bd
Simplify stacking even more, leverage more ES6 features ( #6769 )
...
* Simplify stacking even more
* Destructuring
2019-11-24 07:53:52 -05:00
Jukka Kurkela
d5393003ac
Add min/max to performance documentation ( #6785 )
...
* Add min/max to performance documentation
* Review1
* Review2
2019-11-23 17:39:12 -05:00
Jukka Kurkela
5eed101a53
Use correct dataset index in parseVisibleItems ( #6786 )
...
* Use correct dataset index
* Review1
2019-11-23 17:38:48 -05:00
Ben McCann
fb3cad0b94
Assume time series data has been normalized ( #6775 )
...
* Assume time series data has been normalized
* Add sentance to docs
2019-11-23 17:37:32 -05:00
Evert Timberg
62bbaeb98d
Convert elements to use ES6 modules (import/export) ( #6776 )
...
* Enable ES6 modules
* Convert elements to use import/export
* Need default export for backwards compatibility
* Remove dangling comma
2019-11-23 12:26:55 -05:00
Evert Timberg
e6cf2fe8b8
Fix broken tests ( #6780 )
2019-11-22 07:28:31 -05:00
Jukka Kurkela
ce74eb76a1
Convert axis options from arrays to objects ( #6773 )
...
* Convert axis options from arrays to objects
* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs
* Fix additional tests
* Ensure scale defaults are set if type is not explicitly defined
* Another step
* Include `scale` as `firstIDs.r`
* update docs
* Update for buildOrUpdateScales
* Update migration guide
* Add test back
2019-11-21 18:46:49 -05:00
L M
18e3bc0624
Allow filling above and below with different colors ( #6318 )
...
Two colors allowed : first one to fill above the target, second to fill below
Tests added
Docs edited
2019-11-21 13:48:31 -05:00