Hi and thanks for all your amazing work! Just discovering panelset and it is exactly what I was looking for.
I'm working with the distill::distill_article R Markdown format and I'm getting some slightly puzzling output when I add Plotly charts to panels. The chart in the panel is the correct size (i.e. it fills the container), but the charts in the second and third panels don't fill the container. Interestingly, if you resize the browser window while the second or third panel is active, the Plotly chart resizes to fill the entire container. I have no clue if this is an issue with xaringanExtra, distill, or plotly (or some interaction of the three), so any tips or thoughts you have would be appreciated!
Here is a reprex and screenshot of the output I'm seeing:
Thanks for submitting the issue with such an easy to use reprex!
I just pushed an update so that, whenever the tab is changed, htmlwidgets are tricked into thinking that the window was resized and they update to fit in the current space. This should work for most widgets, but most importantly it works for plotly!
Hi and thanks for all your amazing work! Just discovering panelset and it is exactly what I was looking for.
I'm working with the
distill::distill_article
R Markdown format and I'm getting some slightly puzzling output when I add Plotly charts to panels. The chart in the panel is the correct size (i.e. it fills the container), but the charts in the second and third panels don't fill the container. Interestingly, if you resize the browser window while the second or third panel is active, the Plotly chart resizes to fill the entire container. I have no clue if this is an issue with xaringanExtra, distill, or plotly (or some interaction of the three), so any tips or thoughts you have would be appreciated!Here is a reprex and screenshot of the output I'm seeing:
Thanks for submitting the issue with such an easy to use reprex!
I just pushed an update so that, whenever the tab is changed, htmlwidgets are tricked into thinking that the window was resized and they update to fit in the current space. This should work for most widgets, but most importantly it works for plotly!
Working a charm -- thanks so much!