BitChart draws its crosshair and axis chip under the hovered bar instead of the hovered category
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start in Components/Chart/BitChart.razor.cs, at BitChart.BuildHover, and trace how it chooses positions from the hovered element versus the active category group. Reproduce with a grouped bar chart using default interaction and then Index mode. Done when the crosshair and axis chip stay centered on the category as the pointer moves between its bars.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
In a bar chart with more than one dataset (grouped bars), the crosshair line and the crosshair label (the chip on the index axis) are drawn at the center of one bar of the group, not at the center of its category: with the default Nearest interaction, hovering the empty part of a category (its hit band) puts them at the category's first bar; with an Index interaction, hovering a bar puts them at the hovered bar.
So the chip lands beside the axis's own tick label of that category instead of over it, and the category's name reads as written twice under the axis (e.g. Mon 19 under the first bar of the group and again under the middle of the group). With an Index interaction, moving the pointer from one bar of the group to the next moves the line and the chip, although the active category (and the tooltip, which the Average positioner already centers on the group) stays the same.
Cause
BitChart.BuildHover (Components/Chart/BitChart.razor.cs) positions both from the hovered element e (e.CenterX / e.CenterY), while in an index-style interaction the whole category is active (group, the elements of e.DataIndex); for a hit band e is RepresentativeOf(band), the category's first element.
Steps to reproduce
- A
BitChartofBitChartType.Barwith three datasets and a few category labels, default options. - Hover the empty space between two bars of a category: the dashed crosshair and the chip sit under the category's first bar, beside its tick label.
- With
Interaction = { Mode = BitChartInteractionMode.Index }, hover the first bar of a category, then the last one: the crosshair and the chip jump from bar to bar.
Expected behavior
The crosshair and its chip stay on the category - the middle of the group - wherever in it the pointer is, as they already do on a line chart, where all the points of an index share one x.
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
-
area-multitenancy area-security p1-recommended priority-high technical-debt
Dificultad 2/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
pulumi/pulumi-azure#3669 ·
-
type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
webclient does not startPosiblemente ocupada @PawelTroka la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PawelTroka/Computator.NET#257 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
eriknihlen/OpenAC#255 ·
Los mantenedores suelen responder en 1 día