New to Telerik UI for Blazor? Download Free 30-day trial

Chart - Animations

  • Example
    View Source
Loading the demo source code...please wait.
API REFERENCE

Description

Telerik UI for Blazor Chart is a data visualization component which allows you to output graphical representation of your data. It is useful when you would like to utilize modern browser technologies such as SVG or Canvas for interactive data visualizations. The chart supports various numerical, categorical and axis-free types. The current demo focuses on the Chart animations.

The Blazor Chart animates its series when the component renders or when the bound data changes, which draws the attention of the user to the new or updated values. The Transitions parameter of the Chart controls whether these animations are enabled.

The duration and easing of the animations are controlled through a set of CSS variables, rather than through C# parameters. This lets a single motion profile apply consistently across the Column, Line, and other series types rendered within the same Chart. The demo defines several named motion profiles, each pairing a transition duration with a CSS cubic-bezier easing function, and applies the selected profile through inline CSS custom properties on the Chart container.

Use the configurator to choose a motion profile and press the Replay button to call the Refresh method of the Chart, which redraws the series and replays the entry animation with the newly selected timing and easing.

The demo showcases a Blazor Chart that visualizes quarterly product sales with dedicated Column series for each quarter and a Line series that tracks the quarterly average.

This Blazor Charts and Graphs Animations example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.