plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Update axis categories via legend interaction when categoryarray is specified

Open cpsievert opened this issue 9 years ago • 5 comments

Some context in https://github.com/ropensci/plotly/issues/689

https://codepen.io/cpsievert/pen/aWZdWK

cpsievert avatar Apr 21 '17 22:04 cpsievert

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.

etpinard avatar May 17 '17 22:05 etpinard

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 avatar Jun 13 '17 05:06 talgalili

@talgalili this won't be on our priority list for the next few months I'm afraid.

etpinard avatar Jun 14 '17 12:06 etpinard

Is there any update or workaround for this issue? It would be great to have the mentioned functionality.

jplauri avatar Jul 06 '20 06:07 jplauri

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.

pjedge avatar Jun 07 '21 22:06 pjedge