Facet Axis Titles cut off on plotly's chart studio
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
This issue is linked to this community post: https://community.plot.ly/t/ggplotly-renders-different-online-vs-offline/14989
When ggplot creates a facet plot, the labels are shared among the multiple axes. Because Plotly only has titles tied to individual axes, these labels are created using plotly annotations when the ggplot facet is ran through ggplotly
The annotations are aligned to the canvas. The yaxis label has a negative x coordinate, and the xaxis label has a negative y coordinate. The graph shows up fine in rstudio (or in chart creator) where more of the canvas is exposed:

But, when viewing in an iframe, the axis titles get cut off.

Can we find an alternative strategy to deal with axis titles on facet graphs? My first thought is to change the placement of the x and y axes relative to the canvas so there's room for the annotations at a 0 placement.
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
Beginne mit dem verlinkten Community-Beitrag und reproduziere einen facettierten ggplot, der durch ggplotly innerhalb eines iframe gerendert wird, und vergleiche ihn mit der RStudio- oder Chart-Creator-Ansicht. Untersuche, wie Facet-Achsenbeschriftungen zu Annotationen werden, und definiere eine Strategie, die beide Achsentitel ohne Abschneiden sichtbar hält; fertig ist es, wenn die Titel im iframe vollständig gerendert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100