plotly / plotly/plotly.js

provide line connect threshold to avoid need to add NaNs to data

Open
#6,551 4 comments 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

We must add nan rows to the datasets if we want to plot a line plot with significant gaps in the middle.

https://stackoverflow.com/questions/71382497/removing-gaps-between-data-on-a-plotly-graph
This workaround could be better as we add fake data to make the plot do what we want.

Let's define line_connect_threshold = x if the distance is more significant, not connected.

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

No files, tests, or entry points are named. Start by locating the line-plot handling for gaps and existing NaN behavior, then define the threshold semantics and verify that large x-distance gaps remain disconnected without requiring fake rows.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.