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. (Last updated on: November 16, 2018).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback


Overview

ASP.NET Core pyramid chart is the form of a triangle with lines dividing it into sections, each section with a different width. Depending on the Y coordinates, 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 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 pyramid chart using built-in APIs.


Code snippet

<ejs-accumulationchart id="container">                
                <e-accumulation-series-collection>
                    <e-accumulation-series dataSource="ViewBag.dataSource" xName="xValue" yName="yValue" type="@Syncfusion.EJ2.Charts.AccumulationType.Pyramid">
                    </e-accumulation-series>
                </e-accumulation-series-collection>
</ejs-accumulationchart>
public class HomeController : Controller
{
 public ActionResult Index()
        {  
           List<PieChartData> chartData = new List<PieChartData>
            {

                new PieChartData { xValue = "Chrome", yValue = 37 },
                new PieChartData { xValue = "UC Browser", yValue = 17 },
                new PieChartData { xValue = "iPhone", yValue = 19 },
                new PieChartData { xValue = "Others", yValue = 4  },
                new PieChartData { xValue = "Opera", yValue = 11 },
                new PieChartData { xValue = "Android", yValue = 12 },
            };
            ViewBag.dataSource = chartData;
            return View();
        }
}
public class PieChartData
        {
            public string xValue;
            public double yValue;
        }

Learning Resources

UG

Pyramid Chart User Guide

Learn the available options to customize ASP.NET Core Pyramid chart.

API

Pyramid Chart API Reference

Explore the ASP.NET Core Pyramid chart APIs.


70+ ASP.NET CORE UI CONTROLS

Scroll up icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon