How can I make ggplotly show hover tooltips for a geom_rect series?
问题 I am trying to create an interactive visualisation of an individual's salary growth across multiple employers. I am using a geom_rect series to show pay periods and salary information. When I apply the ggplotly function, hover tooltips are not showing by default, and I cannot find a way to enable them. What can I do to enable tooltips over the geom_rect? data: df <- data.frame( "From" = seq(as.Date("2016-01-01"), as.Date("2026-01-01"), by = 14), "To" = seq(as.Date("2016-01-01"), as.Date("2026