-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plotly output in nested tables is not showing with htmlwidgets version 1.6.0 #304
Comments
P.S.: Updating both the
|
I was able to narrow down the issue: it seems that a change in the htmlwidgets package breaks the display of the nested plots. After installing htmlwidgets version 1.5.4, the plots are shown:
But with the latest version (htmlwidgets version 1.6.0) they are missing. I will report this issue in the |
Thanks for the report, this is most likely a bug in reactable. I'll take a further look this weekend, but for now, I think pinning on htmlwidgets 1.5.4 would be the best workaround. The plotly widget HTML now has two p <- plotly::plot_ly(data = data.frame(x = 1, y = 2), type = "scatter", mode = "lines")
str(htmltools::as.tags(p))
# List of 3
# $ :List of 3
# ..$ : NULL
# ..$ :List of 3
# .. ..$ name : chr "div"
# .. ..$ attribs :List of 4
# .. .. ..$ id : chr "htmlwidget-c7331b2cf701d3378740"
# .. .. ..$ style: chr "width:100%;height:400px;"
# .. .. ..$ class: chr "plotly html-widget html-fill-item-overflow-hidden"
# .. .. ..$ class: chr "html-fill-item" |
This should now be fixed in the latest development version: And I might submit a quick patch to CRAN considering how bad it is. thanks! |
Awesome! Thank you so much for fixing the issue so quickly. Much appreciated! |
I am trying to generate a nested table that shows a plot (generated with plotly) when a row is expanded.
Unfortunately, the output web page only shows a blank space instead of the plot.
Here is a small example, based on a gist by @jthomasmock (I have broken out the
details_function()
to test it outside the table.)The
details_function()
creates an interactive plot when called outside thereactable()
call, e.g. for the first index / row:But when I render the full table, I only see a blank space where the plot should be:
Here is my session information:
Any pointers on how to fix this issue would be great! Many thanks!
The text was updated successfully, but these errors were encountered: