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

前端 未结 4 2051
独厮守ぢ
独厮守ぢ 2020-12-18 18:29

How to vary the thickness of doughnut chart, using ChartJs

4条回答
  •  无人及你
    2020-12-18 19:00

    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

提交回复
热议问题