Open cpsievert opened 7 years ago
This and https://github.com/plotly/plotly.js/issues/1516 makes me think our one lone category axis type is insufficient to cover all cases.
I'm thinking about adding a categoryvisible
attribute with possible values 'trace'
(show categories of traces that have visible: true
or visible: 'legendonly'
- the current behavior), 'array'
(always show all categories in categoryarray
) and 'legend'
(show categories of trace that have visible: true
). Setting categoryvisible: 'legend'
would give the desired result here.
Hi @etpinard, thanks for pointing us to this thread. This issue is important for an R package we created based on R/plotly (i.e.: heatmaply). Would you, by chance, be willing to give this issue another look/thought to see if this could be moved forward?
Thanks.
@talgalili this won't be on our priority list for the next few months I'm afraid.
Is there any update or workaround for this issue? It would be great to have the mentioned functionality.
I would also love to see this issue resolved. I am using drop-down menus to reorder the boxes in a boxplot using 'categoryarray' and unfortunately it results in legend toggling not working as expected.
Some context in https://github.com/ropensci/plotly/issues/689
https://codepen.io/cpsievert/pen/aWZdWK