plotly/plotly.R

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

Open

#1.065 aberto em 5 de jul. de 2017

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)R (643 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (2.671 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador