plotly / plotly/react-plotly.js
How to properly fetch data on relayout (onRelayout)?
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.1k
- Fork
- 138
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
I need this functionality and request some assistance to realize it.
At the moment I use the following approach:
- when user zoomed plot, onRelayout handler gets fired and starts data loading.
- when data is loaded it is passed to the component
- new data leads to re-render.
it's works fine, but:
- if I catch the moment when component is re-rendering because of the new data and do an aditional zoom operation at the same moment, then I get a strange jump/flickering of my plot for a moment.
It's looks like a race of states.
Inner state which is responsible for zoom transformations changes at the same time with component re-rendering.
I need advice on how to get rid of this bug. Or how to propeply realize this feature, in case if I completely wrong in my approach.
Thanks.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 lần theo onRelayout handler và luồng cập nhật của React Plot component được mô tả trong issue. Tái hiện chuỗi thao tác phóng to, tải dữ liệu mới, render lại và phóng to lần nữa; hoàn tất khi plot không còn nhảy hoặc nhấp nháy trong quá trình tương tác chồng lấp đó.
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, react
- 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
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100