配色
series: [ { name: '本期收入', type: 'bar', itemStyle: { normal: { color: 'rgba(193,46,52,1)', label: { show: true, position: 'top' } } }, data: [40, 155, 95, 75, 0] }, { name: '同期收入', type: 'bar', itemStyle: { normal: { color: 'rgba(230,182,0,1)', label: { show: true, position: 'top', textStyle: { color: '#27727B' } } } }, data: [100, 200, 105, 100, 156] }, { name: '本期累计', type: 'bar', xAxisIndex: 1, itemStyle: { normal: { color: 'rgba(193,46,52,0.5)', label: { show: true, position: 'top', formatter: function (p) { return p.value > 0 ? (p.value /*+ '\n'*/) : ''; } } } }, data: [96, 224, 164, 124, 0] }, { name: '同期累计', type: 'bar', xAxisIndex: 1, itemStyle: { normal: { color: 'rgba(230,182,0,0.5)', label: { show: true, position: 'top' } } }, data: [491, 283, 389, 955, 347] } ]