Skip to content

gabhi/d3export_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3 export demo

This is a proof-of-concept demo for saving d3js graphics as PDF/PNG/SVG files.

Objective

CGI takes incoming SVG serialization. Use graphics toolkit to open SVG serialization as input, output PNG or PDF as output.

This perl implementation just performs a system call on rsvg-convert, nothing specific to perl.

Options

See http://stackoverflow.com/questions/4809194/convert-svg-image-to-png-with-php for another nice overview. We just run rsvg-convert man rsvg

Implementation

See here for more details: * https://github.com/agordon/d3export_demo

See here for online demo: http://d3export.housegordon.org/

Implementation in other languages

Several people have implemented the CGI portion in other languages:

License

Copyright (C) 2012,2014 by A. Gordon ([email protected])

All code written by me is released under BSD license: http://opensource.org/licenses/BSD-3-Clause (also uses several other libraries that have their own licenses).

About

Export d3js graphics to PDF/PNG/SVG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.0%
  • HTML 37.7%
  • Perl 11.3%