I have a problem with custom labels that are supposed to show percentage differences of values in a column. In one column only percentages are shown and in others not... why? what am i doing wrong? please help
I suppose there is an error here (but when I change it to 1000, the label with % is not shown everywhere)
Code: Select all
for (let i = 1; i < data.length; i++) {
const growthValue = Math.round((data[i].y / data[i - 1].y - 1) * 100);
this must work with any number...
What am I doing wrong that the chart is not shown? added all the code...
https://jsfiddle.net/de2ovax9/1/
thank you!!!!!!