plotly / plotly/plotly.js

ability to extend lines for thresholds and axes

Offen
#2,948 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature P3
Vorherrschende Sprache
JavaScript
Sterne
18.3k
Forks
2k
Ø Merge
2 T. 12 Std.
Gemergte PRs (30 T.)
28

Beschreibung

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 :-)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie damit, die beiden in der Issue beschriebenen Diagrammfälle zu reproduzieren: eine x-Achse über mehrere Achsen hinweg zu verbinden und eine horizontale Ziel- oder Rasterlinie bis zur entsprechenden Achse zu verlängern. Überprüfen Sie die Rendering-Einstiegspunkte von Plotly.js für Achsen, Rasterlinien und Serien, um festzustellen, ob dafür separate Verhaltensweisen erforderlich sind. Als erledigt gilt die Aufgabe, wenn beide Fälle funktionieren, ohne ein Ziel als wiederholte Datenserie darzustellen, und Tests die resultierenden Linienausdehnungen abdecken.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.