]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add a note to the perf documentation about rotation (#6585)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Wed, 23 Oct 2019 00:57:51 +0000 (17:57 -0700)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 23 Oct 2019 00:57:51 +0000 (20:57 -0400)
docs/general/performance.md

index 2d3397e6eeae8fe173d25903c3b78102faff254a..96e0b5e1ba8fa5baad9ba1c636ea708a68f0ad87 100644 (file)
@@ -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