Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

BitChart labels grow into the plot in a right-to-left page

Cerrado
#14,044 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Ya se ha fusionado un pull request relacionado.

  • #14046 de @Mohammadzarei754 — cerrado sin fusionar
  • #14061 de @msynk — fusionado

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp, wasm

Línea de trabajo

The issue identifies BitChart’s SVG renderer and SCSS handling around the plot, but gives no file or test names. Start by locating the renderer’s anchored <text> elements and the chart direction handling, then inspect existing chart tests. Done means axis labels stay beside their axes in LTR and RTL layouts, while Persian or Arabic label text keeps its reading order.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

In a right-to-left page (or with Dir="BitDir.Rtl"), the labels a BitChart draws in its SVG are anchored on the wrong side. The value labels of a y axis at the left grow to the right, into the plot, over the data; at the right they grow to the left, into the plot too. The longer the label (e.g. 40,000 million in Persian), the more of the plot it covers.

Cause

The renderer lays every <text> out for left-to-right text: the y axis's values get text-anchor="end" at the axis, the tick labels of a right axis start, and so on. But SVG text inherits the CSS direction of the page, and in a right-to-left one end is the left edge of the text and start its right edge, so each such label is drawn on the other side of its anchor. The chart has no right-to-left handling for the SVG (its scss handles the HTML parts around the plot only), so this reaches every anchored label.

Steps to reproduce
  1. A page with dir="rtl" (or a chart with Dir="BitDir.Rtl").
  2. A line chart whose y ticks have a long label, e.g. Ticks = new() { Callback = (v, _) => $"{v:N0} میلیون" }.
  3. The labels start at the axis and run over the plot instead of ending at it.
Expected behavior

The labels sit beside the axis on the side the renderer measured them for, in either direction, while each label's own words keep their order (a Persian or Arabic label still reads right to left).

Version

Bit.BlazorUI.Extras 11.0.0-pre-10 (still in develop).

Lenguaje dominante
C#
Estrellas
1.4k
Forks
264
Merge medio
13 h 15 min
PR fusionados (30 d)
344

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bitfoundation/bitplatform

Todos los issues de bitfoundation/bitplatform

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.