I would like to have two plotly boxplots side by side using subplot. My problem is that, I cannot get rid of the trace information in the tooltip.
library(plotly)
fig1 <- plot_ly(
y = list(1,2,3,4,5,6,7,8,9),
q1=list(1, 2, 3),
median=list(4, 5, 6),
q3=list(7, 8, 9),
type = "box",
fillcolor = "#4FA645",
line = list(color = 'darkgreen'))
fig2 <- fig1
subplot(fig1, fig2) |> layout(showlegend = F)
I would like to remove the #4FA645 tooltip part. See below.
I figured out so far that this might be achievable by using hovertemplate and pasting an <extra></extra> behind whatever is written there but I did not figure out how to do that.