Home forums Using CanvasJS render graphs from external json source Reply To: render graphs from external json source

#24215

Vishwas R
Keymaster

@gautamtata,

The data doesn’t render, when I run this code. But, when I try to console.log (data.columns[“latitude”]) outside the for-loop, I am able to access the data which I need.

You are consoling data.columns[“latitude”] which is getting consoled whereas while parsing you are considering it as data[i].columns[“latitude”] which should ideally be data.columns[“latitude”][i]. Parsing the data received from JSON accordingly should work fine in this case. Please take a look at this JSFiddle.


Vishwas R
Team CanvasJS