-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
I don't know if this a bug or I misunderstood the documentation.
The pie/doughnut charts have got some specific options, like , circumference.
From documentation the circumference has got a default of 360 and I'm expecting that when I'm invoking chart.options.circumference I'll get 360 if I didn't set it in the configuration of chart:
var myChart = new Chart(ctx, {
type: 'pie',
data: {
labels: ["Jan", "Feb", "Mar"],
datasets: [{
label: 'dataset',
data: [51, 23, 24],
backgroundColor: 'lightGrey'
}]
},
});
console.log(myChart.options.circumference); // <- my expectation is to see 360. Unfortunately is undefined.https://codepen.io/stockinail/pen/RwoxzNZ
It's not clear to me where I'm wrong.