helgasoft opened a new issue, #20379: URL: https://github.com/apache/echarts/issues/20379
### What problem does this feature solve? Sunburst [levels.radius](https://echarts.apache.org/en/option.html#series-sunburst.levels.radius) could be defined in pixels or percentages of viewport size. Both options make levels' size **static** - [Demo](https://echarts.apache.org/examples/en/editor.html?c=sunburst-simple&code=MYewdgzgLgBAJgQygmBeGBtAUDGBvHXGMBAWwFMAuGAcgHEAnBMOABwRoBpDdgALAJYAbOA3Jhq2IkQLTpJCtRoBVMMCHkYAGXIguPOQDcEQgK5UYARgCs3OUX7DR4yQfuz7chRZoBhEKYQAmAwAFIIwADW-p5GJubUAExucgC-drH4KfbeSv6BwTAAsggMAJ4xmbjGZha22XKOImISmA3u7Z65tOFREOCVVdI1CTDJQ0SpnbgAup3pnR5V3X4BQSEAQuKDmSMWACzzDXP2Cx2xKwBiSHzkDDvD8RaWAAwZ9k3OrVKZS5krRXID08e2o1nm708fwuZB8GwYICgtwYMAACuQoHdgfZQVYjrETmkDISFjMANxYUCQWAaQzkIQQdAYGAAehZMFKmgApDAQAAzGCGATkADurBADFgQQAXuROMREbyBRBTGAAEamBjQGAy8iEPDpXBsmDBIVBNUaGDAcSYlFwRH6mBMOACQKUDA0F5crg0SyWb0zeUCTGkADKUDKGkoeFAQgllBorGC0VSMENbPoTBY7Bojudrog7t9iW9nBoiQAzAGgyHw5GqDGQHGGAmk2AU2msOSsCBWFABOA0FlcBA7sLC5g_hHWD4VerNdAuE6EC63ZhPaXaNYvTRAwZEMhIbT6RBCKk5qkKaOoAAVAQUAJQAAUAA80AA-Ye8vsDsAAOlHBhxwwF4Zj_fNAiHD0d 3lGgAA4d27XBSDKXw-FKKAAIxAB5H9wCfXt-3AABKMlWRZeUoAYcxSKwQ1EgYxJSKAA). A new convenient and responsive option would be to allow percentages to depend on **current sunburst size**. ### What does the proposed API look like? ``` levels: [ { radius: '20%' }, // percentage of sunburst size { }, { }, // these 2 levels will adapt to fit in remaining space (2 * 5% = 10%) { radius: '70%' }, // percentage of sunburst size ] ``` At present, _radius_ is defined as a number or an array, so adding a _string_ type wont break existing code. This also avoids adding a new option property. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
