Filled area in scatterplot does not honor null values
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
Opening a new issue as requested here: https://github.com/plotly/plotly.js/issues/1132
When the scatter plot has null values on the y axis, the line drawn by plotly.js is disconnected over this area as expected. However, with fill: 'tozeroy', the filled area still spans the area with null values instead going only from known values to zero.
Short example, can be seen here: https://www.fi.muni.cz/~kas/plots/plotly-issue-7448.html
Plotly.newPlot('somediv', [{
type: "scatter",
mode: "lines",
x: [1,2,3,4,5],
y: [1,2,null,2,1],
fill: 'tozeroy',
}]);
In this example, there is no line drawn beetween (x=2, y=2) and (x=4, y=2) points as expected. There should be no filled area between x = 2 and x = 4 as well.
Thanks!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der bereitgestellten Plotly.newPlot-Reproduktion und verfolgen Sie die Behandlung der Füllung des Streudiagramms für null-y-Werte. Die Korrektur ist vollständig, wenn fill: 'tozeroy' das Intervall zwischen x=2 und x=4 ungefüllt lässt und dabei das erwartete Verhalten der getrennten Linie beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100