how to display data values on Chart.js
问题 I would like to ask if it's possible using Chart.js to display data values? I want to print the graph. Thanks for any advice. 回答1: Late edit: there is an official plugin for Chart.js 2.7.0+ to do this: https://github.com/chartjs/chartjs-plugin-datalabels Original answer: You can loop through the points / bars onAnimationComplete and display the values Preview HTML <canvas id="myChart1" height="300" width="500"></canvas> <canvas id="myChart2" height="300" width="500"></canvas> Script var