Good day!
I have a stacked bar chart and I would like to click on a series and trigger the inactive state on the rest of the series. Meaning what happens by default when you hover over a series where the rest have lower opacity, but on click.
Here's my attempt so far: https://codepen.io/ev0k3r/pen/oNErzbp
I get the index of the series and then use setState("inactive", true) for all the series that don't match this ID, but the problem is that on mouseOut, the states get reset. If I disable the invactive state from the plotOptions, then the functionality doesn't work on click.
Disabling mouseEventTracking is out as well (from my understanding of the functionality).
I read in the documentation that return false for the mouseOver/mouseOut disables the functionalty but I probably didn't understand that correctly.
Could you please suggest a workaround? The intended functionality is this:
Thank you in advance!