You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would like to autoscale SVG graphics produced by a call to ggplotly in order to fit them into the parent CSS container in a R Markdown document, as described here. For this, it is necessary for the SVG element to have a viewBox attribute that describes the bounding box of the visible contents. Do you think it would be possible to extend your package to include this attribute?
Cheers,
Andrzej
The text was updated successfully, but these errors were encountered:
@cpsievert I also have problem with scalling svg in R, and viewbox would help, what is orca function? Is it documented somewhere? Is it thee same as plotly/orca repo?
If this is export using orca app to generated png https://github.com/ropensci/plotly/blob/31d027de3e15e0fb37060155bc03cf4e5e6f68e0/R/orca.R then it would probably be very slow the same as webshot that taken 24 seconds on my local machine to generate png 3000x1000 and both Plotly.toImage and webshot create image with small fonts if picture is bigger. viewbox would make svg scale so the font should be the same even if you change resolution.
Hi,
I would like to autoscale SVG graphics produced by a call to
ggplotly
in order to fit them into the parent CSS container in a R Markdown document, as described here. For this, it is necessary for the SVG element to have aviewBox
attribute that describes the bounding box of the visible contents. Do you think it would be possible to extend your package to include this attribute?Cheers,
Andrzej
The text was updated successfully, but these errors were encountered: