Home › Forums › Chart Support › Cannot pass dataPoints.push() from string › Reply To: Cannot pass dataPoints.push() from string
@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