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

Chart - Pyramid Chart

Loading the demo source code...please wait.
API REFERENCE

Description

The Telerik UI for Blazor Chart is a data visualization component that renders interactive SVG graphics and supports numerical, categorical, and axis-free series types. The current demo focuses on the Pyramid Chart.

The Blazor Pyramid Chart displays values as horizontal segments that form a pyramid. It is practical for visualizing stages that increase toward a goal, levels in an organizational or skill hierarchy, and the distribution of values across ordered categories. The widening shape of the chart makes the relative size of each level easy to compare at a glance.

The demo displays two Pyramid Charts side by side. The first chart shows the number of participants at each level of a learning program, from the foundation level to certification. The second chart represents the structure of a company, from individual contributors to directors. Both charts show the level values as formatted labels and display a tooltip with the exact value when the user hovers over a segment.

The Pyramid series exposes the following parameters that control its appearance:

  • DynamicHeight controls whether the segment heights are proportional to their values. The first chart enables this option, so larger values create taller segments. The second chart disables it, so all segments have equal heights while their widths still form the pyramid shape.
  • SegmentSpacing sets the distance between adjacent segments in pixels.

The ColorField parameter of the series assigns a custom color to each level, while the ChartSeriesLabels and ChartSeriesTooltip child tags configure the segment labels and the tooltip template. The Chart also supports legend positioning, titles, and the other common Chart settings for the Pyramid series. Check the Pyramid Chart documentation for more details.

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