Interactive Legends


#1

Can anyone tell me if it is possible to create interactive legends on graphs in plotly? i.e., a drop-down menu on the chart that changes the chart display depending on the category that is selected. Any help would be greatly appreciated.


#2

Here’s an example: https://plot.ly/~chelsea_lyn/12871.embed

See the corresponding MATLAB code: https://plot.ly/~chelsea_lyn/12871.m

Dropdowns menu are a new feature to plotly; so we haven’t had the chance to write a MATLAB tutorial for them. In the meantime, you might want to look at our python tutorial here: https://plot.ly/python/dropdowns/


#3

That’s great. Thanks for your reply.