2201 Commits

Author SHA1 Message Date
Jukka Kurkela
6552a01265 Stop modifying options in interaction handlers (#9939)
* Stop modifying options in interaction handlers
* Don't use object spread
2021-12-01 17:55:58 -05:00
Jukka Kurkela
db995af158 Fix resolver caching issue when setting values (#9938) 2021-12-01 17:53:55 -05:00
Jukka Kurkela
f10fab6591 Fix tooltip caret position when it is positioned at the corners (#9922)
* Fix tooltip caret position when  at the corners

* Add test

Co-authored-by: Dirk Gausmann <di.gaus@gmx.de>
2021-11-30 00:02:00 +02:00
Jukka Kurkela
93452501d1 Category: Track automatically added labels (#9921)
* Category: Track automatically added labels

* Use correct yAxisKey (does not change anything)
2021-11-29 23:38:11 +02:00
Evert Timberg
7cbc47becc Chart area boxes receive 0 margin during the final layout process (#9915) 2021-11-28 10:25:27 -05:00
Jukka Kurkela
bccb1276f0 Detect detach/attach in same observation (#9876)
* Detect detach/attach in same observation

* Missing `!`, better tests

* reduce duplication
2021-11-27 21:46:00 +02:00
Jukka Kurkela
838d40b2c8 Synchronize data visibility with data changes (#9857)
* Synchronize data visibility with data changes

* avoid babel spread bug

* Simpler?

* one more

* simple enough, cc?
2021-11-18 00:13:31 +02:00
Jukka Kurkela
0c5db4973e Fix inRange for full circle arc (#9871)
* Update misleading sample comment

* Fix inRange for full circle arc
2021-11-18 00:10:19 +02:00
Jukka Kurkela
0dc733a96c Configure all datasets before updating any (#9872)
* Update misleading sample comment

* Configure all datasets before updating any
2021-11-18 00:09:25 +02:00
Jukka Kurkela
c8b885dd3e Prevent proxying CanvasGradient in Node platform (#9861) 2021-11-15 20:09:43 -05:00
Ben McCann
7966227df3 Pass number format to tooltip (#9831) 2021-11-10 16:02:42 -05:00
Josh Kelley
aac0bef060 Fix cleaning up metasets (#9656)
* Fix cleaning up metasets

I believe it's a mistake to only delete the metaset if it has a valid controller; see f191f2f5 for where this behavior was introduced.

This is a minimal fix for #9653; as discussed there, it may also be worth updating `updateHoverStyle`.

As of #7030, `this._metasets` should always be defined, so checking whether it's undefined is no longer necessary.

* Add a test covering metaset behavior

* Add a regression test for #9653; fix `toHaveSize` usage

* Fix test failure
2021-10-23 18:46:33 +03:00
Atharva Deshpande
30e66bc50e Fix: Typo 'is less' -> 'are lesser' (#9755)
* Fix: Typo 'is less' -> 'are lesser'

* Update plugin.decimation.js
2021-10-16 22:41:27 +03:00
Jukka Kurkela
6a250de81d Add chart, p0.raw, p1.raw to segment context (#9761)
* Add chart, p0.raw, p1.raw to segment context

* Types
2021-10-15 15:56:29 -04:00
Jukka Kurkela
18fc9760e1 Fix stacked fill with lines over multiple scales (#9767) 2021-10-15 08:00:14 -04:00
Jukka Kurkela
81acad9f2b Bubble: Properly parse radius for non-object data (#9764) 2021-10-15 07:57:39 -04:00
Jukka Kurkela
0dcf025ab7 Support nested scriptable defaults for datasets (#9770) 2021-10-14 08:35:51 -04:00
Jukka Kurkela
9a47395010 Fix controller.getMinMax for stacked charts (#9766) 2021-10-14 00:24:38 +03:00
Jukka Kurkela
12c5f9a839 Support nested scriptable options for datasets (#9758)
* Support nested scriptable options for datasets
2021-10-13 08:41:22 -04:00
Jukka Kurkela
bc5e5cbf11 Disable animations for BasicPlatform (offcreen) (#9751)
* Disable animations for BasicPlatform (offcreen)
* Update types
2021-10-11 14:37:25 -04:00
Jukka Kurkela
10292c6912 Linear: determine grace amount from range (#9719) 2021-10-04 17:43:04 -04:00
Toni Dietze
93fcec595c cache also undefined values in option resolver (#9661)
Otherwise, repeated lookups of undefined properties always trigger the
comparatively expensive resolution. This can be the case for example in
_calculateBarIndexPixels() in controller.bar.js when looking up
options.skipNull and options.maxBarThickness, which is done for each bar
in a bar chart.
2021-10-04 14:02:45 -04:00
Jukka Kurkela
e1ae5e6abf Add layout.autoPadding option (#9716) 2021-10-04 14:01:10 -04:00
Jukka Kurkela
0d4880e35c Fix chart crashing when only min is defined (#9718) 2021-10-04 14:00:27 -04:00
Kurt Preston
60b094a9af Fix chart crashing when max is defined but ticks are empty (#9641)
* Fix chart crashing when max is defined but ticks are empty

* Adding spec to reproduce scale bounds calculation error

Co-authored-by: Kurt Preston <kpreston@drw.com>
2021-10-04 20:30:16 +03:00
nikethan rai
0093b0fca8 Fix: Typo spaning--> spanning (#9710) 2021-10-03 09:39:20 -04:00
nikethan rai
f0f645de5f Fix: Typo ingnore-->ignore (#9711) 2021-10-03 08:50:02 -04:00
nikethan rai
7dabae9a86 Fix: Typo that-->than (#9708) 2021-10-02 17:02:38 -04:00
Jukka Kurkela
c3a53f06d7 Bar: fix too thick borders (#9678) 2021-09-25 07:52:03 +03:00
Jukka Kurkela
5587738fa4 Add sanity check for stepSize (#9679) 2021-09-24 18:13:10 -04:00
Evert Timberg
8e68481ec4 Remove const me = this pattern (#9646) 2021-09-14 07:37:22 -04:00
Jukka Kurkela
183a1a9f67 Fix segment styling with gaps (#9644) 2021-09-13 16:31:34 -04:00
Evert Timberg
f5c9a656ef Configurable tooltip box padding (#9625) 2021-09-06 09:13:21 -04:00
Jukka Kurkela
3f23aaba9a Add sanity checks for scale options (#9624) 2021-09-06 07:51:18 +03:00
Evert Timberg
71fa55acac Add parsing support to pie/doughnut charts (#9622) 2021-09-05 13:46:26 -04:00
Evert Timberg
0cdadd2560 Enable per-corner border radius in tooltip (#9620) 2021-09-05 13:07:28 -04:00
Shubham Aggarwal
4af9851584 Ensure that controllers derived from the bar controller work correct in stacked charts (#9587)
* change parameter of functions
* argument and parameter change in DatasetController.js
* changing variable name to proper convention
* Update controller.bar.js
2021-09-04 13:43:34 -04:00
Jukka Kurkela
50ad1637b0 Fix plugin event filtering of renamed events (#9613) 2021-09-04 13:41:47 -04:00
Jukka Kurkela
8d68b119bc Fix control points on animated line w/o border (#9592)
Co-authored-by: Jukka Kurkela <jukka.kurkela@scmbest.fi>
2021-09-01 20:39:48 -04:00
Jukka Kurkela
fca0309223 Detect attach/detach from any level (#9557) 2021-08-18 18:14:09 -04:00
Alex Van Liew
f8a9d60fd5 [feat] support crossAlign on mirrored y-axis (#9563) 2021-08-18 07:48:36 -04:00
Jukka Kurkela
4d99658155 Remove chart.scale property (always undefined) (#9556) 2021-08-17 07:52:04 -04:00
Evert Timberg
7835973eb0 Keep track of parsed array changes when parsing===false (#9525)
* Keep track of parsed array changes when parsing===false

* Code review feedback
2021-08-14 09:07:58 -04:00
Jukka Kurkela
1c837a9c12 Fix _isPointInArea helper when no area is provided (#9489) 2021-07-28 07:57:35 -04:00
Jacco van den Berg
e8f2a5a271 Remove index override, (#9469)
Make barchart more inline with v2 behaviour and other charts
2021-07-27 07:59:39 -04:00
Evert Timberg
d0eac36381 Ensure getPrototypeOf will not crash on plugin options with no scopes (#9431)
* Ensure getPrototypeOf will not crash on plugin options with no scopes

* Code review improvements
2021-07-24 06:40:03 +03:00
Jukka Kurkela
0d0481d64c Fix DomPlatform.isAttached (#9448) 2021-07-23 08:28:09 +03:00
Jukka Kurkela
b32fb48574 Bar: add 'middle' option for borderSkipped (#9452)
* Bar: add 'middle' option for borderSkipped
* Split in 2
2021-07-21 07:13:45 -04:00
Jukka Kurkela
cf951ac611 Add ability to hide specific data element (#9450) 2021-07-21 07:08:02 -04:00
Jukka Kurkela
151188e2f2 Add data/dataset indices to line segment context (#9451) 2021-07-21 07:00:05 -04:00