Commit Graph

3939 Commits

Author SHA1 Message Date
Jacco van den Berg
1a7212dff5
Barheight no longer undefined (#9208) 2021-06-02 22:48:42 +03:00
Jacco van den Berg
26f8d7b735
complete custom legend click sample to also work for pie/doughnut charts (#9219) 2021-06-02 22:48:04 +03:00
Jacco van den Berg
b78b7c3534
Add explanation on how to run the samples locally (#9207)
* add explenation on how to run the samples locally

* Remove unecesarry parts from link
2021-06-02 22:47:16 +03: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
Evert Timberg
599e23abfd
Tick backdrop padding is not scriptable (#9191)
* Tick backdrop padding is not scriptable
* Remove unneeded change
* Update _scriptable for callback
2021-05-30 16:59:49 -04: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
Evert Timberg
5082d13d5a
Version bump to 3.3.1 (#9182) 2021-05-29 17:35:57 -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
8c63351067
Add documentation about default scales (#9173) 2021-05-28 07:37:21 -04:00
Jukka Kurkela
aa6a9737bd
Add declaration for Decimation plugin (#9172) 2021-05-28 07:36:24 -04:00
Jukka Kurkela
188da82206
Fix clearStacks with custom scaleId (#9170) 2021-05-28 07:36:59 +03:00
Jukka Kurkela
77cfac1785
Ignore items outside chart area for interaction (#9171) 2021-05-27 17:15:50 -04:00
Jacco van den Berg
f486610693
Update pointstyle type and default value (#9168) 2021-05-26 11:21:57 -04:00
Jacco van den Berg
140cbb4cd6
show the utils file in the samples page to clarify what the functions do (#9160) 2021-05-26 07:55:26 -04: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
0d6fa55714
Bump version to 3.3, update dependencies (#9149) 2021-05-24 07:49:10 -04:00
Evert Timberg
087f9c30c5
Improved error message when no date adapter provided (#9147) 2021-05-22 08:59:02 -04:00
Sylhare
ee519606f2
Fix scales option in example (#9146) 2021-05-21 17:56:21 -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
Jacco van den Berg
6f7d5fbb64
add legend to the default onclick to make sample work (#9126) 2021-05-19 10:40:10 -04:00
Jon Rimmer
cffce1b46f
Correctly extend ExtendedPlugin interface (#9124) 2021-05-19 10:39:48 -04:00
Jon Rimmer
8c5d6be197
Add missing props to ChartArea type (#9123) 2021-05-19 10:39:27 -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
Evert Timberg
ccff2fd163
Add documentation note about only styling the parent div (#9115) 2021-05-18 08:11:17 -04:00
Jacco van den Berg
43d3f4d19b
remove double sentence and adjust scale to scales.r (#9111) 2021-05-17 17:08:39 +03:00
Jukka Kurkela
d1a243efec
Delay data to elements synchronization to update (#9105) 2021-05-15 08:22:15 -04:00
Evert Timberg
e344c75eb8
Upgrade dependencies (#9102) 2021-05-15 08:14:23 +03:00
Jukka Kurkela
fbff165942
Make sure context indices are up to date (#9101) 2021-05-14 17:16:22 -04:00
Akihiko Kusanagi
0ba5c70618
Support monotone cubic interpolation for vertical line charts (#9084)
* Support monotone cubic interpolation for vertical line charts

* Use more more intuitive veriable names
2021-05-14 17:07:26 -04:00
Evert Timberg
927f24a809
Add test for issue 9085 (#9091) 2021-05-14 23:58:02 +03:00
Akihiko Kusanagi
953b23b4ef
Fix element reset animations in vertical line and bubble charts (#9088) 2021-05-13 16:22:58 -04:00
Jukka Kurkela
f1ca99bfd4
Fix setting options in array of objects (#9062)
* Fix setting options in array of objects

* CC
2021-05-12 23:08:17 +03:00
Evert Timberg
024f406223
Fix polar area tooltip item label (#9067) 2021-05-12 07:54:21 -04:00
Jacco van den Berg
9885126ac0
add default values so it wont crash on out of memory calculation by calcualting power of infinity (#9060) 2021-05-10 08:50:17 -04:00
Josh Kelley
1df4883aff
Fix detecting changed events (#9050)
* Fix detecting changed events

Because `this._listeners` may contain both event handlers from options and internal event handlers for responsive support, the `setsEqual` check would often fail, causing event handlers to be unnecessarily detached and reattached and fired.

If I'm understanding correctly, this is the root cause of #9049.

* Use a separate object for responsive listeners

Correctly update events when responsive property changes as well as when requested events change.

* Code review feedback
2021-05-10 08:48:03 -04:00
Toni Dietze
c955ffad64
Round canvas.style dimensions to avoid blurring (#9015)
When canvas.height and canvas.width are set, the numbers are rounded to
integers. The same rounding must be applied to canvas.style.height and
canvas.style.width to avoid scaling of the canvas which would lead to
blurring.

Acknowledging that canvas.height and canvas.width are integers, the
framebuffer is now only redrawn if those integer values change.
2021-05-08 08:11:52 +03:00
Evert Timberg
a87175f119
HTML legend handles doughnut/pie charts (#9044)
* HTML legend handles doughnut/pie charts

* Fix lint error
2021-05-08 08:10:18 +03:00
Jukka Kurkela
9a787705fd
Types: Export DecinmationAlgorithm as const (#9046) 2021-05-07 15:49:23 -04:00
Jukka Kurkela
33c16382b3
Allow scale to auto-adjust it's min when stacked (#9045) 2021-05-07 15:48:55 -04:00
Jukka Kurkela
7c3a412887
Add includeBounds option for cartesian ticks (#9020)
* Add includeBounds option for cartesian ticks

* Types, test and fix

* lint

* Improve linear tick min/max collision detection

* Update comments
2021-05-07 09:03:37 +03:00
Jukka Kurkela
137b51d87d
Fix line segments with alignToPixel (#9042) 2021-05-06 21:06:40 -04:00
Jukka Kurkela
1a1e677699
Fix: Avoid negative layout dimensions (#9027) 2021-05-05 07:49:44 -04:00
hiroki shimizu
f5c51afd51
fix typo on api.md (#9030) 2021-05-05 07:49:05 -04:00