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

Đang mở
#275 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
494
Fork
110
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của emilk/egui_plot

Tất cả issue của emilk/egui_plot

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.