legend: { icon: 'rect', // 形状 itemHeight: 4, // 高度 itemWidth: 18, // 宽度 itemGap: 15, //设置图例的间距 ...... },
效果: