-
Notifications
You must be signed in to change notification settings - Fork 246
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
Export graph as SVG file #66
Comments
Sure, there are a couple examples of exporting SVG. I think the most relevant would be the code to export in
Really depends on how you would like to implement it--as a button, icon, etc. Another option possibly would be to use The last which requires no change to DiagrammeR would be to use something like NYTimes SVG Crowbar, but it only works in Chrome. Or, show folks how to copy/paste the node with console tools. |
I really like the idea of using the |
PDF export would also be great; I think high charts has a library that does Alex Bresler www.asbcllc.com 917-455-0239 @abresler http://twitter.com/abresler | LinkedIn On Mon, Feb 9, 2015 at 7:34 PM, Richard Iannone notifications@github.com
|
Here is a proof of concept: https://gist.github.com/jeroenooms/d0d03c7e58443f5a4438 |
I have no idea why it's taken me so long to reply to this. I've said it before but, damn @jeroenooms, that V8 package is so good. I'm going to adapt that gist into a means to export SVG. Thanks again! |
@rich-iannone is it possible to go one step further to implement/reuse something like the toolbar in rbokeh? Which allows user to do zoom in, drag, export, etc. I wish this could be a common feature in htmlwidgets. |
@timelyportfolio not to add more to your plate but is the feature suggestion that @happyshows introduced easy to implement? It would be helpful and I agree that an optional toolbar like this for all |
Unfortunately, using the |
@rich-iannone I was originally thinking that I could write a generic ugly example to serve as a prototype I will try to iterate to something clean, and then make a function that will make it easy and much prettier. |
@timelyportfolio thanks for the work! If this can be a common plugin in htmlwidget, it could really save a lot of time for other htmlwidget implementers and package users. |
Hi, as today, is there an easy way to export a mermaid diagram to svg or pdf (or others) from R ? I can not find a definite answer in the related issues... Thanks ! |
For your information, I just found that the You can export a mermaid graph |
It would be useful to allow for export of a Graphviz and mermaid diagram to SVG. Exporting to an SVG file would be useful for importing that SVG to another application for further work (e.g., Sketch, Illustrator, and Visio all accept SVG files, I believe).
Writing the SVG markup to an R object would also be quite useful. This would be good for understanding how to generate SVG transitions and other packages using
DiagrammeR
could optionally use the generated SVG for other purposes.@timelyportfolio: is there an easy way to do this? I recall that there are various export options in the documentation for
viz.js
. It would be great to enable an export right inside theGraphviz
graph specification in the footnotes area (indeed this will have to be done for selection of the different rendering engines).The text was updated successfully, but these errors were encountered: