A simple web app example to visualise data from a MongoDB collection using d3.js scatterplot.
- Make sure you have a mongoDB server up and running!
- Install dependencies
npm install
- If your mongoDB server isn´t running on localhost, edit the connection
url
variable on filesloadData.js
andserver.js
- Run
node loadData.js
to load the example data into the database
Run npm start
or node server.js
References: D3.js Scatterplot express.js MongoDB Node Driver
- Add config file
- Filter data using query parameters