💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### **通过万能组件配置矩形树图** **案例效果** ![](http://qiniu.yuncon.net/00ad17545a21411b14242ec96317e234) **代码实现** ~~~ option = { series: [{ type: 'treemap', data: [{ name: 'nodeA', // First tree value: 10, children: [{ name: 'nodeAa', // First leaf of first tree value: 4 }, { name: 'nodeAb', // Second leaf of first tree value: 6 }] }, { name: 'nodeB', // Second tree value: 20, children: [{ name: 'nodeBa', // Son of first tree value: 20, children: [{ name: 'nodeBa1', // Granson of first tree value: 20 }] }] }] }] }; ~~~