I want to create a column chart where I can highlight the parts of the columns above a horizontal plotline. To achieve this, I actually split the series up into 2, and stack them on top of each other. This works pretty well, and when you hover over a single column, I can change the color of the part that is above the plotline. Like so:
The problem is that I also want all the columns above the plotline to change color when the cursor is hovering anywhere on the chart above the plotline. The idea is that if the user's cursor is hovering above the plotline, the series above the plotline turn a faded red, and then if you hover directly on one column, that one becomes dark red. Here's a Figma showing the idea:
BEFORE:
AFTER:
Can anyone advise the best way to do this? I was trying to get a mouse hover event where I could calculate if the cursor was above or below a y coordinate (i.e. the plotline) but I couldn't find anything.