Ben McCann
738ee34d0b
Scriptable tick fonts ( #6939 )
...
* Remove extra font parsing in Scale.fit
* Implement scriptable options for tick formatting
2020-01-13 19:33:46 -05:00
Jukka Kurkela
5e6fb37646
Detect stack change ( #6947 )
...
* Detect stack change
* Add test
2020-01-13 19:33:24 -05:00
Jose Raul Pérez
b1421c6ea1
Add stroke lines option around ticks to improve readability ( #6787 )
...
Enable stroking of text on of axis labels
2020-01-12 14:22:51 -05:00
Jukka Kurkela
f1677b6652
Limit interactions to chartArea (+/-0.5px) ( #6943 )
...
Limit interactions to chartArea (+/-0.5px)
2020-01-11 18:10:32 -05:00
Jukka Kurkela
5054ecfd7e
Re-parse existing elements when data is replaced ( #6925 )
...
* Re-parse existing elements when data is replaced
* Update test
2020-01-10 18:31:17 -05:00
Jukka Kurkela
547aa51544
Draw active points last ( #6944 )
2020-01-10 18:27:30 -05:00
Ben McCann
c6c4a52257
Switch most requires to imports ( #6935 )
2020-01-09 07:23:53 -05:00
Ben McCann
59120c38f4
Make sampleSize apply to computeLabelSizes ( #6926 )
2020-01-07 07:43:47 -05:00
Ben McCann
3b55de73fa
Improve calculation for number of ticks that can fit ( #6927 )
2020-01-07 07:26:29 -05:00
Evert Timberg
9cb65d2c97
Add API to change data visibility ( #6907 )
2020-01-06 17:16:00 -05:00
Jukka Kurkela
b5d5ed987a
Internal data by axis instead of scale id ( #6912 )
...
* Internal data by axis instead of scale id
* Test
* Update test
* Update docs
2020-01-06 07:22:18 -05:00
Ben McCann
224fc11500
Scale cleanup ( #6916 )
2020-01-05 16:42:15 -05:00
Ben McCann
ecb0784f0d
Remove minSize ( #6910 )
2020-01-05 10:42:42 -05:00
Jukka Kurkela
c9fa553fb2
Remove for of loops for IE compatibility ( #6905 )
2020-01-04 12:59:27 -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
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
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
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
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
fc158eea89
Fix log scale autoSkip issues ( #6853 )
2019-12-20 21:14:21 -05:00
Jukka Kurkela
d60f634ff0
Fix automatic min value of stacked scale. ( #6851 )
2019-12-19 14:58:23 -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
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
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
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
5eed101a53
Use correct dataset index in parseVisibleItems ( #6786 )
...
* Use correct dataset index
* Review1
2019-11-23 17:38:48 -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
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