Legend click behaviour - legend item opacity

Hey,

By default when clicking on a legend item, its HTML element gets added a ‘style=“opacity: 0.5;”’ attribute. This is problematic when one trace is allocated the color black and another the color grey. When the first trace is deselected, both legend items then appear to have the same color.

My desire is to override this behaviour and replace it with a strikethough styling of the legend item. Any suggestions for how to accomplish this?

1 Like

I have some transparent markers, and the legend matches the marker transparency. When I click the legend items, their opacity is further reduced. I suspect the legend item opacity is halved when deactivating the trace, but I could not find the attribute. Can anyone confirm?