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


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