Get center node value of the rendered sunburst chart Plotly.js 2.2.0
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reverse-navigation scenario in an Angular 10 app using Plotly.js 2.2.0, then inspect the sunburst click and re-render event data. Done means the center node's value is available after clicking toward its parent so it can drive the other page sections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100