echart提示框内容数据添加单位

本文为博主原创,转载须注明转载地址:

方法为:

 tooltip : {
                            trigger: 'axis',
                            formatter: '{a0}:{c0}%'
                        },
                        legend: {
                            data:['测试']
                        },

此效果为:在提示框的数据添加%号

原文地址:https://www.cnblogs.com/zjdxr-up/p/8059940.html