1 option = { 2 3 tooltip: { 4 trigger: 'item', 5 position: ['40%', '40%'], 6 formatter: function (params) { 7 var index = params.dataIndex; 8 var name = ["aaaa", "bbbb", "cccc"]; 9 10 var res = "<div><span style='text-decoration: underline;'>" + name[index] 11 + "</span>TOP4</div><div style='width:100px;font-size: 12px;'><table style='width:100%;'>"; 12 if (index === 0) { 13 res += "<tr>
Echarts笔记1-饼图,自定义tooltip
最新推荐文章于 2024-03-21 18:34:03 发布