-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'scale' of undefined #1164
Comments
I get the same error. On safari, it says |
For me, this was an issue with my include of d3.js. It wasn't recognizing some of the variable names because some of them were Greek letters. If you just include the minified version (d3.min.js) before c3.js, it should work. |
I am getting the same error. |
Thanks, I included D3 before C3 and worked. |
Shouldn't this be closed? |
I ran into this same error attempting to use the current non-minified versions of C3 (0.4.11) and D3 v3 (3.5.17). When I switched to the minified versions the same simple test worked. I'm using the example from the getting started guide. A find it more than a little concerning that the behavior would be be different between the minified and non-minified versions. Can someone explain this? I'm running on Mac and using files directly downloaded from the raw links on GitHub (versions specified above). Here is the test html. Note it's using the non-minified d3.js file that seems to be the problem. If I replace it with d3.min.js (commented out) then the error goes away.
This sure feel to me like something that should be fixed or at the very least a better error message given for this use case. |
I think this isn't a issue now. If someone still see the same error in the latest version, please open new one. Thanks. |
Include D3 before C3 and worked. |
i just downloaded new version started using example on http://c3js.org/samples/simple_multiple.html
i got the error
Uncaught TypeError: Cannot read property 'scale' of undefined
The text was updated successfully, but these errors were encountered: