Commit Graph

696 Commits

Author SHA1 Message Date
Ben McCann
948355ef30 Add normalized option (#7538)
Add normalized option to time scales
2020-09-01 11:30:15 -04:00
Jukka Kurkela
5be87ca880 Generic registry for controllers, scales, elements and plugins (#7435)
* Generic registry for controllers, scales, elements and plugins
* Remove references to scale service
2020-09-01 11:30:15 -04:00
Ben McCann
291000a291 Remove duplicate tests (#7568) 2020-09-01 11:30:15 -04:00
Ben McCann
71f313facb Enable autoSkip for time scale to match others (#7570) 2020-09-01 11:30:15 -04:00
Ben McCann
5c2b4c2743 Use all timestamps for calculating offsets (#7573) 2020-09-01 11:30:15 -04:00
Ben McCann
a0a0a1dc55 Generate ticks from small to large (#7559)
* Generate ticks from small to large
* Add note to migration guide
2020-09-01 11:30:15 -04:00
Ben McCann
49f18c262c Add parameters to tooltip filter option (#7556) 2020-09-01 11:30:15 -04:00
Evert Timberg
ce4fb0078e Update tooltip when the display position changes (#7469) 2020-09-01 11:30:15 -04:00
Ben McCann
eadd88caa7 Move timeseries fixtures to their own directory (#7536) 2020-09-01 11:30:15 -04:00
Ben McCann
6a417a15b9 Split time scale into time and timeseries (#7525)
* Split time scale into time and timeseries
* Address comment
2020-09-01 11:30:15 -04:00
Jukka Kurkela
0a10908e8b Consistently resolve element options (#7520)
* Consistently resolve element options
* Add tests
2020-09-01 11:30:15 -04:00
Jukka Kurkela
454d7fe4be Parse from custom properties in data (#7489)
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-09-01 11:30:15 -04:00
Jukka Kurkela
fabcdfec55 Replace horizontalBar with indexAxis: 'y' (#7514)
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
2020-09-01 11:30:15 -04:00
Sebastian Niemann
f23ecd9be5 Turns off interpolation per default (#7386)
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
2020-09-01 11:30:15 -04:00
Jukka Kurkela
2aaab9522a Replace ineffective test with a fixture (#7491) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
978ccbe499 Fix measureText bug in spriting (#7492) 2020-09-01 11:30:15 -04:00
Evert Timberg
0fd5d17b7a Radial scale scriptable options (#7471)
Scriptable radialLinear options
2020-09-01 11:30:15 -04:00
Jukka Kurkela
0bdf0b497c Correctly determine min/max for Float Bar (#7398) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
ac8cb57005 Remove data checks and always re-parse data (#7458)
* Remove data checks and always re-parse data
* Fix removed helper namespace
2020-09-01 11:30:15 -04:00
Jukka Kurkela
d0a1d689fc Implement routing of defaults (#7453)
Implement routing of defaults
2020-09-01 11:30:15 -04:00
Evert Timberg
3efdc36a67 Cleanup Event Handling code to match style of tooltip plugin. (#7467)
* Cleanup Event Handling code to match style of tooltip plugin.

Eliminates saving two arrays of items on the chart prototype. The `onHover`
callback now receives the wrapped event instead of the native one.
2020-09-01 11:30:15 -04:00
Evert Timberg
2aef4274d3 Do not show legend in stacked scatter test (#7470) 2020-09-01 11:30:15 -04:00
Evert Timberg
4cfa465a2b Stacked scatter chart (#7468)
* Handle partially stacked scatter charts
* Update test files
2020-09-01 11:30:15 -04:00
Evert Timberg
937845956c Enable custom legend box heights (#7459)
Enable custom legend box heights
2020-09-01 11:30:15 -04:00
Evert Timberg
575283c5c6 Radial Linear Scale: Compute Value based on distance from center (#7449)
* Radial Linear Scale: Compute Value based on distance from center

* Code review updates
2020-09-01 11:30:15 -04:00
Evert Timberg
e26f7b984a Radar charts should fill to the center by default (#7446)
* Radar charts should fill to the center by default
* Update tests for new defaults
2020-09-01 11:30:15 -04:00
Jukka Kurkela
2b57660aba Make indexable options looping (#7442)
* Make indexable options looping
* Migration note
2020-09-01 11:30:15 -04:00
Jukka Kurkela
89dff23d1f Arc: Stop drawing anything when hidden (#7438)
* Arc: Stop drawing anything when hidden
* Cleanup
2020-09-01 11:30:15 -04:00
Evert Timberg
eb8cd13997 Consider all timestamps for bar measuring (#7421)
* Consider all timestamps for bar measuring
* Fix watched tests for updated file names
* Add test of sparse bar time scales
2020-09-01 11:30:15 -04:00
Jukka Kurkela
521844704c Remove proposal and obsolete features (#7425) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
d74f9fc4dd Alter test to require fever iterations (#7426) 2020-09-01 11:30:15 -04:00
Yiwen Wang
e4f9bec4b3 Fix chart resizing issue (#7297) (#7298)
Fix chart resizing issue
2020-09-01 11:30:15 -04:00
Evert Timberg
0e9def67d2 Legend onClick callback supports arrow functions (#7410)
#7409 Legend callbacks support arrow functions
The `Legend` is no longer implicitly found through `this` and instead
passed as an explicit argument to the callback functions.
2020-09-01 11:30:15 -04:00
Jukka Kurkela
f65b2c0758 Move font* to font.* (#7383) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
82c27a0f86 Rename platform/platform to index removing default (#7391)
Rename platform/platform to index removing default
2020-09-01 11:30:15 -04:00
Jukka Kurkela
bbf63991f8 Delay animations until attached (#7370)
* Delay animations until attached
* Detect container detachment
2020-09-01 11:30:15 -04:00
Jukka Kurkela
1778239b98 Preserve object prototypes when cloning (#7381) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
167b2242e0 Detect data modifications with equal values (#7350)
Fix data shift-push with identical values
2020-09-01 11:30:15 -04:00
Ben McCann
ac168ed449 Add a scale.init method (#7346) 2020-09-01 11:30:15 -04:00
Jukka Kurkela
396c3a7592 Support isoWeekday when rounding (#7269) 2020-09-01 11:30:15 -04:00
Ben McCann
d105092cf1 Remove unused layouts.defaults (#7264)
* Remove unused layouts.defaults
* Add to migration guide
2020-09-01 11:30:15 -04:00
Ben McCann
338c75afd9 Fix overlapping ticks on log scale (#7242) 2020-09-01 11:30:15 -04:00
Ben McCann
dcb57388df Fix filterBetween (#7211)
* Fix filterBetween
* Update with review suggestions
2020-09-01 11:30:15 -04:00
Ben McCann
53205457dc Add tests for rendering to offscreen canvas (#7175)
Add tests for using an offscreen canvas for Chart.js. These tests are
almost identical to existing tests, but with offscreen canvas enabled.

Co-authored-by: David Winegar <david.winegar@getcruise.com>
2020-03-06 12:17:12 -05:00
Jukka Kurkela
a3dddb45d9 Use global element hidden status for Pie charts (#7156)
Use global element hidden status for Pie / polarArea charts
2020-03-01 09:07:39 -05:00
Jukka Kurkela
3b915cbdd3 Convert some of the time scale tests to fixtures (#7154)
* Convert some of time scale tick tests to fixtures
* A little more threshold
2020-02-28 18:56:22 -05:00
Ben McCann
3c1e04f928 Allow registering scale with single parameter (#7157)
Allow registering scale with single parameter
2020-02-27 19:38:10 -05:00
Jukka Kurkela
774493e23d Add some tests to improve coverage (#7164) 2020-02-27 19:37:11 -05:00
Jukka Kurkela
ac69e81b04 Turn elements/index into an index (#7135) 2020-02-26 18:08:29 -05:00
Jukka Kurkela
5e489f16f6 Issue 4991 (#7084)
* Fix remaining handleEvent issues

* Reduce lines

* Update tooltip always on replay

* Address issues

* Fix test

* More tooltip fixing

* Extend comment
2020-02-25 14:35:32 -05:00