plotly/plotly.R

Add 'viewbox' attribute to ggplotly svg output to allow scaling in R Markdown

Open

#1.065 geöffnet am 5. Juli 2017

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)R (643 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (2.671 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide