How to vary the thickness of doughnut chart, using ChartJs.?

shashisp picture shashisp · Jan 9, 2014 · Viewed 39.9k times · Source

How to vary the thickness of doughnut chart, using ChartJs

Answer

tetchen9 picture tetchen9 · Aug 8, 2016

since version 2 the field has been renamed to cutoutPercentage.

cutoutPercentage
Number 50 - for doughnut, 0 - for pie
The percentage of the chart that is cut out of the middle.

It can be used like this

var options = {        
    cutoutPercentage: 40
};

more details here http://www.chartjs.org/docs/#doughnut-pie-chart-chart-options