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

Chart - Pie Chart

  • Pie-chart.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming


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 Pie Chart.

The Blazor Pie Chart displays the data as sectors from a two-dimensional circle. It is practical for displaying data as parts of a whole. The Pie Chart allows using only one series. Therefore, it is not applicable for visualizing comparison of different sets of data.

The Blazor Pie Chart exposes various configuration options. You can alter the default rotation to change the start angle of the series – by default, the first segment starts at the top. The individual segments of the Pie Chart are marked with different colors that can be customized through the ColorField property of the series. The Blazor Pie Chart also allows you to focus a specific segment – the ExplodeField property of the series can be used to set an Exploded Segment that will be visually separated from the rest of the circle with a small margin. You can additionaly configure the segment visibility in the legend.

Besides series customization, the Blazor Chart exposes multiple nested tags that allow you configure the rest of the chart elements – Legend, Plot Area, Tooltip. Check the Chart API Reference for a full list of properties, methods and events.

This demo showcases a Blazor Pie Chart that visualizes the Spain electricity production for 2008. There is a category defined for each electricity type and a dedicated segment for each category representing its value.

This Blazor Charts and Graphs Pie Chart 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.