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:

mongodb®node.js®ds.js®

if so, there's someone out there that's used node.js® npm modules mongodb® drive d3.js® visualization.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -