自定义echarts label里的颜色
option = {xAxis: {type: 'category',data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']},yAxis: {type: 'value'},series: [{data: [120, 200, 150, 80, 70, 110, 130],type: 'bar',label:{show: true,formatter: function (params){console.log(params)if (params.value > 100){return '{a|'+ params.value +'}'} else {return '{b|'+ params.value +'}'}},rich: {a: {color: "#ff0000",fontSize: 20,},b: {color: '#fff',fontSize: 20,}}}}]
};