43 Commits

Author SHA1 Message Date
Jacco van den Berg
16e6acc6b9
Allow array for line opts in dataset (#10179)
* fix line as array ts error

* added test

* implement only for the border,background color and radius
2022-02-20 21:31:42 -05:00
Evert Timberg
cb81592989
Allow spanGaps to be specified on LineOptions (#10133) 2022-02-06 15:11:02 -05:00
Evert Timberg
c869972b60
Ensure that min/max of TimeScaleOptions can be a string (#10137) 2022-02-06 13:53:03 -05:00
Evert Timberg
2995775f68
Correct type for updateHoverStyle (#10131)
* Correct type for updateHoverStyle
* Lint fixes
2022-02-05 09:26:31 -05:00
Jacco van den Berg
cc807b22d3
add SubTitle to ts test register (#10117) 2022-01-31 12:15:33 -05:00
Jukka Kurkela
cd9d5289a4
Add borderJoinStyle option for arc elements (#9877)
* Add borderJoinStyle option for arc elements
* docs + types
* Consistently enumerate the possible choices
2021-12-05 08:56:37 -05:00
Evert Timberg
f8992a6168
Doughnut chart options have an offset property (#9916) 2021-11-28 13:01:00 -05:00
Jukka Kurkela
e43730eb4d
Fix incomplete TS type for Chart.register + others (#9855) 2021-11-15 12:56:56 -05:00
Jukka Kurkela
1749e57918
Remove scriptability from defaults.font types (#9794)
* Remove scriptability from defaults.font types

* Remove failing test
2021-10-29 07:32:12 -04: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
7993fc95dc
Types: Move tooltip methods to model from plugin (#9729) 2021-10-06 08:53:27 -04:00
Evert Timberg
00712f19d6
Support false for doughnut and polar area chart animation options (#9699) 2021-10-01 19:17:36 +03:00
Jukka Kurkela
990a2890d5
Fix some typings issues (#9680)
* Types: Add scope to ticks.callback

* Fix some typings issues
2021-09-24 18:13:53 -04:00
Jukka Kurkela
3ed94559dd
Add missing typings of helpers, add automatic test (#9570)
* Add missing typings of helpers, add automatic test

* Add error handling to autogen.js
2021-09-01 20:27:26 -04:00
Jukka Kurkela
b4441417ae
Types: Add tooltip to chart instance (#9490) 2021-07-28 07:57:55 -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
Evert Timberg
8008488aba
Allow dataset specific ChartMeta type extensions (#9432) 2021-07-19 13:33:18 -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
124581a679
Add type tests for float bar / object data arrays (#9348) 2021-07-04 07:26:22 -04:00
Jukka Kurkela
aa6a9737bd
Add declaration for Decimation plugin (#9172) 2021-05-28 07:36:24 -04:00
Evert Timberg
927f24a809
Add test for issue 9085 (#9091) 2021-05-14 23:58:02 +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
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
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
Evert Timberg
2fc98ddc39
Allow fill: true and null in ChartDataset.data (#8700)
* Handle `fill: true`
* ChartDataset allow number/null data
2021-03-22 18:59:50 -04:00
Jukka Kurkela
537064be9c
Modify Scale typing (#8681) 2021-03-21 10:20:05 -04:00
Jukka Kurkela
aee979da54
Types: fix bubble chart options (#8625) 2021-03-13 08:04:59 -05:00
Jukka Kurkela
0c838432fc
Disable warning of unused variables in types/tests (#8607) 2021-03-10 08:13:04 -05:00
Jukka Kurkela
8d6e87881a
Relocate chart type and dataset type defaults (#8563)
* Relocate chart type and dataset type defaults

* Update types

* Separate overrides and descriptors

* Update derived sample, use merge for inherit

* Don't merge overrides

* Review update
2021-03-06 10:34:52 -05:00
Evert Timberg
91628c1449
Tooltip specific scriptable context (#8561)
* Update plugin to use it's own tooltip context

* Scriptable tooltip option types

* Tests

* Update types to use UnionToIntersection

* Update TooltipItem to use UnionToIntersection
2021-03-04 08:25:24 -05:00
Jukka Kurkela
413b04ffa6
Types: Update ScriptableContext (#8556)
* Types: Update ScriptableContext
* Add data array type test
2021-03-02 07:41:17 -05:00
Jukka Kurkela
d9a2f845f8
Types: Update LayotPosition (#8555) 2021-03-02 07:39:05 -05:00
Jukka Kurkela
3460ef126e
Types: Add couple of tests, move utils to new file (#8526) 2021-02-26 16:29:10 -05:00
Jukka Kurkela
bb82aaa320
Update types so instance can be assigned to a variable of type Chart (#8525)
* Update types
* Remove outdated comments
2021-02-25 19:06:32 -05:00
Jukka Kurkela
b06cd36697
Rename cutoutPercentage to cutout + chores (#8514) 2021-02-24 16:58:01 -05:00
Jukka Kurkela
e55a12ce87
Add linting of type tests (.ts) + fix errors (#8505) 2021-02-23 11:41:00 -05:00
Jukka Kurkela
65bfacd9a5
Add outerRadius option to doughnut/pie (#8487) 2021-02-21 17:30:37 -05:00
Evert Timberg
aa69892823
Provide a chart-type specific definition for ParsedData (#8480)
* Provide a chart-type specific definition for ParsedData
* Fix lint error
* Code review feedback
2021-02-21 13:10:19 -05:00
Jukka Kurkela
def8d25d4b
Fix animation types, add test (#8476) 2021-02-21 09:15:26 -05:00