添加legeng的icon属性即可:
legend: {
data: ['意大利', '巴西', '西班牙', '德国', '英国', '法国' , '美国' ,'俄罗斯'],
icon: "roundRect",
},
该属性取值有:
circle 圆形
rect 矩形
roundRect 圆角矩形
triangle 三角形
diamond 菱形
pin 不知道是啥
arrow 箭头
none 无