114 Commits

Author SHA1 Message Date
Jukka Kurkela
b4441417ae
Types: Add tooltip to chart instance (#9490) 2021-07-28 07:57:55 -04:00
Jukka Kurkela
1c837a9c12
Fix _isPointInArea helper when no area is provided (#9489) 2021-07-28 07:57:35 -04:00
Jukka Kurkela
243c9707d6
Types: Change context.chart to plain Chart (#9477) 2021-07-27 08:26:54 -04:00
Jukka Kurkela
8c0354460a
Update radar dataset option typings (#9462) 2021-07-24 21:35:13 +03: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
Jukka Kurkela
c73add9d6c
Typescript 4.2+ compatibility (#9444) 2021-07-20 07:55:51 -04:00
Evert Timberg
8008488aba
Allow dataset specific ChartMeta type extensions (#9432) 2021-07-19 13:33:18 -04:00
Filip Borkiewicz
8dc7696348
Define bounds as a field common to all cartesian axes options (#9438)
Associated with #9437.
2021-07-19 13:06:12 -04:00
Drew J. Sonne
f315daf5cf
Add missing resizeDelay option to types (#9403)
This option is defined in the documentation (https://www.chartjs.org/docs/master/configuration/responsive.html) and the native js code, but not listed in the types. This allows its use in typescript.
2021-07-13 13:43:21 -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
6ab2e8cdcd
Indicate that SubTitle is a plugin in TS types (#9386)
* Indicate that `SubTitle` is a plugin in TS types

* Export subtitle plugin options
2021-07-10 16:26:37 +03:00
Evert Timberg
6349df98c6
Fix type linting for merge between two PRs (#9385) 2021-07-10 08:08:27 -04:00
Jukka Kurkela
d661bd788b
Resolve warnings from typings (#9363) 2021-07-09 07:03:11 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context (#9373) 2021-07-09 06:57:55 -04:00
Evert Timberg
ab613a301f
Improve LegendElement and TooltipItem type definitions (#9376)
* Document LegendElement properties in TS

* Pass chart type to LegendElement

* Update tooltip item dataset type
2021-07-09 06:57:30 -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
Evert Timberg
5f58c1f8e0
Update types with more possible events (#9336) 2021-07-01 09:37:49 -04:00
Jacco van den Berg
760fcff6fa
Fix typing of the isoWeekday field (#9330) 2021-07-01 08:24:40 -04:00
Jacco van den Berg
e4c7a73e31
resolves #9316 (#9317) 2021-06-25 08:07:11 -04:00
Jacco van den Berg
8d3b64bb3c
added fill type to line in options object and to radar dataset options (#9284) 2021-06-18 07:20:13 -04:00
Josh Kelley
2768c7dea7
Fix type definitions for getPixelForValue (#9263)
Update docs: From what I can tell, the `index` parameter was re-introduced as part of the new `normalized` option.
2021-06-14 07:49:27 +03:00
Jacco van den Berg
8780aaf3aa
add missing types to legend (#9226) 2021-06-03 08:04:04 -04:00
Evert Timberg
c853ca6942
Allow setting a constance spacing between arc elements (#9180) 2021-05-29 17:47:44 -04:00
Jukka Kurkela
aa6a9737bd
Add declaration for Decimation plugin (#9172) 2021-05-28 07:36:24 -04:00
Jon Rimmer
cffce1b46f
Correctly extend ExtendedPlugin interface (#9124) 2021-05-19 10:39:48 -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
Jukka Kurkela
9a787705fd
Types: Export DecinmationAlgorithm as const (#9046) 2021-05-07 15:49:23 -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
Evert Timberg
49e7edae49
Enable scriptable element chart options (#9012) 2021-05-01 13:30:14 -04:00
Evert Timberg
ea7b8cb04f
Add test for DecimationAlgorithm type (#9010)
* Add test for DecimationAlgorithm type
* Allow strings to be set
* Linting
2021-05-01 12:36:40 -04:00
Evert Timberg
af7965fc31
Cartesian scale tick backdrop (#8931) 2021-04-18 12:49:22 +03:00
Jukka Kurkela
aee45c611e
Fix tooltip positioners and scriptable signature (#8909) 2021-04-16 15:45:33 -04:00
Evert Timberg
cc4ce7adef
Do not redraw endlessly on mouse move (#8898)
* Do not redraw endlessly on mouse move

The tooltip incorrectly determined that the position changed leading to many redraws

* Code review feedback
2021-04-15 16:36:03 -04:00
Jacco van den Berg
f76ca010e8
add number, null and undefined as valid return types (#8891) 2021-04-13 22:24:59 +03:00
Jukka Kurkela
f8885ce7a2
Font validate style, move defaults to weight (#8877) 2021-04-10 15:58:11 -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
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
Moses Mendoza
efc1902da7
Include grace in LinearScaleOptions type definition (#8847)
This commit adds the `grace` option, to the LinearScaleOptions type definition
as documented here,
https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without
this commit the TS compiler does not allow the option.

Signed-off-by: Moses Mendoza <mendoza.moses@gmail.com>
2021-04-08 07:21:03 +03: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
6df7fae625
Add drawTime option to filler plugin (#8796) 2021-04-03 08:13:00 -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
Evert Timberg
8780e15c73
v3.0.0 version bump (#8781)
* v3.0.0 version bump
* Update urls for next -> latest
* Remove TS urls
2021-04-02 14:56:54 -04:00
Evert Timberg
877f4c6b2d
Fix tooltip align & external types (#8782) 2021-04-02 10:53:00 -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
Josh Kelley
54c5b7a084
Add a convenience alias for scale options (#8732)
* Add a convenience alias for scale options

Closes #8731

* Add an automated test

* Use parameter for a more realistic test
2021-03-26 16:20:59 -04:00
Jukka Kurkela
499a71d4eb
Make type-tests strict (#8717) 2021-03-25 15:09:35 -04:00