Dan Onoshko
ce375a6876
feat: add ESM support ( #10525 )
...
* feat: add ESM support
* build: rename UMD bundle
* chore: edit supbackages description
* style: disable es/no-import-meta linter rule
* test: dynamic import in cjs module
* docs: edit integrations page
* docs: review fixes
* chore: remove useless regex in webpack config
* ci: test size-limit only for ESM bundle
2022-08-04 18:43:26 -04:00
Jacco van den Berg
0312697f38
Add index to legendItem interface ( #10436 )
...
* Add index to legendItem interface for doughnut, pie and polarArea charts. Make datasetIndex optional since the before named charts dont include it.
* Remove test to check if datasetIndex has been set in generateLabels function for legend
2022-06-22 09:22:53 -04:00
Jukka Kurkela
7993fc95dc
Types: Move tooltip methods to model from plugin ( #9729 )
2021-10-06 08:53:27 -04:00
Jukka Kurkela
b4441417ae
Types: Add tooltip to chart instance ( #9490 )
2021-07-28 07: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
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
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
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
e55a12ce87
Add linting of type tests (.ts) + fix errors ( #8505 )
2021-02-23 11:41:00 -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