991 Commits

Author SHA1 Message Date
Jukka Kurkela
1c837a9c12
Fix _isPointInArea helper when no area is provided (#9489) 2021-07-28 07:57:35 -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
92e39a295d
Apply segment styles with only single segment (#9447) 2021-07-20 08:45:18 -04:00
Jukka Kurkela
ba2f158dc6
Fix interaction on partially visible bar (#9446) 2021-07-20 07:57:56 -04:00
Jukka Kurkela
566d722431
Don't draw points outside chartArea (#9443) 2021-07-20 07:52:41 -04:00
Jukka Kurkela
bc7c58d46d
Fix: config.platform was ignored (#9442) 2021-07-20 07:51:16 -04:00
Evert Timberg
991f151f51
Linear scale handle min === max when abs(max) > Number.MAX_SAFE_INTEGER (#9433) 2021-07-18 11:14:33 -04:00
Jacco van den Berg
259f8e8471
lower default value of grid z index so it draws behind chart elements (#9426) 2021-07-16 11:16:31 -04:00
Jukka Kurkela
0094a58ef1
Properly update stacks when datasets index changes (#9425) 2021-07-16 07:15:54 -04:00
Evert Timberg
11045a731a
Fix center axis title positions (#9413)
* Fix the title positions for center positioned axes

* Handle center position for vertical axes

* Tests
2021-07-15 08:20:22 -04:00
Jukka Kurkela
fb45d8aa95
Update a failing fixture (#9414) 2021-07-14 07:39:22 -04:00
Jukka Kurkela
58999ea7ac
Bar: inflate rects by 0.33px to avoid artifacts (#9399)
* Bar: inflate rects by 0.33px to avoid artifacts
* Update fixture
* YAGNI
2021-07-13 18:20:24 -04:00
Jukka Kurkela
c3e709e90e
Fix bar direction when minBarLength is applied (#9400) 2021-07-13 08:02:14 -04:00
Jukka Kurkela
31be610001
Fix stacked box dimension calculation with weights (#9394)
* Fix stacked box dimension calculation with weights

* Fix typo in filename
2021-07-12 07:45:03 -04:00
Jukka Kurkela
47d4b04836
Layout: support box stacking (#9364)
* Layout: support box stacking

* Add stackWeight and sample

* Cleanup, update docs and types

* Avoid div0

* missing semi
2021-07-11 06:23:42 -04:00
Evert Timberg
27b91b7458
Adjust legend hitboxes when RTL and each item has a different size (#9353)
* Adjust legend hitboxes when RTL and
each item has a different size

* Add test for RTL legend hitboxes
2021-07-10 18:36:46 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context (#9373) 2021-07-09 06:57:55 -04:00
Jukka Kurkela
066130be4d
Decimation: Prevent buffer overflow (#9367) 2021-07-07 17:45:31 -04:00
Jukka Kurkela
840599637f
Add 'shape' mode for filler-plugin (#9360) 2021-07-05 17:03:19 -04:00
Nico-DF
b4dee5507c
Adding threshold option to decimation plugin (#9327) 2021-07-04 13:19:35 -04:00
Jukka Kurkela
bb2bddcfd4
Timeseries: support panning (#9345)
* Timeseries: support panning

* Update

* Missing semi, reduntant variables.

* cc
2021-07-03 18:44:44 +03:00
Evert Timberg
fea3f20762
Account for floating point error in niceNum helper (#9343)
* Account for floating point error in niceNum helper
* Better solution
2021-07-01 15:07:32 -04:00
Evert Timberg
3934935caa
Enable pointStyle for doughnut, pie, and polar area charts (#9341)
* Enable pointStyle for doughnut, pie, and polar area charts

* Fix whitespace
2021-07-01 14:15:06 -04:00
Evert Timberg
3a790329c6
Ensure correct item is clicked when a horizontal legend is in RTL mode (#9340) 2021-07-01 14:14:05 -04:00
Jukka Kurkela
c6976e8975
New plugin: subtitle (#9294)
* New plugin: subtitle

* Fix naive error for multiple charts
2021-06-20 07:34:55 -04:00
Jukka Kurkela
87bd5785ff
Legend: fix layout padding handling (#9290) 2021-06-19 18:31:33 -04:00
Jukka Kurkela
ba5ebceca8
Bar: ignore not-grouped bars from group bar count (#9291) 2021-06-19 18:28:05 -04:00
Jukka Kurkela
8f98515f45
Refactor radialLinear scale and renderText helper (#9276)
* Refactor radialLinear scale and renderText helper
* Undo the big move to make review possible
2021-06-18 14:12:27 -04:00
Jukka Kurkela
a8d083ac24
Apply maxTicksLimit to grid when ticks are hidden (#9277) 2021-06-18 14:11:55 -04:00
Jukka Kurkela
4002694e26
Fix: Don't use clip/unclipArea when clip: false (#9286) 2021-06-18 14:11:33 -04:00
Jukka Kurkela
22c02ede02
Fix updating of active elements (#9261) 2021-06-12 14:19:33 -04:00
Evert Timberg
9db3680440
null or undefined should skip grid lines in the time scale (#9252)
* `null` or `undefined` should skip grid lines in the time scale

* Refactor implementation per code review
2021-06-12 10:47:14 -04:00
Evert Timberg
be011768fe
Fix rtl legend text alignment (#9199)
* Start fixing RTL

* Broken test

* Fix right alignment for horizontal legends
2021-06-01 18:36:55 +03:00
Jukka Kurkela
4ac38d033e
Make sure data is parsed before updateElements (#9187)
* Make sure data is parsed before updateElements
* Add test
2021-05-30 14:51:11 -04:00
Jukka Kurkela
9326309afd
Fix error when swapping dataset locations (#9183) 2021-05-30 07:39:00 -04:00
Evert Timberg
c853ca6942
Allow setting a constance spacing between arc elements (#9180) 2021-05-29 17:47:44 -04:00
Jukka Kurkela
db74d2f44c
Linear: Respect bounds option in tick generation (#9181)
* Linear: Respect bounds option in tick generation
* Remove leftover _filterBetween
2021-05-29 17:32:03 -04:00
Jukka Kurkela
188da82206
Fix clearStacks with custom scaleId (#9170) 2021-05-28 07:36:59 +03:00
Jukka Kurkela
03eb826f8c
Stop mutating arc state while drawing (#9153)
* Stop mutating arc state while drawing

* No need for default values

* Nits

* Remove #9152

* Use correct endAngle for clipping
2021-05-25 08:13:37 -04:00
Jukka Kurkela
1d047355e7
Fix: Arc getCenterPoint when full circle (#9152) 2021-05-24 16:14:35 -04:00
Jukka Kurkela
7265bb51d5
Update chartjs-test-utils and mis-sized fixtures (#9135) 2021-05-20 14:59:55 +03:00
Jukka Kurkela
a6f0b37dfe
Further improve linear tick collision estimation (#9129)
* Further improve linear tick collision estimation

* More tolerance

* Re-create fixtures

* And more tolerance
2021-05-20 10:01:47 +03:00
Evert Timberg
78009390ad
Show correct decimal places when using count but min is not an integer (#9122)
* Show correct decimal places when using count but `min` is not an integer
* Fix lint issues
2021-05-19 18:31:15 -04:00
Jukka Kurkela
939ffe02ab
Fix arc offset calculation (#9118) 2021-05-18 19:24:57 -04:00
Jukka Kurkela
749d1fc942
Fix animations when data is replaced (#9120) 2021-05-18 19:24:35 -04:00
Jukka Kurkela
a553d57033
Fix doughnut rotation on float edge cases (#9121) 2021-05-18 19:24:23 -04:00
Jukka Kurkela
d1a243efec
Delay data to elements synchronization to update (#9105) 2021-05-15 08:22:15 -04:00