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

"updatemenus" support #144

Closed
alyst opened this issue Oct 30, 2017 · 2 comments
Closed

"updatemenus" support #144

alyst opened this issue Oct 30, 2017 · 2 comments

Comments

@alyst
Copy link
Contributor

alyst commented Oct 30, 2017

I want to add the dropdown to the plot to turn on/off traces. I'm trying something like

plot([...],
    Layout(updatemenus=[attr(buttons=[attr(label="no map", method="restyle", args=["line.color", "red"]),
                                      attr(label="recyc", method="restyle", args=["line.color", "yellow"])])]))

But there's no sign of the dropdown.

A I doing something wrong or "updatemenus" are not supported at the moment?

@alyst
Copy link
Contributor Author

alyst commented Oct 30, 2017

Ah, sorry. Actually I see the buttons now.

@alyst alyst closed this as completed Oct 30, 2017
@sglyon
Copy link
Member

sglyon commented Oct 30, 2017

Excellent!

making the sliders and update menus easier to work with has been on my todo list for a while, I just haven't gotten around to it. If you are interested in contributing to that effort please let me know and we can coordinate ideas/efforts to make it happen.

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

2 participants