图例形状根据icon配置https://echarts.apache.org/zh/option.html#legend.icon后面添加的样式可以在textStyle的rich中配置legend: { textStyle: { rich: { a: { fontWeight: 'bold', padding: [0, 0, 0, 10] } } }, formatter: function (name) { return name + '{a|37}'; }, icon: 'circle' },
图例形状根据icon配置https://echarts.apache.org/zh/option.html#legend.icon
后面添加的样式可以在textStyle的rich中配置