Simple HTML5 Charts using the tag
Go to file
Evert Timberg 650956b2e1
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
2021-02-01 16:37:32 -05:00
.github Prevent test timeouts due to Chrome backgrounding (#8360) 2021-02-01 07:50:18 -05:00
docs Create a new hook to enable data decimation (#8255) 2021-02-01 16:37:32 -05:00
helpers flat helpers (#7806) 2020-09-28 09:11:55 -04:00
samples tooltip not showing, edit config (#8323) 2021-01-17 10:33:05 -05:00
scripts Update workflow to use GitHub releaes (#7891) 2020-10-15 16:37:38 -04:00
src Create a new hook to enable data decimation (#8255) 2021-02-01 16:37:32 -05:00
test align text inside chart for far-aligned labels passing test (#8359) 2021-01-31 15:19:40 -05:00
types Create a new hook to enable data decimation (#8255) 2021-02-01 16:37:32 -05:00
.browserslistrc Drop legacy browser support (#8009) 2020-11-16 21:01:33 +02:00
.codeclimate.yml Use the Chart.js shared ESLint config (#5112) 2018-01-06 17:59:13 -05:00
.editorconfig Destroy example charts on unmount (#8004) 2020-11-04 14:58:53 -05:00
.eslintignore Fix lint issues in gulpfile.js (#7076) 2020-02-09 11:50:11 -05:00
.eslintrc.yml Switch to eslint-plugin-es (#8075) 2020-11-19 21:23:24 +02:00
.gitignore flat helpers (#7806) 2020-09-28 09:11:55 -04:00
.htmllintrc Make Chart.Animation/animations/Tooltip importable (#5382) 2018-04-02 10:55:52 +02:00
composer.json Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
karma.conf.js Prevent test timeouts due to Chrome backgrounding (#8360) 2021-02-01 07:50:18 -05:00
LICENSE.md Update license year and copyright holders (#5053) 2017-12-31 15:17:22 +01:00
MAINTAINING.md Expand filename (#7893) 2020-10-16 07:40:49 -04:00
package-lock.json Bump version number for beta.10 (#8364) 2021-02-01 23:31:22 +02:00
package.json Bump version number for beta.10 (#8364) 2021-02-01 23:31:22 +02:00
README.md Add note about v3 dev code in readme (#8283) 2021-01-08 06:56:01 +02:00
rollup.config.js Drop legacy browser support (#8009) 2020-11-16 21:01:33 +02:00
tsconfig.json Upgrade TypeDoc (#8267) 2021-01-03 10:23:29 -05:00


Simple yet flexible JavaScript charting for designers & developers

Downloads GitHub Workflow Status Coverage Awesome Slack

Documentation

Currently, there are two versions of the library (2.9.4 and 3.x.x). Version 2 is the latest stable version while 3 is the next (currently beta) version. As such bear the following in mind:

  • Current docs points to version 2.9.4
  • Npm/CDN/etc point to version 2.9.4 (unless you explicitly set newer version, e.g. npm next)
  • Source currently points to 3.x.x version. 2.9.4 source is available here
  • Docs for version 3.x.x are available here

Contributing

Instructions on building and testing Chart.js can be found in the documentation. Before submitting an issue or a pull request, please take a moment to look over the contributing guidelines first. For support, please post questions on Stack Overflow with the chartjs tag.

License

Chart.js is available under the MIT license.