Home Forums Chart Support Create static Chart using API JSON Reply To: Create static Chart using API JSON



I tried the code you sent me and it works well but when I modify the link with mine it’s all blank

For security reasons, browsers restrict cross-origin requests. To access JSON from a different domain, you can refer to JSONP.

And if the json data are not filtered by close like
could I use in the line chart “date” for X axis and “adjusted close” for Y axis

You can parse the JSON and pass “date” and “adjusted_close” values as x and y in dataPoints as shown in this JSFiddle.

Considering this thread as a duplicate of chart with data from json and hence closing the same.

Manoj Mohan
Team CanvasJS