Hover on flexdashboard to show tooltip

Hello,

This is my first post on RStudio Community. I have the following sample code:

---
title: "Hover"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
runtime: shiny
---

```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
data(iris)
Column {data-width=650}
-----------------------------------------------------------------------

### Chart A

```{r}
iris %>% group_by(Species) %>% 
  summarise(mean = mean(Sepal.Length)) %>% 
  ggplot(aes(Species, mean)) + geom_col()

In shiny you can put a tooltip using "hover = plot_hover". Where I can do that in flexdashboard? Is it possible to use some JS to make that tooltip when hovering on the bar and show this value?

Any help will be greatly appreciated.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.