plotly / plotly/plotly.js

Plots with multiple axes are not aware of other axis tick labels

Offen
#4,785 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

It seems that when you have multiple xaxes the tick labels are not aware of tick labels from the other axis. This causes the ticks to overlap on the xaxis1 right and xaxis2 left sides when zooming in and out. The following codepen is capable of reproducing the issue: https://codepen.io/cameronwaterman/pen/LYYXyJW

image

This can be mitigated by adjusting the axis domain to allow for more space between the two, but the issue still presents itself even with spacing if the tick labels are long enough. The domain gap would have to be larger then the amount of horizontal real estate I'm willing to sacrifice to completely avoid the issue.

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

Beginne mit der verknüpften CodePen-Reproduktion und untersuche das Tick-Layout auf der multiple-x-axis beim Hinein- und Herauszoomen. Erledigt ist es, wenn sich die Tick-Labels auf der rechten Seite von xaxis1 und der linken Seite von xaxis2 nicht mehr überlappen, auch wenn die Labels lang sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
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.