直接定义color数组即可
var option = {
color:['#ff671b','#666666','#888888'],
legend: {
orient: 'vertical',
x: 'left',
top: 'middle',//上下居中
itemWidth: 6,
itemHeight: 6,
selectedMode: false,
data: ['股票', '银行存款', '其他'],
formatter:function(name){
return name;
}
},
}