Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Doughnut chart legends issue in chart.js

Open hetal-joshi-123 opened this issue 1 year ago • 1 comments

Expected behavior

Doughnut chart should display data like in the mentioned image.

image

Current behavior

image (1)

Doughnut chart is displaying data like above in image if it has more than 3-4 legends.

If anyone has solution for it, it would be really helpful.

Thanks.

Reproducible sample

this.chart0 = new Chart(ctx1, { type: this.shadow ? 'doughnutWithShadow' : 'doughnut', data: data, options: options, plugins: [this.chartService.centerTextPlugin] });

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

2.9.3

Browser name and version

Chrome

Link to your project

No response

hetal-joshi-123 avatar Jul 28 '23 09:07 hetal-joshi-123

Hi can this issue be assigned to me? I would like to work on this.

ShambhavII-Singh avatar Sep 22 '23 11:09 ShambhavII-Singh