Hovertemplate's text does not change between sliders.steps when on mobile and there's also no method of closing the tool-tip once opened
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 18.3k
- Fork
- 2k
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 28
Mô tả
I have a stacked bar chart with two simple traces and two sliders.steps.
Each trace has a hovertemplate: "%{y} - %{x:.2f}% <extra></extra>" property.
On mobile when I touch a bar I get its appropriate hovertemplate text, which is good.
But from here there are two issues:
- first is that no matter where I touch on the screen, the hovertemplate won't disappear . So once opened, it's always open.
- the second issue is that if the hovertemplate is open and I change from one slider step to the other, the info in the tool-tip does not change with the appropriate info from the selected step.
Here is a simple bar chart that, when switched to mobile, behaves how I described: https://es7kb8.csb.app/
Here is the code: https://codesandbox.io/s/relaxed-brahmagupta-es7kb8?resolutionWidth=484&resolutionHeight=675&file=/src/App.js
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 tái hiện hành vi trên mobile trong CodeSandbox được liên kết, ở độ phân giải mobile đã cung cấp, sử dụng biểu đồ thanh xếp chồng với hai traces và hai sliders.steps. Theo dõi cách trạng thái của hovertemplate phản hồi khi dismiss bằng touch và khi các slider thay đổi; hoàn tất khi tooltip có thể được đóng trên mobile và cập nhật theo dữ liệu của step được chọn trong lúc đang 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ệ
- javascript
- Lĩnh vực
- data-visualization, frontend
- 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