From b821378e680ba34eb66e80801e772aa28f00d42f Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 22 Oct 2019 17:57:51 -0700 Subject: [PATCH] Add a note to the perf documentation about rotation (#6585) --- docs/general/performance.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/general/performance.md b/docs/general/performance.md index 2d3397e6eea..96e0b5e1ba8 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