Parcats not support displaying the category name
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
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)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先运行提供的 Python go.Parcats 示例,并将当前的悬停输出与请求的类别名称进行比较。跟踪 Parcats 如何处理 hovertemplate 和 dimension labels,然后验证类别名称会在悬停时显示,同时不会破坏现有的悬停内容。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- plotly, python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100