Skip to content

circumference option in 'chart.options' is undefined #8531

@stockiNail

Description

@stockiNail

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions