documentation
documentation copied to clipboard
animation_button(visible=FALSE) meddles with trace names
First of all: Congratulations for this magnificient package!
I am using the r package plotly and came across the following bug:
Naming traces works usually very well. When I remove the animation_button (which should be removed by default, imho) the names of traces in the legend disappear.
Here is a reproducible example:
data.frame(year = rep(2011:2020,each=10),
t = 1:100,
a = runif(100),
b = rnorm(100),
c = rexp(100)) %>%
plot_ly(x = ~t,
frame = ~year) %>%
add_lines(y = ~a, name = 'uniform') %>%
add_lines(y = ~b, name = 'normal') %>%
animation_button(visible=FALSE)