legend: {
icon: 'circle',
top: "15px",
right: "10px",
textStyle: { // 图例的字体颜色
// fontSize:20,字体大小
color: 'rgba(174, 188, 174, 1)'
},
//设置每个图例之间的位置
itemGap: 50,
data: ['未戴安全帽', '违规抽烟', '未戴安全带', '违规动火']
},
//调整
grid: {
left: '1%',
right: '0%',
bottom: '9%',
//true表示坐标轴包含在内
containLabel: true
},