Closed neobernad closed 3 years ago
I definitely need a minimal reproducible example if you want me to look into this.
also, please do not include custom stuff that does not affect your issue in the minimal reproducible example
Hello,
Thanks for your fast response. I kept doing some search about how to fix this issue, it seems to be an issue with revealjs
and htmlwidget
instead of with networkD3
, sorry for opening up the issue on your side.
Solution: I fixed it by saving the widget with saveWidget
method and then using an HTML <iframe>
to embed the graph.
Source: https://github.com/rstudio/revealjs/issues/11
Thanks anyway for your help!
Hi,
I'm using
rmarkdown
withrevealjs
to create HTML slides. When I run the following code:The method
customJS
comes from this answer, which basically shows the label of the connected nodes when hovering the mouse on them (this does not affect my issue, just wanted to clarify what the code does).The issue is that the graph shows on the left corner of the slide:
But when I refresh with F5 the slide of the graph, then it is rendered properly:
Is there anyway to force-refresh the network, force the starting (X,Y) node position or add some margins so that the graph shows up in the center?
Best, José Antonio