plotly / plotly/plotly.py

Parcats not support displaying the category name

Aperta
#4,175 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug P3
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia eseguendo l'esempio Python go.Parcats fornito e confronta l'output attuale dell'hover con il nome della categoria richiesto. Traccia il modo in cui Parcats gestisce hovertemplate e dimension labels, quindi verifica che i nomi delle categorie compaiano sull'hover senza compromettere il contenuto di hover esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
plotly, python
Ambito
data-visualization
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.