Legend text overlapping Labels of Y axis when legends set tot left of Chart
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.3k
- Forks
- 2k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 28
Descripción
When legends are left aligned to the chart and Y axis labels have long string. The legend and labels text seems to overlap each other

The reason behind seems the way marginPushers are calculated and the labels are rendered. Labels are rendered considering the anchor point for the text as "start" or "end" based on the side where the labels are displayed. In case of labels being displayed on left the text-anchor is set to "right" while the rest of the whole calculations for the charts does not consider this and all the other layers are rendered without considering the extra space that will be required for the labels to render themselves taking space from right to left (read here. When labels are on right we should consider them as margin pushers and calculate them for transformation/axis translations of all layers of the Charts such as zeroline/grid/plots etc,
Please share your point of view or any workarounds, if can be used.
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
Empieza rastreando cómo se calculan los marginPushers y cómo se renderizan las etiquetas del eje Y y las leyendas alineadas a la izquierda, centrándote en el comportamiento de text-anchor de SVG descrito en el issue. Reproduce el gráfico con etiquetas largas del eje Y en el lado izquierdo y una leyenda alineada a la izquierda; se considera terminado cuando la leyenda, las etiquetas, la zeroline, la cuadrícula, los plots y las traslaciones de los ejes ya no se superponen.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100