2070 Commits

Author SHA1 Message Date
Jukka Kurkela
0ae0fd4b2a Limit onHover to chartArea (#8794) 2021-04-10 16:13:30 -04:00
Jukka Kurkela
f8885ce7a2 Font validate style, move defaults to weight (#8877) 2021-04-10 15:58:11 -04:00
Jukka Kurkela
9e70913bed Enable event filtering per plugin (#8876) 2021-04-10 15:18:30 -04:00
Evert Timberg
d6d189c804 Legend boxes support borderRadius (#8875) 2021-04-10 15:05:34 -04:00
Evert Timberg
7ee498e412 Tooltip colorbox supports configurable borderWidth, borderRadius, and dash effect (#8874)
* Start on extending tooltip style
* Correct borderRadius implementation
* Tests of updated tooltip styling
* Update docs
2021-04-10 13:37:22 -04:00
Evert Timberg
a84347b035 Handle animating stacked bars from null values (#8872)
* Handle animating stacked bars from null values

* Skipped bars / points should be in the reset state
2021-04-10 20:31:14 +03:00
Jukka Kurkela
7fab66ccd1 Support mirror option on x-axis (#8867) 2021-04-10 09:01:38 -04:00
Jukka Kurkela
1ffdecfe68 Consider dynamically positioned scales for padding (#8868) 2021-04-10 08:58:39 -04:00
Jukka Kurkela
ba84cc5c2a Filler: support segment backgroundColor (#8864) 2021-04-09 19:10:48 -04:00
Jukka Kurkela
4eb59454be Allow styling of line segments (#8844)
Allow styling of line segments

* docs & sample
* Types
* update sample
2021-04-08 18:02:12 -04:00
stockiNail
7ae1064ab9 Apply scale context to ticks scriptable options instead of chart context (#8839)
* Fixes #8835

* context as argument because protected

* fixes test case on formatters

* reverts previous commits and sets the scale context in the scale init

* changes documentation about linear ticks, adding scriptable Yes
2021-04-07 16:45:39 -04:00
Nico-DF
ba3320ef19 Filtering data before decimation (#8843)
* Filtering data before decimation

Using only points between the currently displayed x-axis for the decimation algorithm.
Allows better resolution, especially if using a zoom

If data are outside range, they will not be displayed, hence the line graph will not show the trend at extremities

* Fix LTTB algorithm

* Adding test file

* Simplifying count algorithm for decimation plugin
2021-04-07 16:40:45 -04:00
Jukka Kurkela
c6473da16c _boundSegments did not work on rising line (#8838) 2021-04-07 07:32:28 -04:00
Jukka Kurkela
757ddf2882 Fix: update line options on resize, for gradients (#8832) 2021-04-06 18:54:36 -04:00
Jukka Kurkela
e1ddaa8992 Dissociate border options from grid options (#8823)
* Dissociate border options from grid options
* Update docs
2021-04-04 14:19:07 -04:00
Jukka Kurkela
7d08bab45d Time: Use callback helper on ticks.callback (#8822) 2021-04-04 11:24:42 -04:00
Jukka Kurkela
697e3ffde7 Fix: tick spacing when min=0 | niceMin or max=0 (#8811) 2021-04-04 07:03:48 -04:00
Evert Timberg
bdfaa44ab3 Correct decimation plugin documentation (#8801)
* Correct decimation plugin documentation

* The default for decimation is `false`.
* Added a sample for data decimation
* Corrected an issue in the decimation plugin when switched from enabled to disabled
2021-04-03 13:06:31 -04:00
Evert Timberg
238bfa589c Add the ability to change font color per legend item (#8800) 2021-04-03 11:55:27 -04:00
Jukka Kurkela
74f118818b Proxy: Only create scopes when setting values (#8799) 2021-04-03 11:10:52 -04:00
Jukka Kurkela
1451e5aee6 Add ability to stack different dataset types (#8797) 2021-04-03 09:23:35 -04:00
Jukka Kurkela
6df7fae625 Add drawTime option to filler plugin (#8796) 2021-04-03 08:13:00 -04:00
Jukka Kurkela
bd1df1bc34 Logarithmic: handle null/NaN values (#8793) 2021-04-03 08:01:48 -04:00
Evert Timberg
6f6b1b2d17 Doughnut/Pie chart border radius (#8682)
* Arc with rounded ends implementation
* End style option
* Working border radius implementation for arcs
* Linting
* Fix bug introduced when converting to new border object
* Fix bugs identified by tests
* Arc border radius tests
* Add test to cover small borderRadii
* Reduce the weight of the arc border implementation
* lint fix
2021-04-03 07:58:51 -04:00
Jukka Kurkela
98e890cc7b Patch: option scope might not be an object (#8789) 2021-04-02 16:13:36 -04:00
Jukka Kurkela
515d941df7 Proxy: make sure set value ends up in first scope (#8787) 2021-04-02 13:47:05 -04:00
Jukka Kurkela
dd99005b5a Remove line interaction overrides + hover.onHover (#8770)
* Remove interaction mode overrides + hover.onHover

* Restore bar override
2021-04-01 13:47:11 -04:00
Jukka Kurkela
9fb18c2fd7 Fix typo, add tests to catch (#8768)
* Fix typo, add tests to catch
* Tune tests
2021-04-01 11:11:14 -04:00
Jukka Kurkela
bc2c92e65c Ensure scriptable context reflects updated data (#8765) 2021-04-01 07:17:02 -04:00
Evert Timberg
d2c8402445 Scriptable title plugin options (#8764) 2021-04-01 10:16:03 +03:00
Jukka Kurkela
f1810586f7 Pie: Fix last slice animation and NaN handling (#8760)
* Pie: Fix last slice animation and NaN handling

* Add tests

* Fix polarArea
2021-03-31 15:25:25 -04:00
Jukka Kurkela
88c585b11e Legend: adjust lifecycle and event handling (#8753) 2021-03-30 10:12:07 -04:00
Jukka Kurkela
1a5a15265a Revert "Scale: draw offset grid for labels before autoSkip (#8748)" (#8752)
This reverts commit cdba66ccef.
2021-03-30 08:00:19 -04:00
Jukka Kurkela
cdba66ccef Scale: draw offset grid for labels before autoSkip (#8748)
* Scale: draw offset grid for labels before autoSkip
* fix tests
2021-03-29 16:53:47 -04:00
Jukka Kurkela
fe406bf717 Legend: Ignore replayed events (#8749) 2021-03-28 12:21:53 -04:00
Jukka Kurkela
64593ed74c Time: Fix offset with low data counts (#8740) 2021-03-27 15:55:54 -04:00
Evert Timberg
0b21578a3a Improved alignment of pixels in scales at low widths (#8739)
* Improved alignment of pixels in scales at low widths
* Undo scale changes
2021-03-27 15:00:21 -04:00
Jukka Kurkela
b2c7baf10d Avoid recursive event replay loops (#8738)
* chart._lastEvent = null while processing onHover

* Pass replay flag to external tooltip

* Add test for replay

* cc
2021-03-27 06:11:51 -04:00
Jukka Kurkela
396cbcb979 Bubble: Fix maxOverflow before elements update (#8736) 2021-03-26 18:20:05 -04:00
Jukka Kurkela
37080c9a8d Add comments for finding registry hook calls (#8734) 2021-03-27 00:10:41 +02:00
Evert Timberg
4d69a8510c fix: Scales correctly respect the locale setting when generating labels (#8710) 2021-03-24 09:33:47 -04:00
Jukka Kurkela
bbf298f461 formatters.numeric: verify ticks length (#8705)
* formatters.numeric: verify ticks length
* use tickValue as fallback delta, add tests
* cc, chore
2021-03-23 16:14:22 -04:00
Jukka Kurkela
74f2f85ec3 Line: update all points when scale range changes (#8703) 2021-03-23 08:28:38 -04:00
Jukka Kurkela
e51a401449 Category: parse to valid index values only (#8697) 2021-03-22 17:20:03 -04:00
Jukka Kurkela
9499a1e1ef Move scale defaults to separate file (#8692) 2021-03-21 18:13:50 -04:00
Jukka Kurkela
bd9bc69c0c Move autoSkip related functions to separate file (#8691) 2021-03-21 17:07:28 -04:00
Jukka Kurkela
992cdec1b4 Make sure all helpers are exported (#8688) 2021-03-21 11:27:30 -04:00
Jukka Kurkela
7e8e7f0137 Generalize toTRBL and toTRBLCorners (#8686) 2021-03-21 11:05:20 -04:00
Evert Timberg
375d856a87 Expose formatNumber as a helper (#8683) 2021-03-21 11:04:27 +02:00
Jukka Kurkela
81342d6c65 Fix _isPointInArea for undefined point (#8678) 2021-03-19 16:09:13 -04:00