Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend name not passed when using frame animation #2344

Open
Balaika opened this issue Mar 11, 2024 · 0 comments
Open

Legend name not passed when using frame animation #2344

Balaika opened this issue Mar 11, 2024 · 0 comments

Comments

@Balaika
Copy link

Balaika commented Mar 11, 2024

Hi,

Legend names are sometimes not passed when using frame option.

#This is working (without frame)
plot_ly()%>%add_markers(1:3,2:4)%>%add_markers(1:3,2:4,name="New name")

#This is not (with frame)
plot_ly()%>%add_markers(1:3,2:4,frame=c(1,1,2))%>%add_markers(1:3,2:4,frame=c(1,2,2),name="New name")

#This is working (with frame) ! 
#This works apparently because frame 1 is repeated twice (frame=c(1,1,2) is okay but frame=c(1,2,3) is not)
plot_ly()%>%add_markers(1:3,2:4,frame=c(1,1,2))%>%add_markers(1:3,2:4,frame=c(1,1,2),name="New name")

[Package plotly version 4.10.4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant