Dataframe:
df2 = data.frame(value = c(9, 2, 7, 3, 6),
key = c('ar', 'or', 'br', 'gt', 'ko'))
And this is the code to generate the pie chart:
df2 %>%
plot_ly(labels = ~key,
values = ~value,
type = 'pie')
Basically, I would like to highlight the label that I'm hovering over and grey out the other labels, like these plots: 1st plot and 2nd plot.
Is there a way to do this?
