echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] sunburst toggle hidden ring overlay onClick / onSelect

Open nphias opened this issue 1 year ago • 2 comments

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

nphias avatar Oct 01 '24 21:10 nphias

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.

helgasoft avatar Oct 02 '24 18:10 helgasoft

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?

nphias avatar Oct 09 '24 11:10 nphias