-
Notifications
You must be signed in to change notification settings - Fork 629
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
Information not shown when hovering over data points in an ioslides presentation with multiple plots #463
Comments
Does anybody know a workaround for using more than one plot in an ioslides presentations? |
I've noticed this recently, but haven't had the time to debug. As a workaround, you can include a blank slide between plots. |
Another workaround is to use iframes:
|
Here's a jquery hack that seems to do the trick (and avoids iframes). Add this to the tail of of your R Markdown doc: <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>
(function() {
if (window.jQuery) {
$('.plotly').hide();
window.jQuery(document).on('slideleave', function(e) {
window.jQuery(e.target).find('.plotly').hide();
});
window.jQuery(document).on('slideenter', function(e) {
window.jQuery(e.target).find('.plotly').show();
});
}
})();
</script> |
All of the slide frameworks cause
or with
Unfortunately though, this issue is not limited to
Lastly, we could make this default behavior by adding custom |
Hmm, I certainly wouldn't mind using the R package as a playground for testing solutions, but considering others might run into similar problems using our other APIs, this sounds like something that should/could be safeguarded against in plotly.js itself. |
I think this should be limited to the R package as it is very specific. I am not even all that crazy about adding since it is a very specific problem, but I do think based on previous experience with other |
solution for #463 plotly in ioslides
I am going to close this since I believe we have a solution. Please reopen if this is not your experience. |
…ly widgets I think plotly/plotly.R#463 should be reverted eventually because it essentially hides plotly widgets when printing ioslides to PDF (unless a widget happens to be on the current slide)
…ly widgets I think plotly/plotly.R#524 should be reverted eventually because it essentially hides plotly widgets when printing ioslides to PDF (unless a widget happens to be on the current slide)
…ly widgets I think plotly/plotly.R#524 should be reverted eventually because it essentially hides plotly widgets when printing ioslides to PDF (unless a widget happens to be on the current slide)
Hi
I'm trying to use Plotly with ioslides presentations and ran into the problem that hovering over the plot didn't show information for data points. This bug is somehow related to using multiple plots.
In the following example, I use the same plot on two slides. Hovering does not work with the first plot but it works with the second plot.
RMarkdown Document:
Output of devtools::session_info()
The text was updated successfully, but these errors were encountered: