Parcats not support displaying the category name
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Führen Sie zunächst das bereitgestellte Python-go.Parcats-Beispiel aus und vergleichen Sie die aktuelle Hover-Ausgabe mit dem angeforderten Kategorienamen. Verfolgen Sie anschließend, wie Parcats hovertemplate und dimension labels behandelt, und überprüfen Sie dann, dass Kategorienamen beim Hover angezeigt werden, ohne den vorhandenen Hover-Inhalt zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- plotly, python
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100