score:4

Accepted answer

When you want to load a lot of files, you can use queue.js to do this more conveniently than repeated d3.csv calls. However, checking how many files there are on the server isn't possible as such. The only way to do this is to have the server tell you, e.g. you load a file with a known name that gives you the names of the other files to load.

In your case, I would recommend merging the files you have into fewer though to simplify things. You may be able to merge the CSV files with common headers, or convert everything into JSON.


Related Query

More Query from same tag