optionRight2:{
grid: {
top: "10%",
left: "7%",
right: "7%",
bottom: "5%",
containLabel: true,
},
tooltip: {
trigger: 'axis',
},
xAxis: {
type: 'category',
data: ['灭火器材','安全通道','疏散标志','通道照明','露天车场','装修施工现场','其它隐患'],
axisLabel: {
color: "#fff",
rotate: 60,
padding:[20,0,0,-15]
},
axisLine: {
lineStyle: {
color: "#ccc",
},
},
},
yAxis: {
type: 'value',
axisTick: {
show: true, //显示刻度线
},
axisLine: {
show: true, //显示y轴
lineStyle: {
color: "#ccc",
}
},
axisLabel: {
show: true, //显示刻度值
color: "#fff",
},
splitLine: {
show: true,
},
},
series: {
data: [20,13,8,40,28,69,53],
type: 'line',
color: 'rgba(205, 132, 13, 1)',
itemStyle:{
normal:{
label:{
show:true,
position:'top',
textStyle:{
color:'#f5cc00',
fontSize:12
}
}
}
}
}
}
Effect display