icon:图例形状,类型包括 circle,rect, line,roundRect,triangle,diamond,pin,arrow,none
legend: {
orient: "vertical",//图例的布局,水平布局、垂直布局
itemWidth: 8,//图例宽度
itemHeight: 8,//图例高度
itemGap: 30,//图例之间的间隙
bottom: "bottom",//图例位置
textStyle: {//图例字体样式
color: "#000",
fontSize: 14,
fontFamily: "微软雅黑"
}
},
icon可以写在legend外面
效果: