Home forums Using CanvasJS Pie Chart With Dynamic Data Reply To: Pie Chart With Dynamic Data

#5605

JipThePeople
Participant

Here is the solution:

dps.push({ y: Number(value), indexLabel: key + ‘(‘ + value + ‘)’});

I was not building the array the right way. I was putting text elements in it where I needed to put objects in it.