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
Ben McCann
ea90365972
Don't store _meta on dataset ( #6778 )
2019-11-21 07:20:18 -05:00
Ben McCann
64bc48ab53
Remove Element.initialize ( #6777 )
2019-11-21 07:06:15 -05:00
Jukka Kurkela
1a9db4783c
Remove _ctx from Element ( #6764 )
...
* Remove _ctx from Element
* Sort
2019-11-19 19:01:32 -05:00
Ben McCann
34b93751db
Change updateElement to updateElements ( #6722 )
2019-11-19 07:12:38 -05:00
Ben McCann
edbeaac29f
Remove _getPixelForOffset ( #6763 )
...
* Remove _getPixelForOffset
* Update migration guide
2019-11-19 07:09:50 -05:00
Jukka Kurkela
e5b03a0975
Improve stacking performance and footprint ( #6762 )
...
* Improve stacking speed and footprint
* Better utilization of caches
* Chore
2019-11-18 18:51:58 -05:00
Jukka Kurkela
542f598e6d
Fix tick spacing calculation ( #6761 )
2019-11-18 18:45:54 -05:00
Jukka Kurkela
eb0751c6d0
Point cleanup ( #6755 )
...
* remove steppedLine from Point
* Remove tension from Point
* Migration guide, private
2019-11-17 20:28:13 -05:00
Ben McCann
f5b2b8db64
Reduce object creation during parsing ( #6758 )
...
* Reduce object creation during parsing
* Rename method to createElement
* Make code more efficient?
* Update migration guide
2019-11-17 18:01:31 -05:00
Evert Timberg
4b4b4b79e1
Convert all scales to use ES6 classes
2019-11-16 13:49:35 -05:00
Ben McCann
b1748068db
Stacks readability improvements ( #6753 )
...
* Stacks readability improvements
* Variable renames
2019-11-16 10:52:41 -05:00
Jukka Kurkela
d610205e29
Clean up element.line and do data decimation when applicable ( #6731 )
...
Decimate line drawing to improve performance and reduce extraneous drawing
2019-11-15 13:51:41 -05:00
Jukka Kurkela
1d84251ded
Fix tick range options in tests ( #6748 )
2019-11-15 13:14:01 -05:00
Ben McCann
8f0de52c4e
Remove moment from dependencies ( #6745 )
...
* Remove moment from dependencies
* Remove version number in docs
2019-11-15 13:13:33 -05:00
Jukka Kurkela
7f97adf5a0
Move scale defining options up from ticks
( #6738 )
...
* Move scale defining options up from `ticks`
* Include `ticks.reverse` in v3-migration
2019-11-15 12:11:13 -05:00
Jukka Kurkela
aa3e4c4d27
Tooltip label and value via controller ( #6744 )
2019-11-15 11:51:45 -05:00
Jukka Kurkela
931d686adb
Float bars: data as objects ( #6739 )
...
Float bars can be specified in object data points
2019-11-15 08:40:45 -05:00
Ben McCann
c12ca17e38
Remove unused helpers.canvas.roundedRect ( #6734 )
2019-11-15 07:49:41 -05:00
Ben McCann
64b4776242
Include helpers._alignPixel only once ( #6735 )
2019-11-14 07:17:29 -05:00
Ben McCann
cb95a36b94
Fix value passed to getPixelForTick ( #6724 )
2019-11-14 07:15:44 -05:00
Jukka Kurkela
4feaea925f
Small chores ( #6740 )
...
* Remove duplicate code
* Migrate `xLabel` and `yLabel` from docs & samples
2019-11-13 19:04:56 -05:00