* Radial scale point label backdrop color
* Update default tests
* backdropPadding is a single setting
* Up the tolerance a bit
* Update tick backdrop padding options
* 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
* Clarify interaction docs to indicate they apply to all interactions
* Update note on modes documentation to indicate interaction options exist
* Fix ytpo
* Use null for skipped values instead of NaN
* Document skipped values when parsing is false
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
* fix lint issue
* use isFinite
* revert change checking for pixel values
* ternary readability
* revert accidental paren movement
* test with parsing: false
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
* color done
* add example inline plugins for background image and color
* add link to css background
* improve text bit
* fix build error
* implement kurkles feedback
* fix indenting tab -> spaces
* improve clarity of docs by showing party qualified names in table and place of the namespace above
* add missing line
* remove partial qualified names, made some tables unusable and made it overall bit unclear. Added the namespace above each table
* fix sidebars tabs to spaces
* implement kurkles feedback
* 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
* 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
* 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
* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions
* 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
* 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
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.
From what I can tell from testing locally, Chrome doesn't reliably trigger resize events for the final print layout, so using `.resize()` with no parameters doesn't generally work.
I'm not sure if there are circumstances in which the original docs' suggestion of using `.resize()` with no parameters can work; if the original text should be deleted, I can do so.
I also noticed that the TypeScript type definitions for `.resize()` mark the parameters as required, even though the implementation and docs don't require them.