效果图
源代码
option = {series: [{type: 'treemap',data: [{name: 'nodeA', // First treevalue: 10,children: [{name: 'nodeAa', // First leaf of first treevalue: 4}, {name: 'nodeAb', // Second leaf of first treevalue: 6}]}, {name: 'nodeB', // Second treevalue: 20,children: [{name: 'nodeBa', // Son of first treevalue: 20,children: [{name: 'nodeBa1', // Granson of first treevalue: 20}]}]}]}]};
如果觉得《146Echarts - 矩形树图(Basic Treemap)》对你有帮助,请点赞、收藏,并留下你的观点哦!