//这个是圆形饼图的 formatter属性在后面加数字
formatter: function (params) {
for (var i = 0; i < option.series[0].data.length; i++) {
if (option.series[0].data[i].name == params.data.name) {
return params.data.name + ":" + params.data.value;
}
}
}
// 默认色板
color:【 red 】