apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.42k stars 19.61k forks source link

[Feature] sunburst toggle hidden ring overlay onClick / onSelect #20386

Open nphias opened 2 weeks ago

nphias commented 2 weeks ago

What problem does this feature solve?

I would like to be able to see a hidden ring with the same shape after an onClick event. The ring would be in the levels data with show and opacity to control visibility. the original ring would then be hidden and moved down in Z dimension. The exposed ring has its own clickable/visible children.

with an onClick or onSelect event I can call setOption on the chart instance load new levels data to toggle the rings however this results in the nodeClick: rootToNode not rendering. perhaps setOption is not the way to do this?

on the return journey (click in the center) the ring toggling would need to be reversed

What does the proposed API look like?

The ring toggle is a bit of hack .. there could be sub-levels option in the levels properties/arguments

helgasoft commented 2 weeks ago

select a segment for zooming into the sunburst chart and have more detailed info fill the space, not just the label

Maybe explaining "zooming" and "detailed info" will help... Otherwise selecting a node is possible and then customizing the label with text+images(rich) will work.

nphias commented 1 week ago

select a segment for zooming into the sunburst chart and have more detailed info fill the space, not just the label

Maybe explaining "zooming" and "detailed info" will help... Otherwise selecting a node is possible and then customizing the label with text+images(rich) will work.

this is actually another type of chart .. where the each level has a data tree for vertical / z navigation. instead of the levels representing all the tree data. so adding a data attribute to the level properties and taking care of zooming down and up the z levels @helgasoft could you give your opinion again on this?