Accepted answer

If you told your server to serve static content from the static folder, then you don't need to provide the name of that folder in your url.

Your file should be accessible at the url /js/qtr_stats.csv, not /static/js/qtr_stats.csv


I disagree with Overdrivr. In my case

// get the data
d3.csv("/static/js/data.csv", function(error, data) { ...

was the solution that worked.

I used Flask 0.12.2 and d3 v4

Related Query

More Query from same tag