Home Forums Chart Support Creating a chart from a JSON file Reply To: Creating a chart from a JSON file

#44692

@murrayr,

Due to security measures, web browsers impose restrictions on reading local files & cross-origin requests. To work around this, one effective approach is to serve your JSON file from a local web server or utilize a CORS-enabled JSON hosting service like npoint.io. By doing so, you enable your web application to fetch data seamlessly without encountering the cross-origin limitations. Please take a look at this JSFiddle for an example of the same.

Column chart with data from JSON file


Ananya Deka,
Team CanvasJS