文章来源: https://blog.csdn.net/csm17805987903/article/details/85111835
legend 文字很多的时候对文字做裁剪并且开启 tooltip
legend: { formatter: function (name) { if (!name) return ''; if (name.length > 5) { name = name.slice(0,5) + '...'; } }, tooltip: { show: true } }
文章来源: https://blog.csdn.net/csm17805987903/article/details/85111835
legend 文字很多的时候对文字做裁剪并且开启 tooltip
legend: { formatter: function (name) { if (!name) return ''; if (name.length > 5) { name = name.slice(0,5) + '...'; } }, tooltip: { show: true } }