echarts添加图例
legend textStyle修改图例文字颜色
legend: {
data:['临停车','月租车','免费车','储值车','军警车'],
left:'center',
bottom:'10%',
itemWidth:10,//图例的宽度
itemHeight:10,//图例的高度
textStyle:{//图例文字的样式
color:'#ccc',
fontSize:16
},
x:'right', //可设定图例在左、右、居中
y:'center', //可设定图例在上、下、居中
padding:[0,50,0,0], //可设定图例[距上方距离,距右方距离,距下方距离,距左方距离]
},