Chart.js: Count Database Entry and Display on Chart.js.

Try out the Create a Custom Chart example to see how it’s done.

You also might want to consider trying out the Chart.js Custom Element example for a different approach.