I want to disable the toggle of the legends on the right side. Still show the legends. The toggle does not make sense to me, it changes the percentage.
library(plotly) # Data Preparation labels = c('Beverage','Vegetable','Dairy','Fish') values = c(4500, 2500, 1053, 500) # Data Visualization fig <- plot_ly(type='pie', labels=labels, values=values, textinfo='label+percent', insidetextorientation='radial') fig <- fig %>% layout(title = "Number of Sales by Parts of Supermarket in a Day") fig
Even with this, layout | R | Plotly , it does not help.