BitChart labels grow into the plot in a right-to-left page
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
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
- Área
- accessibility, frontend
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
- A page with
dir="rtl"(or a chart withDir="BitDir.Rtl"). - A line chart whose y ticks have a long label, e.g.
Ticks = new() { Callback = (v, _) => $"{v:N0} میلیون" }. - 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
- 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.
Más de bitfoundation/bitplatform
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
bitfoundation/bitplatform#14070 ·
Los mantenedores suelen responder en 1 día
-
BitSwipeTrap sets itself up again on every render while its first setup is pendingPosiblemente ocupada @yasmoradi la tomó hoy. Abierto
bitfoundation/bitplatform#14143 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bit BlazorUI's trimming tests fail on LinuxPosiblemente ocupada @yasmoradi la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
bitfoundation/bitplatform#14132 ·
Los mantenedores suelen responder en 1 día
-
BbScanner improvementsPosiblemente ocupada @msynk la tomó hoy. Abiertoarea / bbscanner
bitfoundation/bitplatform#14128 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
BitTimeZonePicker builds its whole time zone list while it is closedPosiblemente ocupada @yasmoradi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
bitfoundation/bitplatform#14125 ·
Los mantenedores suelen responder en 1 día
Todos los issues de bitfoundation/bitplatform
Issues similares
-
dev/release: verify-release-candidate.sh runs 0 Java tests with Debian's MavenPosiblemente ocupada @kou la tomó hoy. AbiertoType: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/arrow-adbc#4947 ·
Los mantenedores suelen responder en 1 día
-
:watch: Not Triaged CAC
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dotnet/AspNetCore.Docs#38001 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Nimblesite/SharpLsp#468 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
elastic/ecs-dotnet#575 ·
-
V4 alert-rule reads have no scope gate, so any authenticated credential can list alert rulesAbiertoalerts bug effort:S P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nightscout/nocturne#2511 ·
Los mantenedores suelen responder en 1 día