score:4

Accepted answer

d3.js includes ways to request non-local data either as json or text (csv) via urls and such.

in a setup that is not security sensitive (like local development or a demo environment) you could fairly directly use the mongo rest api if you enable it, which will give you json output for objects.

or you could write build a simple http server (like in python, perl or go) that execs (python (also subprocess), perl (also backticks and qx{}), go) the mongoexport tool with the right parameters to provide csv output from mongo.

if you already have data in mongo, and you've got node already setup, then maybe that's what you want to use:

mongodb®node.js®ds.js®

if so, there's someone out there that's used node.js® with some npm modules for mongodb® to specifically drive a d3.js® visualization.


Related Query

More Query from same tag