legend: {
// 将文字的值,处理之后显示
formatter: function (name) {
if (!name) return '';
//超出几个字符隐藏,鼠标悬浮时显示
if (name.length > 6) {
name = name.slice(0,6) + '...';
}
return name
},
tooltip: {
show: true
},
icon: "circle",
itemHeight: 7,
orient: "vertical",
// x: 'left',
data: arr,
bottom: "10%",
right: -45,
right: -2,
top: 8,
align: "left",
textStyle: {
// ellipsis:'...'
},
itemGap: 9,
}
显示效果
over