Problems with interactives (e.g. leaflet, plotly) in closeread? #161
-
First off, thank you to the Authors of This may well be user error on my part, but I consistently have problems incorporating interactives (e.g.
Any thoughts appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @agrogan1! The essential problem is that your interactive don't automatically fill the available space, and Quarto doesn't know what size to make them without guidance. I have two solutions; the latter is more consistent for what you want to achieve in my opinion (and I'll talk to @andrewpbray about whether it's something we might consider building in more widely). Solution 1: knitr YAML options and
|
Beta Was this translation helpful? Give feedback.
Hi @agrogan1! The essential problem is that your interactive don't automatically fill the available space, and Quarto doesn't know what size to make them without guidance. I have two solutions; the latter is more consistent for what you want to achieve in my opinion (and I'll talk to @andrewpbray about whether it's something we might consider building in more widely).
Solution 1: knitr YAML options and
.scale-to-fill
The most consistent way to size figures in my experience is with the
out-width
andout-height
chunk options:If you set these to fixed units (eg. pi…