Blazor Pyramid Chart has the form of a triangle with lines dividing it into sections, each section with a different width. Depending on the Y coordinate, this width indicates a level of hierarchy among other categories.
Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.
Data points can be exploded on rendering and on mouse click.
Group the points in a Blazor Pyramid Chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.
Customize the look and feel of the Blazor Pyramid Chart using built-in APIs.
Easily get started with Blazor Pyramid Chart using a few simple lines of C# code, as demonstrated below. Also explore our Blazor Pyramid Chart Example that shows you how to render and configure the chart.
@using Syncfusion.Blazor.Charts
<SfAccumulationChart Title="Mobile Browser Statistics">
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users" Name="Browser"
Type="AccumulationType.Pyramid">
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
<AccumulationChartLegendSettings Visible="false"></AccumulationChartLegendSettings>
</SfAccumulationChart>
@code{
public class Statistics
{
public string Browser { get; set; }
public double Users { get; set; }
}
public List<Statistics> StatisticsDetails = new List<Statistics>
{
new Statistics { Browser = "Chrome", Users = 37 },
new Statistics { Browser = "UC Browser", Users = 17 },
new Statistics { Browser = "iPhone", Users = 19 },
new Statistics { Browser = "Others", Users = 4 },
new Statistics { Browser = "Opera", Users = 11 },
new Statistics { Browser = "Android", Users = 12 },
};
}