如何将文本或符号附加到 Chart.js 的工具提示

ved*_*vas 3 angularjs chart.js

想要在 Chart.js 的工具提示中添加 % 符号怎么办?

  var chart = new chart(ctx,{
   type:'bar',
   data : data
});
Run Code Online (Sandbox Code Playgroud)

P J*_*P J 5

options : {
         tooltips: {
                  enabled: true,
                  mode: 'single',
                  callbacks: {
                           label: function (tooltipItems, data) {
                                return  tooltipItems.yLabel + " %";
                           }
                  }
         }
Run Code Online (Sandbox Code Playgroud)