plotly / plotly/plotly.py

allow boxes of different height on the timeline graph

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

Nadie ha tomado este issue todavía.

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

Descripción

Hi,

I have a situation where I would like to visualize the burn rate of projects on a timeline. It would be most logical to present this as the height of each box. Currently every row in the timeline graph is of uniform height, and there is no provision for changing the size.

Would it be possible to add a new feature for varying heights within the timeline graph? Something like this (in Plotly Express):

df = pd.DataFrame([
    dict(Task="Project A", Start='2009-01-01', Finish='2009-02-28', Burnrate=200),
    dict(Task="Project B", Start='2009-03-05', Finish='2009-04-15', Burnrate=75),
    dict(Task="Project C", Start='2009-02-20', Finish='2009-05-30', Burnrate=110)
])

fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", size="Burnrate")
fig.show()

Also, while the boxes can be drawn very slim (low size values), there probably needs to be a minimum row height determined by the label text.

Something similar could probably be built by stacking bar charts or area plots in one facet column, but I think the resulting graph would be too high and might also be visually too complicated.

Cheers,
--Martin

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 con el punto de entrada timeline de Plotly Express y el ejemplo de Python proporcionado. Determina cómo deberían comportarse las distintas alturas de caja basadas en Burnrate y una altura mínima de fila determinada por label, y valida después la funcionalidad con ejemplos de timeline y pruebas que cubran diferentes tamaños.

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
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.