score:1

Accepted answer

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/

score: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.


Related Query

More Query from same tag