reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

core.js:60 Uncaught TypeError: (intermediate value)[chartType] is not a function #103

Closed dhruv004 closed 8 years ago

dhruv004 commented 8 years ago

Hi I am trying to implement this in my project.I am new to chartjs as well. I get the following error.

core.js:60 Uncaught TypeError: (intermediate value)[chartType] is not a function core.js:46 Uncaught TypeError: Cannot read property 'name' of undefined

I don't know what is causing this.Does this have anything to do with the versions.Any help would be good.

dhruv004 commented 8 years ago

Its a version Issue sorry.

ayozebarrera commented 8 years ago

@dhruv004 how you resolve this? I'm having the same issue

dhruv004 commented 8 years ago

@ayozebarrera the latest chartjs version is 2.0 and react-chartjs is not yet compatible with it.Just install a previous version of chartjs for now.

ayozebarrera commented 8 years ago

I see, thankyou! I'll try

ayozebarrera commented 8 years ago

Maybe @jhudson8 should put it on README...

>= 1.1.1 & < 2.0
Statfine commented 8 years ago

@ayozebarrera i have change "chart.js": "^1.1.0", to 1.1.1; but has the same error!