legend: {
bottom: "bottom",
formatter: function (name) {
return "{a|" + name + "}";
},
textStyle: {
color: "rgba(255,255,255,.5)",
fontSize: "12",
// 文字块背景色,一定要加上,否则对齐不会生效
backgroundColor: "transparent",
rich: {
a: {
width: 60,
},
},
},
},
echarts饼状图legend 图例对齐
最新推荐文章于 2024-06-13 09:33:21 发布