Chartjs-How to input values at chartjs labels?

0👍

The problem is that in your code, lab is an array but it should be a string.

Either you create lab as a string from scratch or you convert the lab array into a string through Array.join() as follows:

data: {
  labels: [lab.join(', '), 9, 10],
  ...

Leave a comment