Facet Axis Titles cut off on plotly's chart studio
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- R
- Estrellas
- 2.7k
- Forks
- 641
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la publicación comunitaria enlazada y reproduce un ggplot facetado renderizado mediante ggplotly dentro de un iframe, comparándolo con la vista de RStudio o del creador de gráficos. Investiga cómo las etiquetas de los ejes de las facetas se convierten en anotaciones y define una estrategia que mantenga visibles ambos títulos de los ejes sin recortarlos; se considera terminado cuando los títulos se renderizan completamente en el iframe.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- r
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100