plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
17.05k stars 1.86k forks source link

Add a hoveron for lines+points and having marker height and width style #6816

Open philpil opened 10 months ago

philpil commented 10 months ago

I've made a codepen so you can understand what I'm asking for

https://codepen.io/philhendry/pen/xxMeQpJ

Ideally I'd like to make all the horizontal lines clickable here, I dont want to use closest to find the closest point.

I know I can achieve this if the hoveron works for lines and points if i can set it to be hlines or vlines or hvlines so i have control over which lines have a spanning on the x axis, or if i can manipulate the width of the markers so they can start and end at the hvh start and end

If anyone has a work around or a fix that would be great, but i think this should be a feature

philpil commented 10 months ago

or if there is a way to set the points marker size to the size of the horizontal line in line:{ shape:'hvh'