plotly / plotly/plotly.py

Parcats not support displaying the category name

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

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

bug P3
Ngôn ngữ chính
Python
Star
18.8k
Fork
2.8k
Merge trung bình
16 giờ 26 phút
Pull request đã merge (30 ngày)
21

Mô tả

Summary of the issue: You wanted to display the category name on hover in a go.Parcats plot using Plotly for Python. We tried using the hoverinfo and hovertemplate parameters to achieve this, but these parameters do not support displaying the category name. Currently, it seems that it is not possible to directly display the category name on hover in a go.Parcats plot using Plotly for Python.

Report: Dear Plotly Developers,

I recently encountered an issue while creating a go.Parcats plot using Plotly for Python. I wanted to display the category name on hover, but I found that this functionality does not seem to be possible.

I tried using the hoverinfo and hovertemplate parameters to achieve this, but these parameters do not support displaying the category name. Upon further investigation, I found that it is currently not possible to directly display the category name on hover in a go.Parcats plot using Plotly for Python.

I believe this is an important feature that would help users better understand the data in the plot. Therefore, I strongly suggest that you consider adjusting this issue to support displaying the category name on hover in future versions.

Thank you for your attention to this matter and I look forward to your response.

import plotly.graph_objs as go
from plotly.offline import iplot

# Create a trace for the parcats plot
parcats = go.Parcats(
    dimensions=[
        {'label': 'Category A',
         'values': ['A1', 'A2', 'A3']},
        {'label': 'Category B',
         'values': ['B1', 'B2', 'B3']}
    ],
    hovertemplate='%{dimension.label}'
)

# Create the layout
layout = go.Layout(
    title='Parcats Plot with Hover Text'
)

# Create the figure
fig = go.Figure(data=[parcats], layout=layout)

# Show the plot
iplot(fig)

image image

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 chạy ví dụ Python go.Parcats được cung cấp và so sánh đầu ra hover hiện tại với tên danh mục được yêu cầu. Theo dõi cách Parcats xử lý hovertemplate và dimension labels, sau đó xác minh rằng tên danh mục xuất hiện khi hover mà không làm hỏng nội dung hover hiện có.

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

Đánh giá

Công nghệ
plotly, python
Lĩnh vực
data-visualization
Loại issue
Tính năng
Độ 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
35/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.