Hover information partially disappear when providing color input
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- R
- Star
- 2.7k
- Fork
- 641
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Thanks for this package, it is very useful!
When using it, I encountered a kind of weird bug.
The two following plots should be identical and behave in the same way, except that the second one has colored points.
library(plotly)
plot_ly() %>%
add_markers(
x = c(1,2,3), y = c(1,2,3), z = c(1,2,3))
plot_ly() %>%
add_markers(
x = c(1,2,3), y = c(1,2,3), z = c(1,2,3), color = c(1,2,3))
For the first plot, all the values appear when I hover over all 3 points, as expected.
However, for the second plot, I can only hover over the second point; no information appears when I hover over the first nor the third point. Here are two screenshots that I made with the second plot (the one that has the bug).
The expected behavior is that the similar type of information would appear for all points.
More generally, I have the impression than when doing a scatter plot with $n$ points, I can only get the hover information of $n-2$ of them if they are colored. For example, the hoverinfo do not appear for the "extreme" points of this plot:
n = 10
plot_ly() %>%
add_trace(
x = 1:n, y = 1:n, z = 1:n, color = 1:n, type="scatter3d", mode="markers")
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.
Hướng nghiên cứu
Bắt đầu bằng cách chạy hai ví dụ plot_ly()/add_markers() và ví dụ scatter3d với n = 10 để tái hiện thông tin hover bị thiếu tại các điểm cực trị. So sánh hành vi hover đối với các điểm có màu và không có màu; hoàn tất khi thông tin hover xuất hiện nhất quán cho mọi điểm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- r
- Lĩnh vực
- data-visualization
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 32/100