Skip to content

plotly graphs have don't correctly track cursor #47

@sebastian-c

Description

@sebastian-c

Consider the following minimal document:

---
output: revealjs::revealjs_presentation #works with html_document
---

```{r plotly, message = FALSE, echo = FALSE}
library(ggplot2)
library(plotly)
g <- ggplot(mpg, aes(x = cty, y = hwy, colour = as.factor(cyl))) +
  geom_point()
ggplotly(g)
```

When using reveal.js, the cursor needs to be placed above and to the left of the points for the tooltip to trigger - rather than on top of them. This doesn't occur when using the default html_document style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    widgetswidgets support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions