Home forums Using CanvasJS Cannot pass dataPoints.push() from string Reply To: Cannot pass dataPoints.push() from string

#15335

Bivek Singh
Moderator

@jhair01,

The dataPoints that you’re pushing into data is a string which should be an array of objects. You can change the string of dataPoints to array of objects and assign it directly to dataPoints of chart. Please, take a look at this jsFiddle.

—-
Bivek Singh,
Team CanvasJS