airblade / chartjs-ror

[Not supported - see #53] Simplifies using Chart.js in Rails
MIT License
184 stars 57 forks source link

Uncaught TypeError: Cannot read property 'draw' of undefined #13

Closed vinimxit closed 8 years ago

vinimxit commented 9 years ago

line

The format of my data is as above however i am getting the error. Please help.

airblade commented 9 years ago

I'll be able to look at this when I get back from holiday...

Usually this kind of problem is due to there being an extra object in the hierarchy, or something similar.

airblade commented 9 years ago

@vinimxit Did you get this working?

airblade commented 9 years ago

Your data format looks ok to me. Are you still having problems with this?

airblade commented 9 years ago

Were you loading your chart via AJAX?

airblade commented 8 years ago

Closing this because it's gone quiet and I've upgraded the plugin (v3.0.0) to use Chart.js v2.1.4, which has different data and options formats.