legend: {
top: '5%', //图例组件离容器上侧的距离。top 的值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比,也可以是 'top', 'middle', 'bottom'。
left: 'left', //图例组件离容器左侧的距离。同上
width: '240px', //图例组件的宽度
height: '196px', //图例组件的高度
textStyle: {
color: '#fff'
},
orient: 'vertical', //图例列表的布局朝向。horizontal,vertical
align: 'left', //图例标记和文本的对齐auto,left,right
itemHeight:'20',//图例标记的图形高度。
},