]> git.ipfire.org Git - thirdparty/Chart.js.git/log
thirdparty/Chart.js.git
4 years agoUpdate ScriptableContext, reduce warnings (#8390)
Jukka Kurkela [Sat, 6 Feb 2021 00:59:55 +0000 (02:59 +0200)] 
Update ScriptableContext, reduce warnings (#8390)

* Update ScriptableContext, reduce warnings

* _parsed is unknown[]

* Add defaults

* static defaults.

* review update

* more cancelables

4 years agoFix/type dateadapter override (#8377)
LeeLenaleee [Sat, 6 Feb 2021 00:15:35 +0000 (01:15 +0100)] 
Fix/type dateadapter override (#8377)

* Not totally sure this is right , but since in core.adapters.js override is part of the dateadapter it seems logical it should be there. Should also fix #8369
* implemented feedback
* Declare the dataAdapter since it will be available at runtime if someone overrides it
* remove declaration. if this is giving problems in the future it might need te be added again

4 years agoFix element creation for large dataset (#8388)
Jukka Kurkela [Fri, 5 Feb 2021 22:53:05 +0000 (00:53 +0200)] 
Fix element creation for large dataset (#8388)

* Fix element creation for large dataset
* Fix syncing
* Remove duplication

4 years agoUpdate types for indexAxis (#8389)
Jukka Kurkela [Fri, 5 Feb 2021 22:39:45 +0000 (00:39 +0200)] 
Update types for indexAxis (#8389)

* Add indexAxis to CoreChartOptions
* Update types for indexAxis

4 years agoAdd raw data to context and rename dataPoint to parsed (#8318)
Ben McCann [Fri, 5 Feb 2021 14:13:32 +0000 (06:13 -0800)] 
Add raw data to context and rename dataPoint to parsed (#8318)

* Make the raw data point available in scriptable context
* Rename variables
* Update samples

4 years agoImprove radial gradient sample (#8383)
Jukka Kurkela [Fri, 5 Feb 2021 12:54:52 +0000 (14:54 +0200)] 
Improve radial gradient sample (#8383)

* Improve radial gradient sample
* Add hover

4 years agoPrevent 2nd parse call with zero count (#8379)
Jukka Kurkela [Thu, 4 Feb 2021 21:59:57 +0000 (23:59 +0200)] 
Prevent 2nd parse call with zero count (#8379)

4 years agoCreate a new hook to enable data decimation (#8255) v3.0.0-beta.10
Evert Timberg [Mon, 1 Feb 2021 21:37:32 +0000 (16:37 -0500)] 
Create a new hook to enable data decimation (#8255)

* Create a new hook to enable data decimation

The `beforeElementUpdate` hook can be used to decimate data. The chart
elements will not be created until after this hook has fired ensuring that
if decimation occurs, only the needed elements will be created.

* Address code review feedback

* Rename hook to beforeElementsUpdate

* Simplify parsing logic

* Add decimation plugin to the core

* Allow a dataset to specify a different data key

* Decimation plugin uses the dataKey feature

* Refactor the decimation plugin to support configurable algorithms

* Lint the plugin changes

* Tests for the dataKey feature

* Convert test files to tabs

* Standardize on tabs in ts files

* Remove the dataKey feature

* Replace dataKey usage in decimation plugin

We define a new descriptor for the `data` key allowing the
plugin to be simpler.

* Disable decimation when indexAxis is Y

* Simplify the decimation width approximation

* Resolve the indexAxis correctly in all cases

* Initial documentation

* Reverse check

* Update TS definitions for new plugin options

* Move defineProperty after bailouts

* Add destroy hook

4 years agoBump version number for beta.10 (#8364)
Evert Timberg [Mon, 1 Feb 2021 21:31:22 +0000 (16:31 -0500)] 
Bump version number for beta.10 (#8364)

4 years agoShave off some bytes (#8362)
Jukka Kurkela [Mon, 1 Feb 2021 13:39:43 +0000 (15:39 +0200)] 
Shave off some bytes (#8362)

4 years agoUpdate type map names (#8356)
Evert Timberg [Mon, 1 Feb 2021 13:38:37 +0000 (08:38 -0500)] 
Update type map names (#8356)

* Rename ElementOptions to ElementOptionsByType

* Rename CommonOptions to CommonElementOptions

* Rename PluginOptions to PluginOptionsByType
Add new PluginChartOptions and remove some duplicates

* Rename ScaleOptions to ScaleOptionsByType

* Use Partial where appropriate

4 years agoPrevent test timeouts due to Chrome backgrounding (#8360)
Jukka Kurkela [Mon, 1 Feb 2021 12:50:18 +0000 (14:50 +0200)] 
Prevent test timeouts due to Chrome backgrounding (#8360)

* Prevent test timeouts due to Chrome backgrounding

* Add karma.conf.js to test filters

4 years agoalign text inside chart for far-aligned labels passing test (#8359)
LeeLenaleee [Sun, 31 Jan 2021 20:19:40 +0000 (21:19 +0100)] 
align text inside chart for far-aligned labels passing test (#8359)

* align text inside chart for far-aligned labels

* added fix for failing test on suggestion of @kurkle

Co-authored-by: Marcel Samyn <marcel.samyn@lab900.com>
4 years agoRename LayoutItem.fullWidth to fullSize (#8358)
Jukka Kurkela [Sun, 31 Jan 2021 18:44:44 +0000 (20:44 +0200)] 
Rename LayoutItem.fullWidth to fullSize (#8358)

4 years agoFix/scatter tooltip mode (#8354)
LeeLenaleee [Sat, 30 Jan 2021 21:22:01 +0000 (22:22 +0100)] 
Fix/scatter tooltip mode (#8354)

* scatter tooltip should be point by default
* edited mode on better level and updated docs to be bit more clear

4 years agoGive elements their own interface definition (#8290)
Josh Kelley [Sat, 30 Jan 2021 19:48:18 +0000 (14:48 -0500)] 
Give elements their own interface definition (#8290)

From what I understand, if we want to allow registering additional element options (see [here][1] for an example), then the element options need to be a top-level interface so that they can be used with TypeScript's [declaration merging][2].

[1]: https://github.com/chartjs/chartjs-plugin-annotation/pull/275#issuecomment-742754562
[2]: https://www.typescriptlang.org/docs/handbook/declaration-merging.html

4 years agofeature: choose custom point style for bar legend display (#8341)
LeeLenaleee [Sat, 30 Jan 2021 16:02:08 +0000 (17:02 +0100)] 
feature: choose custom point style for bar legend display (#8341)

* add feature to choose custom point style for bar legend display
* add documentation and type
* the docs are in the right place now

4 years agogetRelativePosition takes two arguments (#8336)
Evert Timberg [Mon, 25 Jan 2021 20:59:19 +0000 (15:59 -0500)] 
getRelativePosition takes two arguments (#8336)

4 years agoBump socket.io from 2.3.0 to 2.4.1 (#8333)
dependabot[bot] [Sat, 23 Jan 2021 00:05:54 +0000 (19:05 -0500)] 
Bump socket.io from 2.3.0 to 2.4.1 (#8333)

Bumps [socket.io](https://github.com/socketio/socket.io) from 2.3.0 to 2.4.1.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/2.4.1/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/2.3.0...2.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years agoAdd documentation for vertical line charts (#8327)
LeeLenaleee [Mon, 18 Jan 2021 14:15:30 +0000 (15:15 +0100)] 
Add documentation for vertical line charts (#8327)

* add documentation for vertical line charts

* remove the indexAxis prop from dataset since it doesnt belong there, fix horizontal bars example and make vertical line example

* 2 bars to line rename

* fix v3-migration guide

* revert deletion of prop from table in bar, added in line. Removed anchor point in link from v3 docs

* put right text in general of line

4 years agofix canvas clearRect size calculation (#8328)
Marcel Samyn [Mon, 18 Jan 2021 13:59:13 +0000 (14:59 +0100)] 
fix canvas clearRect size calculation (#8328)

Co-authored-by: Marcel Samyn <marcel.samyn@lab900.com>
4 years agoUpdate to test utils 0.1.2 to track font setting (#8325)
Evert Timberg [Mon, 18 Jan 2021 12:40:18 +0000 (07:40 -0500)] 
Update to test utils 0.1.2 to track font setting (#8325)

4 years agotooltip not showing, edit config (#8323)
LeeLenaleee [Sun, 17 Jan 2021 15:33:05 +0000 (16:33 +0100)] 
tooltip not showing, edit config (#8323)

4 years agoDoughnut: complete radians to degrees conversion (#8321)
Jukka Kurkela [Sat, 16 Jan 2021 21:04:48 +0000 (23:04 +0200)] 
Doughnut: complete radians to degrees conversion (#8321)

4 years agoBump v3.0.0-beta.9 (#8320) v3.0.0-beta.9
Evert Timberg [Sat, 16 Jan 2021 19:15:20 +0000 (14:15 -0500)] 
Bump v3.0.0-beta.9 (#8320)

Co-authored-by: Evert Timberg <ever.timberg+github@gmail.com>
4 years agoRevert "Update spelling of cancellable (#8236)" (#8312)
Ben McCann [Sat, 16 Jan 2021 19:14:15 +0000 (11:14 -0800)] 
Revert "Update spelling of cancellable (#8236)" (#8312)

This reverts commit e6dfc47927508c79aa5495be65e8bda32fffddcf.

4 years agoFix reading wrong property from font object for font string (#8315)
LeeLenaleee [Sat, 16 Jan 2021 19:13:13 +0000 (20:13 +0100)] 
Fix reading wrong property from font object for font string (#8315)

4 years agoFix broken links in tooltip docs (#8316)
Ben McCann [Sat, 16 Jan 2021 19:12:43 +0000 (11:12 -0800)] 
Fix broken links in tooltip docs (#8316)

4 years agoDisable Path2D caching when chart is animated (#8319)
Jukka Kurkela [Sat, 16 Jan 2021 19:06:27 +0000 (21:06 +0200)] 
Disable Path2D caching when chart is animated (#8319)

* Disable Path2D caching when chart is animated
* Add note to performance docs

4 years agofixes #8304 (Missing type) beta 8 broken typescript (#8305)
LeeLenaleee [Thu, 14 Jan 2021 12:45:12 +0000 (13:45 +0100)] 
fixes #8304 (Missing type) beta 8 broken typescript (#8305)

* fixes #8304

* Update layout.d.ts

First letter of variable from capital to normal

4 years agoBump version to beta.8 (#8300) v3.0.0-beta.8
Jukka Kurkela [Wed, 13 Jan 2021 12:48:26 +0000 (14:48 +0200)] 
Bump version to beta.8 (#8300)

4 years agoOnly draw points when radius >= 0.1 (#8302)
Jukka Kurkela [Wed, 13 Jan 2021 12:44:03 +0000 (14:44 +0200)] 
Only draw points when radius >= 0.1 (#8302)

4 years agoclarification that strikethrough uses same color as the label color (#8289)
LeeLenaleee [Sun, 10 Jan 2021 20:17:02 +0000 (21:17 +0100)] 
clarification that strikethrough uses same color as the label color (#8289)

4 years agoSkip delete undefined stack (#8291)
LeeLenaleee [Sat, 9 Jan 2021 15:27:18 +0000 (16:27 +0100)] 
Skip delete undefined stack (#8291)

* fixes error on undefined stacks
* added test for functionality

4 years agoUpdate TypeScript ESLint configuration (#8288)
Josh Kelley [Fri, 8 Jan 2021 21:01:20 +0000 (16:01 -0500)] 
Update TypeScript ESLint configuration (#8288)

Using TypeScript-specific ESLint rules fixes some spurious ESLint warnings.

4 years agoAdd note about v3 dev code in readme (#8283)
Evert Timberg [Fri, 8 Jan 2021 04:56:01 +0000 (23:56 -0500)] 
Add note about v3 dev code in readme (#8283)

* Add note about v3 dev code in readme

* Adjust note based on feedback

4 years agoRemove empty line from the options table (#8274)
stockiNail [Thu, 7 Jan 2021 19:48:49 +0000 (20:48 +0100)] 
Remove empty line from the options table (#8274)

4 years agoUpdate doughnut.mdx (#8279)
LeeLenaleee [Thu, 7 Jan 2021 12:54:18 +0000 (13:54 +0100)] 
Update doughnut.mdx (#8279)

Updating quotation mark to fix broken link

4 years agoFix incorrect defaults location for Bubble (#8271)
Jukka Kurkela [Tue, 5 Jan 2021 12:57:09 +0000 (14:57 +0200)] 
Fix incorrect defaults location for Bubble (#8271)

4 years agoFix resize bug of line / radar charts (#8266)
Jukka Kurkela [Tue, 5 Jan 2021 05:24:12 +0000 (07:24 +0200)] 
Fix resize bug of line / radar charts (#8266)

* Line: Make sure control points are re-calculated

* Radar: always set point on update

4 years agoAdd type linting (#8264)
Jukka Kurkela [Tue, 5 Jan 2021 05:23:30 +0000 (07:23 +0200)] 
Add type linting (#8264)

4 years agoUpdate link to latest version of V2 Docs (#8270)
LeeLenaleee [Mon, 4 Jan 2021 20:55:55 +0000 (21:55 +0100)] 
Update link to latest version of V2 Docs (#8270)

4 years agoUpgrade TypeDoc (#8267)
Ben McCann [Sun, 3 Jan 2021 15:23:29 +0000 (07:23 -0800)] 
Upgrade TypeDoc (#8267)

4 years agoUpgrade Docusaurus (#8262)
Ben McCann [Sat, 2 Jan 2021 06:49:11 +0000 (22:49 -0800)] 
Upgrade Docusaurus (#8262)

4 years agoStandardize type declaration indentation with tabs (#8263)
Ben McCann [Sat, 2 Jan 2021 06:46:49 +0000 (22:46 -0800)] 
Standardize type declaration indentation with tabs (#8263)

4 years agoAdds backgroundColor and borderColor options to the documentation (#8257)
stockiNail [Thu, 31 Dec 2020 15:19:58 +0000 (16:19 +0100)] 
Adds backgroundColor and borderColor options to the documentation (#8257)

4 years agoChange title font default option (#8258) (#8259)
stockiNail [Thu, 31 Dec 2020 15:19:24 +0000 (16:19 +0100)] 
Change title font default option (#8258) (#8259)

4 years agoUse provided options in tooltip plugin (#8254)
Jukka Kurkela [Thu, 31 Dec 2020 06:46:23 +0000 (08:46 +0200)] 
Use provided options in tooltip plugin (#8254)

4 years agoTooltip: Render when animations are disabled (#8252)
Jukka Kurkela [Wed, 30 Dec 2020 13:33:30 +0000 (15:33 +0200)] 
Tooltip: Render when animations are disabled (#8252)

4 years agoLine: Set points on resize (to reset Path2D cache) (#8250)
Jukka Kurkela [Wed, 30 Dec 2020 13:31:44 +0000 (15:31 +0200)] 
Line: Set points on resize (to reset Path2D cache) (#8250)

4 years agoFix small bugs when animations are disabled (#8253)
Jukka Kurkela [Wed, 30 Dec 2020 13:31:30 +0000 (15:31 +0200)] 
Fix small bugs when animations are disabled (#8253)

* Fix small bugs when animations are disabled
* Update test

4 years agoSkip reset when animations are disabled (#8248)
Jukka Kurkela [Tue, 29 Dec 2020 15:10:32 +0000 (17:10 +0200)] 
Skip reset when animations are disabled (#8248)

* Skip reset when animations are disabled
* Review update

4 years agoAlways freeze cached options (#8247)
Jukka Kurkela [Tue, 29 Dec 2020 13:45:07 +0000 (15:45 +0200)] 
Always freeze cached options (#8247)

4 years agoLine: Update points directly, when possible (#8246)
Jukka Kurkela [Tue, 29 Dec 2020 07:02:03 +0000 (09:02 +0200)] 
Line: Update points directly, when possible (#8246)

4 years agoUse cached Intl.NumberFormat everywhere (#8244)
Jukka Kurkela [Mon, 28 Dec 2020 17:31:19 +0000 (19:31 +0200)] 
Use cached Intl.NumberFormat everywhere (#8244)

4 years agoMention npm in installation section (#8245)
Ben McCann [Mon, 28 Dec 2020 16:45:43 +0000 (08:45 -0800)] 
Mention npm in installation section (#8245)

4 years agoLine: Use Path2D as cache (#8239)
Jukka Kurkela [Mon, 28 Dec 2020 14:53:30 +0000 (16:53 +0200)] 
Line: Use Path2D as cache (#8239)

* Line: Use Path2D as cache
* Add comment, move to helpers, first and last point

4 years agoRename helpers.clear to helpers.clearCanvas (#8238)
Jukka Kurkela [Mon, 28 Dec 2020 08:21:46 +0000 (10:21 +0200)] 
Rename helpers.clear to helpers.clearCanvas (#8238)

* Change parameters of helpers.clear

* Update test

4 years agoUpdate spelling of cancellable (#8236)
Ben McCann [Mon, 28 Dec 2020 08:20:55 +0000 (00:20 -0800)] 
Update spelling of cancellable (#8236)

4 years agoCache the lineheight regex (#8240)
Evert Timberg [Mon, 28 Dec 2020 08:19:16 +0000 (03:19 -0500)] 
Cache the lineheight regex (#8240)

4 years agoMigrate to chartjs-test-utils (#8237)
Jukka Kurkela [Sun, 27 Dec 2020 19:29:42 +0000 (21:29 +0200)] 
Migrate to chartjs-test-utils (#8237)

4 years agoClean up the LayoutItem type (#8235)
Evert Timberg [Sat, 26 Dec 2020 21:22:55 +0000 (16:22 -0500)] 
Clean up the LayoutItem type (#8235)

4 years agoCache data limits to ensure they are only computed once per update (#8234)
Evert Timberg [Sat, 26 Dec 2020 19:37:23 +0000 (14:37 -0500)] 
Cache data limits to ensure they are only computed once per update (#8234)

* Cache data limits to ensure they are only computed once per updaet
* Replace `invalidateCaches` on scales with `beforeLayout`

4 years agoCreate standardized text render method (#8227)
Evert Timberg [Sat, 26 Dec 2020 16:23:02 +0000 (11:23 -0500)] 
Create standardized text render method (#8227)

* Create standardized text render method
* Document renderText options and enable configurable decoration width
* Add tests for font rendering
* Split color definition to it's own file
* renderText supports setting styles
* Mock context needs to track textBaseline
* renderText can set textAlign and textBaseline
* renderText does not mutate the context + translate/rotate
* Explicitly set the text decoration style
* Move useStroke logic into renderText
* Cartesian scale: Update computeLabelItems to avoid duplicate allocations

4 years agoExample code plugin outdated (#8230)
LeeLenaleee [Thu, 24 Dec 2020 14:40:13 +0000 (15:40 +0100)] 
Example code plugin outdated (#8230)

Update example code.
As stated in the migration guide: `All plugin hooks have unified signature with 3 arguments: chart, args and options.`

4 years agoEnable changing the chart type (#8226)
Evert Timberg [Wed, 23 Dec 2020 18:38:51 +0000 (13:38 -0500)] 
Enable changing the chart type (#8226)

4 years agoRemove duplicate Scriptable definitions (#8223)
Evert Timberg [Tue, 22 Dec 2020 18:10:25 +0000 (13:10 -0500)] 
Remove duplicate Scriptable definitions (#8223)

4 years agoScriptable tick colours (#8222)
Evert Timberg [Tue, 22 Dec 2020 17:11:00 +0000 (12:11 -0500)] 
Scriptable tick colours (#8222)

4 years agoHorizontal axis with center position should display labels (#8221)
Evert Timberg [Tue, 22 Dec 2020 16:33:53 +0000 (11:33 -0500)] 
Horizontal axis with center position should display labels (#8221)

* Horizontal axes with center positions should have labels
* Linting
* Test updates
* Increase the tolerance for one test

4 years agoAdd options to configure tick styling independent of grid lines (#8215)
Evert Timberg [Tue, 22 Dec 2020 16:27:57 +0000 (11:27 -0500)] 
Add options to configure tick styling independent of grid lines (#8215)

* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions

4 years agoEnsure that default collections table is clear (#8216)
LeeLenaleee [Tue, 22 Dec 2020 15:22:25 +0000 (16:22 +0100)] 
Ensure that default collections table is clear (#8216)

addition to #8124

4 years agoAdd note about loading fonts and chart updates (#8214)
Evert Timberg [Mon, 21 Dec 2020 21:10:13 +0000 (16:10 -0500)] 
Add note about loading fonts and chart updates (#8214)

4 years agoEnsure that default animation modes table is clear (#8212)
Evert Timberg [Mon, 21 Dec 2020 20:26:13 +0000 (15:26 -0500)] 
Ensure that default animation modes table is clear (#8212)

4 years agoSplit animation definitions (#8208)
Evert Timberg [Sun, 20 Dec 2020 18:26:09 +0000 (13:26 -0500)] 
Split animation definitions (#8208)

4 years agoDocs/multiline labels (#8201)
LeeLenaleee [Sun, 20 Dec 2020 16:49:39 +0000 (17:49 +0100)] 
Docs/multiline labels (#8201)

* Docs/multiline labels

Fixes #8172

* Update data-structures.md

Update with if the labels is used since it can be skipped by providing the datapoints as an object

4 years agoSplit Element type to it's own definition file (#8206)
Evert Timberg [Sat, 19 Dec 2020 19:56:11 +0000 (14:56 -0500)] 
Split Element type to it's own definition file (#8206)

4 years agoSplit adapter types to their own definition file (#8205)
Jukka Kurkela [Sat, 19 Dec 2020 19:03:26 +0000 (21:03 +0200)] 
Split adapter types to their own definition file (#8205)

* Split adapter types to their own definition file
* Sort & separate

4 years agoSplit geometric types to their own definition file (#8202)
Evert Timberg [Sat, 19 Dec 2020 18:39:35 +0000 (13:39 -0500)] 
Split geometric types to their own definition file (#8202)

* Split geometric types to their own definition file
* Re-export types

4 years agoUpdate CI (#8204)
Jukka Kurkela [Sat, 19 Dec 2020 17:52:18 +0000 (19:52 +0200)] 
Update CI (#8204)

4 years agoUpdate dependencies (#8203)
Jukka Kurkela [Sat, 19 Dec 2020 17:49:06 +0000 (19:49 +0200)] 
Update dependencies (#8203)

4 years agoMerge TS files into a single file to prevent circular loops (#8198)
Evert Timberg [Sat, 19 Dec 2020 15:37:33 +0000 (10:37 -0500)] 
Merge TS files into a single file to prevent circular loops (#8198)

4 years agoUpdate showLine location in defaults (#8199)
LeeLenaleee [Sat, 19 Dec 2020 07:52:27 +0000 (08:52 +0100)] 
Update showLine location in defaults (#8199)

Current defaults was wrong.
Working example: https://jsfiddle.net/Leelenaleee/vL7d6yp0/5/

4 years agoAdd color options to documentation and types where missing (#8196)
stockiNail [Fri, 18 Dec 2020 20:03:01 +0000 (21:03 +0100)] 
Add color options to documentation and types where missing (#8196)

* fixes #8188 and #8189

* removes scriptable context sample with link to options page

* Removes <code> tags in markdown where not needed

4 years agoLayout: enforce box limits, reject <0 chartArea (#8193)
Jukka Kurkela [Fri, 18 Dec 2020 17:56:04 +0000 (19:56 +0200)] 
Layout: enforce box limits, reject <0 chartArea (#8193)

* Skip chartArea boxes when chartArea <= 0
* Legend: limit to maxWidth/maxHeight
* Layout: enforce box limits, reject <0 chartArea
* Update legend fixtures

4 years agoTypeScript updates (#8190)
Josh Kelley [Fri, 18 Dec 2020 17:46:54 +0000 (12:46 -0500)] 
TypeScript updates (#8190)

* Update type definitions and docs for legends

* Fix types for onHover and onClick callbacks

core.controller.js's implementation also passes the Chart instance as `this`. However, that isn't documented, and it's my impression that Chart.js is moving away from passing items as `this`, so I didn't declare it in the type definitions.

* Allow multi-line ticks

* Stricter DeepPartial definition

The previous definition resolved to `{}` (which can allow primitives) if it was given a function, so it was far too broad for any `Scriptable<>` properties.

* Grammar and writing style

* Updates to animation docs

Document the `fn` option, since it's in the type definitions.

Fix callback usage to match example code.

* Fix AnimationEvent parameter

The onProgress and onComplete events were mistakenly declared as taking the standard DOM AnimationEvent.  (Should Chart.js's AnimationEvent be renamed to ChartAnimationEvent to avoid any possible ambiguity?)

* Allow false for disabling animations

* Add comments explaining the layout and usage of Rollup

4 years agoMake PointLabels color scriptable (#8194)
Jukka Kurkela [Fri, 18 Dec 2020 17:36:38 +0000 (19:36 +0200)] 
Make PointLabels color scriptable (#8194)

4 years agoUpdate defaults and types for tick stroke (#8195)
Jukka Kurkela [Fri, 18 Dec 2020 17:36:18 +0000 (19:36 +0200)] 
Update defaults and types for tick stroke (#8195)

4 years agoRadius validation for drawRadiusLine (#8191)
UrielMaD [Fri, 18 Dec 2020 17:35:13 +0000 (11:35 -0600)] 
Radius validation for drawRadiusLine (#8191)

4 years agoMove tooltip plugin hooks to the core Plugin type (#8160)
Evert Timberg [Thu, 17 Dec 2020 23:10:29 +0000 (18:10 -0500)] 
Move tooltip plugin hooks to the core Plugin type (#8160)

* Move tooltip plugin hooks to the core
* Try and use declaration merging for Plugin type
* Merge Plugin types

4 years agoHover: only update styles of changed elements (#8185)
Jukka Kurkela [Thu, 17 Dec 2020 20:18:02 +0000 (22:18 +0200)] 
Hover: only update styles of changed elements (#8185)

4 years agoReject pending promises when animation is updated (#8184)
Jukka Kurkela [Thu, 17 Dec 2020 20:16:55 +0000 (22:16 +0200)] 
Reject pending promises when animation is updated (#8184)

* Reject pending promises when animation is updated
* Add tests

4 years agoAdd ArcElement to getting-started.md (#8174)
David Turbert [Wed, 16 Dec 2020 21:41:19 +0000 (22:41 +0100)] 
Add ArcElement to getting-started.md (#8174)

* fix: add ArcElement to getting-started.md
* fix: add all possible imports
* fix: add text to integration.md

4 years agoRemove dataset while hovered (#8181)
LeeLenaleee [Wed, 16 Dec 2020 21:40:10 +0000 (22:40 +0100)] 
Remove dataset while hovered (#8181)

4 years agoadded comma to fix syntax issue (#8177)
Salman Kazmi [Wed, 16 Dec 2020 15:35:54 +0000 (21:05 +0530)] 
added comma to fix syntax issue (#8177)

4 years agoFix legend alignment issues (#8168)
Jukka Kurkela [Tue, 15 Dec 2020 06:50:13 +0000 (08:50 +0200)] 
Fix legend alignment issues (#8168)

4 years agoArcElement: Skip draw when radius is negative (#8170)
Jukka Kurkela [Mon, 14 Dec 2020 22:13:03 +0000 (00:13 +0200)] 
ArcElement: Skip draw when radius is negative (#8170)

4 years agoUse correct color for legend labels (#8167)
Jukka Kurkela [Mon, 14 Dec 2020 21:08:40 +0000 (23:08 +0200)] 
Use correct color for legend labels (#8167)

* Legend colors fallback
* Update test

4 years agoLegend plugin cleanup (#8109)
Jukka Kurkela [Mon, 14 Dec 2020 13:35:04 +0000 (15:35 +0200)] 
Legend plugin cleanup (#8109)

* Legend plugin cleanup

* cc1

* cc2

* cc3

* start/stop

4 years agoUpdate docs for .resize() method (#8151)
Josh Kelley [Mon, 14 Dec 2020 10:30:20 +0000 (05:30 -0500)] 
Update docs for .resize() method (#8151)

See #7678 and #8149.  (The `silent` parameter mentioned in the original 7678 no longer exists.)

Add JSDoc.

Fix some minor issues with grammar and coding style consistency.

4 years agoQuick exit the legend fit function when the legend is not displayed (#8161)
Evert Timberg [Mon, 14 Dec 2020 10:04:10 +0000 (05:04 -0500)] 
Quick exit the legend fit function when the legend is not displayed (#8161)

When the legend is not displayed, there are no guarantees that the
format of the options dictionary is correct. Rather than performing
computations and then exiting without using the results, we can instead
exit quickly since the size of the legend will be (0, 0) if not displayed