From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 23 Oct 2019 00:57:51 +0000 (-0700) Subject: Add a note to the perf documentation about rotation (#6585) X-Git-Tag: v2.9.0~1^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6c991d0f03cbcbdb975172e7f6b39591bec6cc5;p=thirdparty%2FChart.js.git Add a note to the perf documentation about rotation (#6585) --- diff --git a/docs/general/performance.md b/docs/general/performance.md index 2d3397e6e..96e0b5e1b 100644 --- a/docs/general/performance.md +++ b/docs/general/performance.md @@ -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