Parcats not support displaying the category name
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 18.8k
- Forks
- 2.8k
- Merge moyen
- 16 h 26 min
- PR mergées (30 j)
- 21
Description
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)
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par exécuter l’exemple Python go.Parcats fourni et comparez le résultat actuel du survol avec le nom de catégorie demandé. Suivez ensuite la manière dont Parcats gère hovertemplate et dimension labels, puis vérifiez que les noms de catégorie apparaissent au survol sans modifier le contenu de survol existant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- plotly, python
- Domaine
- data-visualization
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100