Skip to content

Commit c6c991d

Browse files
benmccannetimberg
authored andcommitted
Add a note to the perf documentation about rotation (#6585)
1 parent cec2d26 commit c6c991d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/general/performance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
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:
44

55
* Set `animation: { duration: 0 }` to disable [animations](../configuration/animations.md).
6+
* [Specify a rotation value](https://www.chartjs.org/docs/latest/axes/cartesian/#tick-configuration) by setting `minRotation` and `maxRotation` to the same value
67
* For large datasets:
78
* 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
89
* Set the [`ticks.sampleSize`](../axes/cartesian/README.md#tick-configuration) option in order to render axes more quickly

0 commit comments

Comments
 (0)