Closed ursedaniel closed 3 years ago
You can't use pie chart with your dataset. You could try bar chart.
[[300,15],500,100]
Because in pie chart, chart.js need to calculate the scale, [300, 15]
can't be calculated with other values in the array.
You can try it. https://stackblitz.com/edit/angular-ngchartjs-issues21
@93Alliance worked like a charm, thank you so much!
I'm facing a problem, when running with --prod flag I get this error in console after following your example @93Alliance :
Any ideas how to fix it? without --prod flag it works pretty good but I need it to be prod valid, thanks!
Hello, I want to have the pie chart values groupped, i see that I can do that with Labels, but for the values I can't have an array of values, do you guys know a way to achieve this? As you can see in the photo only the first label has the corresponding value, but the 2nd one doesnt. Thanx!