mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-20 23:26:53 +01:00
Add a note to the perf documentation about rotation (#6585)
This commit is contained in:
committed by
Evert Timberg
parent
cec2d2652e
commit
c6c991d0f0
@@ -3,6 +3,7 @@
|
||||
Chart.js charts are rendered on `canvas` elements, which makes rendering quite fast. For large datasets or performance sensitive applications, you may wish to consider the tips below:
|
||||
|
||||
* Set `animation: { duration: 0 }` to disable [animations](../configuration/animations.md).
|
||||
* [Specify a rotation value](https://www.chartjs.org/docs/latest/axes/cartesian/#tick-configuration) by setting `minRotation` and `maxRotation` to the same value
|
||||
* For large datasets:
|
||||
* You may wish to sample your data before providing it to Chart.js. E.g. if you have a data point for each day, you may find it more performant to pass in a data point for each week instead
|
||||
* Set the [`ticks.sampleSize`](../axes/cartesian/README.md#tick-configuration) option in order to render axes more quickly
|
||||
|
||||
Reference in New Issue
Block a user