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).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

ASP.NET MVC pie chart is a circular graphic, which is ideal for displaying proportional values between different categories.


Pie legend

Legends are used to show information about each point, to know about its contribution towards the total sum. You can collapse the point using legend click.


Custom radius

Customize the radius of the pie to change the look and functionality of the chart.


Start and end angle

Customize the start and end angles of the chart to achieve the semi-pie.


Data label

Show the detail about data points with the help of data label support. You can place the label inside and outside the chart. Connector lines can be used to connect the outside label with charts.


Smart labels

Arranges data labels smartly to avoid overlapping when the data point values fall in close range.


Grouped points

Group the points in pie chart based on certain conditions. The grouped slices can be split into individual points by clicking the slice.


Drilldown Operation

Focus-in on the data within the data using drilldown operation.


Different radius

Customize the radius of individual slice using built-in APIs.


Pie Center

Move the center of the pie relative to the plot area.


Customization

Customize the look and feel of the pie using built-in APIs.


Code snippet

@(Html.EJS().AccumulationChart("container").Series(series =>
                    {
                        series.DataSource(ViewBag.dataSource).XName("xValue").YName("yValue")
                              .Type(Syncfusion.EJ2.Charts.AccumulationType.Pie).Add();
                    }).Render()
    );
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

Pie Chart User Guide

Learn the available options to customize the ASP.NET MVC pie chart.

API

Pie Chart API Reference

Explore the ASP.NET MVC pie chart APIs.


65+ ASP.NET MVC 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