Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Plot value not restored correctly when interacting with multiple pointers

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

@SahinurDEV đang làm issue này rồi.

Từ ngày 9/10/2026.

  • #2467 của @SahinurDEV — đang mở

Đá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
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
data-visualization

Hướng nghiên cứu

Bắt đầu với Observable notebook được liên kết trong issue và lần theo các điểm vào tương tác được Plot.pointerY và tip của Plot.dot sử dụng. Tái hiện chuỗi di chuyển của con trỏ, sau đó xác minh rằng khi rời khỏi dot, value vẫn được đặt thành "foo" trong khi mark pointerY vẫn hoạt động.

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

Mô tả

bug

If the mouse is within the radius of multiple pointers and moves outside of one pointer's max radius, then the plot value will be set to null instead of according to the remaining active pointer.

Example (notebook):

viewof value = Plot.plot({
  marks: [
    Plot.frame(),
    Plot.rect(["foo"], Plot.pointerY({y: d => d, maxRadius: Infinity, fill: "orange"})),
    Plot.dot([{y: "foo"}], {y: "y", tip: true})
  ],
})

Steps:

  1. Move the mouse into the frame on either the left or right side so that value reads "foo".
  2. Move the mouse towards the dot until the tip appears; observe that value reads {y: "foo"}.
  3. Within the frame, move the mouse away from the dot until the tip disappears; observe that value reads null instead of "foo".

Demo:

Ngôn ngữ chính
HTML
Star
5.4k
Fork
250
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 observablehq/plot

Tất cả issue của observablehq/plot

Issue tương tự

Thêm issue về Data Visualization

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.