An Atom package with d3 snippets. Accelerate your graphics!
Contributions are appreciated, if you miss a snippet feel free to create an issue or open a pull request.
You can install it inside Atom (just search for d3-snippets
) or via command line:
$ apm install d3-snippets
A ton of nifty snippets are included:
- Margin Convention
- Data Join
- Default values for d3 maps
- Queue.js
- d3.json
- d3.csv
- d3.locale
- d3.nest
- d3.select
- d3.selectAll
- Various SVG shapes (circle, rect, line, ellipse)
$ cd ~/.atom/packages
$ git clone https://github.com/martgnz/d3-snippets.git
$ cd d3-snippets
$ apm install
$ apm link
Nearly everything comes from fabriotav and shancarter Sublime Text packages. I just did the porting!