option = { backgroundColor: 'rgb(10,25,62)', color:['#7BF3F5','#DD6051'], legend: { textStyle:{ color:'#fff' } }, tooltip: { textStyle:{ color:'#fff' } }, dataset: { source: [ ['车间1', '良品', '不良品'], ['车间2', 271, 19], ['车间3', 330, 24], ['车间4', 129, 11], ['车间5', 107,12] ] }, xAxis: { type: 'category',axisLabel:{color:'#fff',fontSize:16}}, yAxis: {axisLabel:{color:'#fff'}}, series: [{ type: 'bar',barWidth: 26 }, { type: 'bar',barWidth: 26 }] };