plotly / plotly/plotly.py

Parcats not support displaying the category name

オープン
#4,175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
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)

image image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供されている Python go.Parcats の例を実行し、現在のホバー出力を要求されたカテゴリ名と比較します。次に、Parcats が hovertemplate と dimension labels をどのように処理しているかを追跡し、既存のホバー内容を壊さずにカテゴリ名がホバー時に表示されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
plotly, python
領域
data-visualization
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。