plotly / plotly/plotly.js

Ternary plot missing `automargin` option in `layout.ternary`

Offen
#7,333 0 Kommentare 0 Reaktionen 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

Currently the Ternary plot: https://plotly.com/javascript/ternary-plots/
doesn't have automargin option in each axis in the layout.ternary: https://plotly.com/javascript/reference/layout/ternary/

Therefore, it may happen that the title of the axis is cropped, not only in the case of long titles, but more often due to smaller screen sizes (or figure sizes).

This is more likely for the title text in axes B and C located in the bottom being cropped, e.g.:

Image

Image

Titles are being cropped!

Demo example: https://codepen.io/Lexachoc/pen/MYgVGoW

Image
The title in axis B has no margin to adjust the position and is therefore cropped.

It would be very helpful to add this option (or a similar one to achieve the same thing, avoiding the title text being cropped) to the ternary plot.

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 Referenz zu layout.ternary und den verknüpften Beispielen für ternäre Diagramme und verfolge anschließend, wie Achsentitel und Ränder behandelt werden. Die Arbeit ist abgeschlossen, wenn ternäre Achsen eine automargin-Option oder ein gleichwertiges Verhalten bieten und Titel, insbesondere auf den Achsen B und C, in kleinen Abbildungen nicht mehr abgeschnitten werden.

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
42/100

Neue Issues direkt in Ihr Postfach

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