I have a chart with a ‘filledtoy’ line, and also a line shape that is draggable.
I want to update the filledarea till the x value of the line shape after it’s been dragged.
I attached and event to ‘plotly_afterplot’ to adjust the data belonging to the filled area
I almost have it, but, the problem I’m having is that the update only occurs after I dragged the vertical line twice
Please, take a look at this example with my current code
Anyone faced this problem or knows a way to fix this code ??