Accessibility: give the plot area a name and a description of its series

Abierto
#275 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start in Plot and PlotUi, especially legend.rs and the plot response's existing WidgetInfo handling. Check how egui exposes plot responses to AccessKit, then trace how plot items provide their names, kinds, point counts, and ranges. Done when the plot node has a useful accessible name and description, with the proposed opt-out or override, and the behavior is covered by tests.

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

Descripción

A screen reader sees nothing of a plot today: the legend's entries are checkboxes with their names (legend.rs), but the plot area itself sets no WidgetInfo, so AccessKit gets an unnamed node with no description of what is drawn.

Proposal: give the plot response a name and a short description, e.g.

  • Plot::accessible_label(impl Into<String>) (default: the plot's id or "Plot"), and
  • a description built from the items, which PlotUi already holds: each item's name and kind, its number of points and its x / y ranges (e.g. "sin (line): 200 points, x from 0 to 19.9, y from -1 to 1"), with an opt-out or an override for applications that describe the data better.

We wrap egui_plot in an application framework and currently add this node ourselves on top of the response; having it in egui_plot would help every user. Happy to open a small PR if this direction is welcome.

Lenguaje dominante
Rust
Estrellas
494
Forks
110
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 emilk/egui_plot

Todos los issues de emilk/egui_plot

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.