plotly / plotly/plotly.js

Get center node value of the rendered sunburst chart Plotly.js 2.2.0

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

Chưa có ai nhận issue này.

feature P3
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 am using plotly.js in my angular 10 app. Sunburst chart feature is working fine. I have a requirement where I need to take the center piece of the data rendered and use it to call a few webservices to populate other sections of the page.

Scenario 1 Works fine:
This works when I click from the initial root node and move towards the leaf (outer edges), because the outer edge value can be read using sun burst click event and eventually I know it is going to be the center piece.

Scenario 2 has problem
But when I try to click the center piece and move towards its parent (like reverse direction) , this center piece now becomes a leaf(becomes immediate outer edge) and its parent becomes the center piece, I wanted to know the center piece's value and use it to call other web services for my page. But I am unable to read the value of the center piece in this context.

I am curious to know how we can handle scenario 2. If there are properties/events to get hold of the center piece value after the chart is re-rendered, that will be great.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Tái hiện kịch bản điều hướng ngược trong một ứng dụng Angular 10 sử dụng Plotly.js 2.2.0, sau đó kiểm tra dữ liệu sự kiện nhấp và kết xuất lại của sunburst. Được coi là hoàn tất khi giá trị của nút trung tâm khả dụng sau khi nhấp về phía nút cha của nó, để giá trị đó có thể điều khiển các phần khác của trang.

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

Đánh giá

Công nghệ
angular, 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
Cần làm rõ
Mức phù hợp với người mới
28/100

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.