echarts在左下角添加单位
option = {
xAxis: {
type: 'category',data: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],name: '(个)',nameLocation: 'start',// 在头部
//间距
nameTextStyle: {
align: 'center',color:"green",verticalAlign: 'top',padding: 10,},yAxis: {
type: 'value'
},series: [{
data: [120,200,150,80,70,110,130],type: 'bar',showBackground: true,backgroundStyle: {
color: 'rgba(180,180,0.2)'
}
}]
};