Animation in React Chart

The animation property in the ChartSeries component controls the visual transition effects applied when chart elements are rendered or updated. Instead of appearing abruptly, elements transition smoothly, resulting in a more engaging and polished chart experience.

You can customize this behavior using the following properties:

  • enable - Controls whether animation is enabled for the chart series. When set to true, the series will animate when first rendered or when data changes.
  • delay - Specifies the delay time before the animation starts. This property is particularly useful for creating staggered animation effects when multiple series are present, allowing each series to animate sequentially rather than simultaneously.
  • duration - Defines the total time taken to complete the animation. A higher value creates slower, more gradual animations, while lower values create faster transitions.
Loading...