Anniversary Sale · up to 80% off all librariesEnds Nov 9Shop now
SOFTTDocs
Features
You are reading the documentation for ESP-DASH v4.x.x, which is no longer the latest release. View the v5.x.x documentation.

Toggle Chart Animations

Enable or disable chart animations in ESP-DASH Pro v4 with setChartAnimations(), useful for high-frequency chart updates.

ESP-DASH Pro feature. This functionality is available only in the commercial edition of ESP-DASH.

setChartAnimations() on the ESPDash instance enables or disables chart animations for the dashboard. Disabling animations is useful when you update charts at a high rate.

Chart animations are enabled by default.

Usage

Call setChartAnimations() in setup().

Enable animations

dashboard.setChartAnimations(true);

Disable animations

dashboard.setChartAnimations(false);

On this page