You must be logged in to post your query.
Home › Forums › Chart Support › chart from Json
Tagged: JSON
Dear Manoj
I tried the code you sent me and it works well but when I modify the link with mine it’s all blank
getJSON(‘https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&filter=close&period=d.’, parseData)
And if the json data are not filtered by close like
https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&period=d.
could I use in the line chart the simple one I reported select “date” for X axis and “adjusted close” for Y axis
Thank you and best regards
Nicola
Nicola,
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 https://eodhistoricaldata.com/api/eod/MCD.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&fmt=json&period=d. 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
You must be logged in to reply to this topic. Login/Register