    ];
                var legendData = [];

                echarts.util.each(data, function (item, index) {
                    item.itemStyle = {
                        normal: {color: colorList[index]}
                    };
                    legendData.push(item.name);
                });

                chart.setOption({
                    legend: {
                        data: legendData,
                        formatter: function (name) {
                            return name.replace(/\n/g,