p5.js on SharePoint not loading CSV data from file

I am running into issues trying to get a p5.js example to work on SharePoint (=the business environment I work in). The example code is taken from the book "Getting Started with p5.js", example 12-2. It reads data from a CSV file and draws a simple chart showing baseball statistics.

When storing the example (aspx file, p5.js file, CSV file) on SharePoint and calling the aspx page it the p5.js "freezes" with a "Loading..." message.

Freezing

Note that when I run the same example in Chrome using the Web Server for Chrome extension, the graph displays fine.

Success

Also note that I can successfully run examples that use CSV files from D3js.org (different development platform, but also JavaScript-based) on the same SharePoint site.

Any suggestions are much appreciated.

(I could provide the full code to the example, but as it comes from the above mentioned book, I believe I do not have the right to publish it here.)

Sign In or Register to comment.