Get x axis value from mouse position, p2c etc

I was using the hacky solution for getting values from mouse position, but p2c doesn’t work with subplots, please take a look at this code pen:
It doesn’t matter if I use xaxis or xaxis2, p2c always returns values as there would be only one absolute X axis. Can anyone help with that?

1 Like