We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback


Overview

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 label

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.


Point explode

Data points can be exploded on rendering and on mouse click.


Grouped points

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.


Customization

Customize the look and feel of the Blazor Pyramid Chart using built-in APIs.


Blazor Pyramid Chart Code Example

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 },
    };
}

Not sure how to create your first Blazor Pyramid chart? Our documentation can help.


Blazor Components – 85+ UI and DataViz Components

Scroll up icon