This is a Yeoman generator for the d3.js. It has the minimum skeleton necessary to start with d3.js
This generator includes:
- index.html - with svg
- js/index.js - for the code
- css/style.css - for styling
- gulpfile.js - currently only has browser-sync
- package.json - d3 is installed via npm
- .gitignore - ignore node_modules for git
This generator requires yeoman, it can be installed from npm:
$ npm install -g yo
To install generator-d3-quickstart from npm, run:
$ npm install -g generator-d3-quickstart
Navigate into a folder where you want your presentation
$ yo d3-quickstart project-name
This generator uses gulp and browser-sync. If you do not have gulp installed, you may have to run npm install -g gulp
.
In order to run live preview with browser-sync, just run:
$ gulp
MIT