Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate "print" quality diagrams #8

Open
drpowell opened this issue Nov 27, 2013 · 2 comments
Open

Generate "print" quality diagrams #8

drpowell opened this issue Nov 27, 2013 · 2 comments

Comments

@drpowell
Copy link
Member

The difficulty is the parallel coordinates and MA-plot that both use a combination of SVG and canvas.

Look into:
http://svgopen.org/2010/papers/62-From_SVG_to_Canvas_and_Back
http://www.nihilogic.dk/labs/canvas2image/ https://github.com/Causata/svgenie

@drpowell
Copy link
Member Author

Tried a couple of stalled attempts:

  1. Modify the parallel coordinates module to merge the multiple canvas items and SVG (for axes) into a single canvas at high resolution for printing. Unable to get this working properly. Main problem was the rendering of the SVG as a data uri does not use any css styling
  2. Use css "print" media settings to only show the parallel coordinates plot. This works, but really need to redraw the plot at higher resolution on "print". This can be triggered in firefox using onbeforeprint, and on chrome with matchMedia. But fiddly and awkward.
  3. Create a temporary "div" over the whole body just showing a plot at high resolution. This seems most promising and have a working prototype. Need to add options to control line width and text size though.

@drpowell
Copy link
Member Author

Added support for SVG only plots. Need support for canvas based ones, parcoords & ma-plot. Needs more work as these have multiple overlayed canvas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant