Skip to content

simple way to export d3-node instance to png/jpg, svg & html files

Notifications You must be signed in to change notification settings

d3-node/d3node-output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3Node-output

Used in examples to export a d3node instance to html, svg, & png files

Install

npm install d3node-output

Usage

const output = require('d3node-output')
const voronoi = require('d3node-voronoi');
const data = new Array(99);

// crop your png to a custom size
// defaults to the size of your svg if not defined
const options = {width: 100, height: 200};

// output files to /dist dir
output('./dist/myVoronoi', voronoi(data), options, callback);

PaaS usage:

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

LICENSE

MIT © d3-node

About

simple way to export d3-node instance to png/jpg, svg & html files

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •