Hey, I’m currently using Plot.ly offline in a BI Tool (Mode Analytics) and am trying to great a “nested” button.
I have a timescale graph where the buttons update the “store” that the data represents. I’d like to have a 2nd set of buttons (Daily, Weekly, Monthly) that update the timescale grouping for the “selected” store.
To accomplish the functionality of the first graph, I have traces for all stores (ie data = [store1, store2, store3]) and based on the button selected, I call args=[{'visible': [True, False, False]}]
(where True corresponds to the correct trace based on the button clicked).
I can create a trace for the different groupings (ie data=[store1_daily, store1_weekly, store1_monthly, store2_daily, store2_weekly, store2_monthly, store3_daily, store3_weekly, store3_monthly]), but can’t figure out how to know what store is currently “selected” to then target the proper grouping (ie if Store2 is the current “selected” store, then if “weekly” is clicked, set something like arts=[{visible: [False, False, False, False, True, False, False, False, False] }]
(where “True” targets store2_monthly ). Also, I have no idea if this is even the correct way to do this.
Any thoughts?
Thanks,
Walker