Return the hovered point (item, index, value) in PlotResponse
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 66/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
- data-visualization
Hướng nghiên cứu
Start by reading PlotResponse::hovered_plot_item and the existing PlotItem::find_closest → ClosestElem flow that supplies the hover label and cursor. The proposal is to expose the closest item's ID, point index, and value using that same search and radius; done when applications can read that hovered point from PlotResponse without repeating the series search.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
PlotResponse::hovered_plot_item tells which item is hovered, but not which point of it. egui_plot already finds the element closest to the pointer (PlotItem::find_closest → ClosestElem) to draw the hover label and cursor, yet that result is not returned.
Proposal: add the closest element to PlotResponse, e.g. hovered_point: Option<HoveredPoint { item: ItemId, index: usize, value: PlotPoint }>, using the same search and radius as the label. Applications that show the hovered value elsewhere (a status line, a linked view, a tooltip of their own) would not have to repeat the search over all series.
Happy to open a small PR if this 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của emilk/egui_plot
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Tất cả issue của emilk/egui_plot
Issue tương tự
-
chat compiler P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
HerringtonDarkholme/hd-lang#2793 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
security-advisory
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MinBZK/regelrecht#2173 ·
-
ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
jonathanong/no-mistakes#5804 ·
-
triage: failed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
oxc-project/tsrs#1277 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày