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
htmlwidgets doesn't work in JS Reveal #219
Comments
Most htmlwidgets we have tested work fine in the scenario you describe.
In this case I loaded up your example and noted that bokeh.min.js is On Tue, Jul 19, 2016 at 5:07 PM, johncarew notifications@github.com wrote:
|
Thank you so much, jjallaire! All I had to do was change height=NULL and width=NULL to pixel values and all of the widgets appeared! However, now I am having trouble hovering over data on the robokeh graph and the dygraphs graph. When I try to hover over a data point to see its data, a different point, up and to the left of my cursor, will be selected. The same thing is happening with some graphs from the plot.ly package. |
I've run into issues with hover not working in rbokeh and others when the size of the element is controlled using the css |
Yes, reveal does indeed use css scale. On Wed, Jul 20, 2016 at 2:18 PM, hafen notifications@github.com wrote:
|
You can actually set the minScale and maxScale within the
|
That did fix the issue! Thank you jjallaire! Everything is working well now! |
Great! On Wed, Jul 20, 2016 at 3:17 PM, johncarew notifications@github.com wrote:
|
I am trying to add HTML widgets from the htmlwidgets package, such as rbokeh and visNetwork elements, to a JS Reveal presentation, but they do not always appear on the slides. They will appear on the slides as long as they are the first things in the presentation, but after anything other than r code for a widget is placed in the presentation, widgets on later slides will not appear. The code will compile and knit, so I am calling all the correct packages.
Thus, the above code will produce a slide with "Some Bullets" as the header followed by three bullets, and then a blank slide with the title "rbokeh plot."
Additionally, sometimes html widgets after other content will appear in the preview window (the window that opens after I press knit), but when I open the presentation in my browser, the widgets disappear. I tried comparing the .html documents produced by the R markdown codes of the presentations with widgets appearing and those without widgets appearing, but the two files seemed to be identical. If anyone has any idea why this is happening or how to remedy it, it would be much appreciated!
It seems that the widget will appear in the preview window if the window opens to the slide with the widget on it. When the preview window opens to the title slide or bulleted slide, the html widget does not appear. Is it possible to force the widgets to load before the rest of the presentation, but for the presentation to still open with the title slide? Perhaps that would make the widgets appear.
The text was updated successfully, but these errors were encountered: