legend: {
icon: 'circle', // 图标形状
show: true,
bottom: 0,
itemWidth: 8, // 图标宽度
itemHeight: 8, // 图标高度
// 图标与文本垂直对齐
textStyle: {
fontSize: 12,
color: '#333333',
rich: {
a: {
verticalAlign: 'middle',
},
},
lineHeight: 8,
padding: [0, 5, -4, 0], //★图例的图标内边距top right bottom left(重点)
},
},
echarts的legend的小图标与文本垂直对齐
最新推荐文章于 2024-03-12 10:34:20 发布