I would like to change the position of the hover box in a plotly
bar chart. Rather than have it popup on the left or right, I would like it to popup above the bar. Is this possible? I've been googling this and staring at the Plotly R reference page for a couple hours with no luck.
Here's a sample:
library(dplyr)
library(plotly)
data.frame(x = 1:10, y = 1:10*10) %>%
plotly::plot_ly(data = .) %>%
plotly::add_trace(x = ~x,
y = ~y,
type = 'bar',
hoverinfo = "text",
text = ~y)