plotly / plotly/plotly.py

Parcats not support displaying the category name

Abierto
#4,175 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

bug P3
Lenguaje dominante
Python
Estrellas
18.8k
Forks
2.8k
Merge medio
16 h 26 min
PR fusionados (30 d)
21

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza ejecutando el ejemplo proporcionado de Python go.Parcats y compara la salida actual del hover con el nombre de categoría solicitado. Traza cómo Parcats gestiona hovertemplate y dimension labels, y verifica después que los nombres de categoría aparezcan al hacer hover sin alterar el contenido de hover existente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
plotly, python
Área
data-visualization
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.