plotly / plotly/plotly.js

Set scatter chart marker size using coordinates

Đang mở
#7,384 3 bình luận 1 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'd like to set the marker size in scatter charts using coordinates.

My suggestion to implement this would be to add x0, x1, y0, and y1 attributes for scatter chart points, if these attributes are set the marker would scale to fit inside those coordinates. When setting the size using coordinates, the existing marker size attribute could be used as a minimum size.

The purpose of this is to be able to have points which represent a range of data instead of just a singular coordinate. A range of values across only one axis should also be supported.

The existing layout shapes aren't fit for our purpose because they can't be interacted with, and are quite slow for large datasets.

Here is an example of the type of data I would like to present (made using the existing shapes)

There have been related requests for absolute marker sizes already https://github.com/plotly/plotly.js/issues/3682
And similar requests in plotly.py https://github.com/plotly/plotly.py/issues/3535

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

Bắt đầu bằng cách xem xét triển khai scatter-chart và các yêu cầu liên quan trong các issue 3682 và plotly.py 3535, sau đó so sánh ví dụ CodePen với cách tiếp cận hiện tại dựa trên shape. Done cần hỗ trợ các phạm vi x0, x1, y0 và y1, bao gồm cả các phạm vi trên một trục, đồng thời giữ kích thước marker làm mức tối thiểu và duy trì khả năng tương tác đối với các tập dữ liệu lớn.

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
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
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
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.