Home forums Chart Support Code from "Creating Charts from CSV" is not working in my HTML document Reply To: Code from "Creating Charts from CSV" is not working in my HTML document

#25175

@sepetar,

For security reasons, browsers restrict cross-origin requests. Please refer to this StackOverflow post for more information. Serving CSV file from a local web server and making an AJAX call to it or serving it from CORS enabled CSV hosting should work fine in this case.

Also, it’s not possible to load CSV data from the local machine unless it’s served from a local web server or from the same domain where HTML is hosted. It’s basically a browser restriction for security reasons. Please refer to the above link for more info on Cross-Origin Requests.


Shashi Ranjan
Team CanvasJS