dc.js examples on tornado web framework
I used the following steps to get dc.js examples:
- $ git clone https://github.com/NickQiZhu/dc.js.git
- $ cd dc.js/
- $ git checkout gh-pages
Next, I moved CSS, JavaScript and CSV files to a static folder. After this I created main.py and medify index.html.
- git clone https://github.com/uqmlore1/pyDc.js.git
- cd pyDc.js
- mkdir db
- mongod --smallfiles --dbpath db/
- mongoimport -d test -c ndx --type csv --file static/ndx.csv --headerline
- mongoimport -d test -c crime --type csv --file crime/crime.csv --headerline
- mongoimport -d test -c vc --type csv --file crime/ --headerline
MongoDB shell version: 2.2.2 connecting to: test
use admin switched to db admin db.shutdownServer() exit