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

Like pie chart, except for the space at the center, this chart is also referred as doughnut chart. This chart is useful when you want to compare the contribution of each data with the total.


Custom inner radius

You can customize the inner radius of the chart to make it pleasing. Making inner radius to 0 will change the doughnut to pie chart. You can customize both the radius and inner radius of the doughnut.


Doughnut Legend

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


Start and End Angle

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


Data Label

Show the detail about the data points with the help of data label support. Can place the label inside and outside of 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 some condition. 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.


Customization

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


Code snippet

import { AccumulationChart, PieSeries} from '@syncfusion/ej2-charts';
Chart.Inject(AccumulationChart, PieSeries);

let chart: AccumulationChart = new AccumulationChart({
    series:[{
            dataSource: [
                { x: 'United States', y: 45, text: 'USA', fill: '#00226C' },
                { x: 'Australia', y: 53, text: 'AUS: 14%', fill: '#0450C2' },
                { x: 'China', y: 56, text: 'CHN', fill: '#0073DC' },
                { x: 'India', y: 61, text: 'IND', fill: '#0D98FF' },
                { x: 'Japan', y: 13, text: 'JPN', fill: '#9CD9FF' },
                { x: 'United Kingdom', y: 71, text: 'UK', fill: '#0450C2' }
            ],
            xName: 'x',
            yName: 'y',
            innerRadius: '40%'
            }
],
}, '#Chart');
<!DOCTYPE html>
<html>

<head></head>

<body style = 'overflow: hidden'> 
    <div id="container">
     <div id="Chart"></div>
    </div>

    <style>
        
        #control-container {
            padding: 0px !important;
        }
    </style>
</body>

</html>

Learning Resources

UG

Doughnut Chart User Guide

Learn the available options to customize the JavaScript doughnut chart.

API

Doughnut Chart API Reference

Explore the JavaScript doughnut chart APIs.


50+ JAVASCRIPT 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