Home forums Using CanvasJS JavaScript Bubble Charts – JSON FILE

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Priyanka M S 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20885

    heyy,

    so i have an json file with the data that i want to show up on the chart,
    the question is:
    how can i load my local json file on the data field.
    Thank you very much

    #20890

    Priyanka M S
    Member

    @patricia.a.lopes1,

    You can’t make AJAX requests to the local filesystem due to security issue. As a workaround, you can store the file on a local webserver and make an AJAX call to it or you can store the JSON in CORS enabled JSON hosting service like myjson.com. Please take a look at this tutorial on rendering charts from JSON API using AJAX.

    __
    Priyanka M S
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.