Home forums Using CanvasJS A variable for dataPoints Reply To: A variable for dataPoints

#15771

Vishwas R
Keymaster

@rietveld,

Datapoint y-value should be number, but in your case its string. Convert string values to number before assigning them to “y” should work fine in your case. dps.push({label: item.Name, y: Number(item.Total) });


Vishwas R
Team CanvasJS