Get center node value of the rendered sunburst chart Plotly.js 2.2.0
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
I am using plotly.js in my angular 10 app. Sunburst chart feature is working fine. I have a requirement where I need to take the center piece of the data rendered and use it to call a few webservices to populate other sections of the page.
Scenario 1 Works fine:
This works when I click from the initial root node and move towards the leaf (outer edges), because the outer edge value can be read using sun burst click event and eventually I know it is going to be the center piece.
Scenario 2 has problem
But when I try to click the center piece and move towards its parent (like reverse direction) , this center piece now becomes a leaf(becomes immediate outer edge) and its parent becomes the center piece, I wanted to know the center piece's value and use it to call other web services for my page. But I am unable to read the value of the center piece in this context.
I am curious to know how we can handle scenario 2. If there are properties/events to get hold of the center piece value after the chart is re-rendered, that will be great.
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 escenario de navegación inversa en una aplicación Angular 10 usando Plotly.js 2.2.0 y, después, inspecciona los datos de los eventos de clic y de re-renderizado de sunburst. Se considera completado cuando el valor del nodo central está disponible después de hacer clic hacia su nodo padre, de modo que pueda controlar las otras secciones de la página.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, javascript
- Área
- data-visualization, frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 28/100