Skip to content Skip to sidebar Skip to footer

Javascript D3 Not Showing Visualization

I am trying to replicate the visualization I see on this github profile https://github.com/mojoaxel/d3-sunburst/tree/master/examples I copied the following code and changed the pat

Solution 1:

Provided the path to visit-sequences.csv is correct, its local loading will be blocked by the browser (see CORS).

You can either:

  • run it via a (even local) webserver
  • start Chrome with the --allow-file-access-from-files flag (if you're using Chrome)

Solution 2:

The problem is here

sunburst.loadCsv("/Users/i854319/Documents/Mike_UX_web/data/visit-sequences.csv");

Your browser cannot just load a file from your PC.

Post a Comment for "Javascript D3 Not Showing Visualization"