plotly / plotly/plotly.js

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

Open
#6,816 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked CodePen and read the existing hoveron, line, point, and marker documentation or entry points it references. The request needs a settled interaction design before implementation; done would mean horizontal lines can be targeted as described and marker dimensions support the intended spanning behavior, with coverage for the agreed cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.