ECharts提示加入自定义字符
最终效果如下 1 option = { 2 title: { 3 text: '投稿排行', 4 left: 'center', //标题居中 5 }, 6 dataset: { 7 source: [ 8 ['amount', 'product'], 9 [58212, '一中队'], 10 [78254, '二中队'], 11 [41032, '三中队'], 12 [12755, '四中队'], 13 [20145, '五中队'], 14 [79146, '六中队'], 15 [91852, '七中队'], 16 [101852, '八中队'], 17 [20112, '九中队'] 18 ] 19 }, 20 tooltip: { 21 22 formatter: function (params) { 23 return params.value[1]+ ':' + params.value[0] +'篇' ; //取数组value组合显示效果 24 }, 25 }, 26 grid: {containLabel: true}, 27 xAxis: {name: '数量'}, 28 yAxis: { 29 name:'中队名称', 30 type: 'category', 31 axisLabel: { 32 interval: 0, 33 rotate: 30 /