plotly / plotly/plotly.js

ability to extend lines for thresholds and axes

Open
#2,948 5 comments 1 reaction 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

In plotly, sometimes the lines don't go far enough, and it would be helpful to extend them.

Case 1: Multiple axes are not joined together. The x-axis line should connect all axes, not just the first 2. In the example image, I have drawn a red line where I think the x-axis should continue.

Case 2. I sometimes want to draw a target line on a chart; in this case, below the line would be "bad", resulting in a red bar, while above the line, would be good. To implement these, I have used a dedicated series, with a constant value. However, a target line should really a special case of a "grid" line, rather than a special case of a "data series", and it ought to extend right the way to the (appropriate) axis. I've drawn this in yellow on the chart below. (Even better, a target should be defined by a single value, rather than an array of repeated values).

newplot

Thanks very much :-)

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 two chart cases described in the issue: connecting an x-axis across multiple axes and extending a horizontal target or grid line to the appropriate axis. Review Plotly.js's axis, grid-line, and series rendering entry points to determine whether these require separate behaviors. Done means both cases work without representing a target as a repeated data series, with tests covering the resulting line extents.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.