Home › Forums › Chart Support › A variable for dataPoints › Reply To: A variable for dataPoints

#15771

@rietveld,

Datapoint y-value should be number, but in your case its string. Converting 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