datastorm-open / visNetwork

R package, using vis.js library for network visualization
Other
543 stars 126 forks source link

output doesn't show on ioslides presentation #181

Open JianhuaHuang opened 7 years ago

JianhuaHuang commented 7 years ago

Hi,

I used the visNetwork function to generate the plot. It shows on the Rstudio Viewer and also the html file, if I run the rmarkdown file. However, if I convert the rmarkdown file to ioslides_presentation, the plot doesn't show up. The presentation just shows "loading" forever. If I remove the visNetwork plot from my app, then everything works again. So, I'm not sure why the visNetwork plot causes problem in the ioslides_presentation.

For now, I just save the plot as an html file, and embed it into the ioslides using iframe, but that seems not a good resolution, because I need to update the html file manually every time the data is changed.

Thanks for any suggestion.

knapply commented 7 years ago

This may be only SLIGHTLY helpful, but I had really good luck embedding the plots in reveal.js slides from rmarkdown recently. That may be an alternative to look at.

JianhuaHuang commented 7 years ago

Hi, Thanks for the reply. I just explore the reveal.js a little bit, and really like its layout. However, it seems it doesn't support shinyapp, and the visNetwork plot seems messed up. If I hangover one point, another point will be highlighted. Thanks for your suggestion anyway.

bthieurmel commented 7 years ago

Hi,

It'seems due to a bad interaction between the (old?) Hammer.js use within ioslides, and the most recent use in vis.js.

Don't really know how to solve that....!