ant-design-charts
ant-design-charts copied to clipboard
🧐[Question] How to create 2 level Pie Chart with legends?
🧐 Problem Description [describe the problem in detail so everyone can understand it]
I need to create a two level pie chart somethink like:
Also I need to add legends on side like:
I saw that we have Sunburst Chart, but it does not implement the necessary Legend. So any approches or workaround would be nice.
I saw that g2 has NestedPieChart, but i didn't find it here.
💻Example code [show code, live example, or repository if necessary]
Does not apply.
🚑 Other information [Other information such as screenshots can be posted here]
For reference: TwoLevelPieChart from Recharts
Sunburst doesn't implement the legend component like in the third image. Looks like the legend config is ignored by sunburst config, as we can see in that comment.
no, the legend for the Sunburst component is deliberately omitted internally.
CN (Auto Translated):
Sunburst 没有像第三张图片那样实现字幕/图例组件。 看起来 sunburst 配置忽略了图例配置,正如我们在评论中看到的那样
不,内部故意省略了 Sunburst 组件的图例。