option = {
xAxis: {
type: 'category',
data: ['优化前', '代码懒注入']
},
yAxis: {
type: 'value'
},
series: [{
data: [284, 152],
type: 'bar',
showBackground: true,
barWidth: 120,
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
}]
};