[Chartjs]-Chart JS : Getting issue with draw bar chart

1πŸ‘

βœ…

On line 4 of JSFiddle is your problem:

 newbardata.lables = [""];

you need to fix it to

 newbardata.labels = [""];

the chart will render properly afterwards.

Here is an updated JSfiddle
https://jsfiddle.net/7bkr5e5h/2/

1πŸ‘

it looks like youve misspelt labels.

when you start creating your newbardata object you spell labels as lables and the chart library is looking for a property called labels.

Leave a comment