Doughnut Charts

The Doughnut Charts components helps you to simply create a beautiful doughnut chart for displaying the data.

The below codes are editable and you can modify them the way you want directly from your browser, please use the green button or the ctrl + s to save the changes.

Default Doughnut Chart

// Material Dashboard 2 React Examples import DefaultDoughnutChart from "examples/Charts/DoughnutCharts/DefaultDoughnutChart";
Default Doughnut Chart
Affiliates program

Props Information

icon{ color: ["primary", "secondary", "info", "success", "warning", "error", "light", "dark"], component: node }{ color: "info", component: "" }Used to set an icon for the chart.
titlestring""Used to set a title for the chart.
descriptionnodestring""Used to set a description for the chart.
heightnumberstring19.125remUsed to set a height for the chart.
chart*objectUsed to set the chart data. It should be an object that contains the `labels` and `datasets` keys.
  • The `labels` key is an array.
  • The `datasets` key is an object of with the following keys: `label`, `backgroundColors` and `data`.
  • The amount of elements inside `backgroundColors` array should be equal to the amount of elements inside the `labels` array.
Its a required prop.