i want to make it horizental at my value- lab(ex : 1, 2, 3, 4, 5, 6, 7...) and why print array vertical in chartjs?
why don't print my value my value - op3? (360.4,360.4,360.4,360.4,360.4,360.4)
my graph enter image description here
that's my code enter image description here
in my console enter image description here
json data enter image description here
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],
...