Plotly does not correctly redraw text items when updated through Plotly.react()
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.3k
- Forks
- 2k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 28
Descripción
- Open https://codepen.io/rtwfroody/pen/OJRxdMy, and you'll see a graph with the points labeled "one", "two", and "three".
- Hit the toggle checkbox, and the graph contents will change. Now only the first point is labeled. This is expected.
- Hit the toggle checkbox again. The code returns the graph to the exact same data as it started with, but the 2nd and 3rd points have no labels.
- No matter how many times you hit the checkbox, the original labels are never drawn.
This is a simple example of the issue I have in https://casualhacker.net/covid19-wealth. In that link, you can see that when you change the scale (see log checkboxes), then the labels are redrawn correctly.
Using layout.datarevision doesn't make things better.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el comportamiento del CodePen enlazado usando Plotly.react(), alternando la casilla de verificación para eliminar y restaurar las etiquetas. Empieza siguiendo la ruta de redibujado de Plotly.react() para los elementos de texto y comprobando si layout.datarevision la afecta. Se considera terminado cuando las etiquetas segunda y tercera vuelven después de restaurar los datos originales, coincidiendo con el gráfico inicial.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100