数据结构:
data = [{name: '类别1',value: 15,children: [{name: '项目1-1',value: 87,value2: 3.3,},{name: '项目1-2',value: 80,value2: 2.6,},{name: '项目1-3',value: 79,value2: 3.8,},]},{name: '类别2',value: 15,children: [{name: '项目2-1',value: 70,value2: 1.5,},{name: '项目2-2',value: 60,value2: 2.1,},{name: '项目2-3',value: 65,value2: 1.6,},]},{name: '类别3',value: 25,children: [{name: '项目3-1',value: 80,value2: 3.1,},{name: '项目3-2',value: 68,value2: 2.5,},]},{name: '类别4',value: 25,children: [{name: '项目4-1',value: 67,value2: 2.7,},{name: '项目4-2',value: 70,value2: 1.8,},{name: '项目4-3',value: 77,value2: 2.3,},]},{name: '类别5',value: 20,children: [{name: '项目5-1',value: 50,value2: 9.1,},]},
];
options:
initChart() {let myChart = this.$echarts.init(this.$refs.echarts);let corlor = ['#4594F9','#7BFBE9','#7D7446','#5E76DE','#4FE4A2'];let data = [];let nameList = [];let markPointData = [];let imgList = ['image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAAA8CAYAAAAOqdorAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAdNSURBVHhe7dx7bFRVGgDw79zSdoY+p53pu6VQRWh5ldYVfKC4Ky81aFRS467rX2tM1BijERLRGNfdLOuaEAmgxkQ0VSTRdYXQIBgooLxl+lALxdLHtJ12Hh36GKbAnG/Pufe06SiPmQ7ji++XNOfc75xpby7fedw7MwAhhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIeQ3bu1B/lLJWsQ1+/mrKkQipKmSjJOjH66XpdsPWXqARIySMEpBBLMsXX4o0AMkYpSEUTrhgT/KssUL8/UAiRglYRRcnKc0uVi6rDsGmKXNhxa9gUSEkjAKh07CclXV7W3H+1WVRICSMAofNoJ+RzzDhudkubkB/iFLEhlKwnGqd2HFoU5WnJoI8Na9UGmbCNDkZtl7W/jtqgsJEyXhOCCi6YUdcFTWV5TixpwUreGR2f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