javascript - Create d3.js graph from data on mongodb server -
how can create d3.js graph data on mongodb server using node.js?
d3.js includes ways request non-local data either json or text (csv) via urls , such.
in setup not security sensitive (like local development or demo environment) directly use mongo rest api if enable it, give json output objects.
or write build simple http server (like in python, perl or go) execs (python (also subprocess), perl (also backticks , qx{}
), go) mongoexport
tool right parameters provide csv output mongo.
if have data in mongo, , you've got node setup, maybe that's want use:
⇒ ⇒
if so, there's someone out there that's used node.js® npm modules mongodb® drive d3.js® visualization.
Comments
Post a Comment