Skip to content

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

Open
@aoles

Description

@aoles

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions