scttcper / ngx-chartjs

Functional Chart.js wrapper for Angular
https://ngx-chartjs.vercel.app
MIT License
56 stars 12 forks source link

Doughnut Cutout Not Selectable #174

Closed asithade closed 3 years ago

asithade commented 3 years ago

I've been trying to set the cutout size for a doughnut chart, but it doesn't seem to be selectable anywhere. How would I go about setting that?

  public options: any = {
    responsive: true,
    cutout: '75%',
    plugins: {
      tooltip: {
        enabled: false
      },
      legend: {
        position: 'right'
      },
      title: {
        display: false
      }
    },
    elements: {
      arc: {
        borderWidth: 0
      }
    },
    datasets: {
      doughnut: {
        circumference: 360
      }
    }
  };

This seems to be the only way I can set it, if I set the type for options to any

scttcper commented 3 years ago

I dunno