Days
Hours
Minutes
Seconds
x

New Advanced File Management – Learn More

Skip to content

Doughnut Chart

A doughnut chart is a circular chart divided into sectors where the arc length of each sector, its central angle, and its area is proportional to the quantity it represents.
You can learn more

Caption

The caption (also called the chart title) is the heading of your chart. You can add custom text for the caption, as well as configure its font properties and cosmetics. Learn more about it

Subcaption

The sub-caption (also called the chart subtitle) is the sub-heading of your chart. You can add custom text for sub-caption, as well as configure its font properties.

Data Plot

Data plot refers to the doughnut slices in a doughnut chart, columns of the column chart, lines in a line chart.

Data Labels

Data labels refers to the labels associated with each doughnut slice

Data Values

Data values refers to values associated with each doughnut slice.

Legend

A legend is a chart element used to display the series name for each dataset, in case of multi-series or combination charts. Legends are used to correlate a data plot to its series name using its color.

Create a doughnut Chart

Let's create our first doughnut chart which will showcase the split of visitors for one year.

To create a doughnut chart follow the steps given below:
  • In the JSON data, set the attributes and their corresponding values in "<attributeName>": "<value> " format.
  • Specify the chart type using the type attribute. To render a doughnut chart, set doughnut.
  • Set the container object using renderAt attribute.
  • Specify the dimension of the chart using width and height attributes.
  • Set the type of data (JSON/XML) you want to pass to the chart object using dataFormat attribute.

For a detailed list of attributes, refer to the doughnut charts attribute page.

The doughnut chart for the above code looks like: