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

Aperta
#275 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
494
Fork
110
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di emilk/egui_plot

Tutte le issue di emilk/egui_plot

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.