-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cannot read property 'category20' of undefined #1850
Comments
I'm using D3 v4.2.7 and ng2-nvd3 v1.1.3. |
D3 version 4 is not yet supported |
For future reference, an answer on Stack Overflow indicates that maybe the source code could use `scaleOrdinal(d3.schemeCategory20). That's just a guess on my part. I'm sure if d3 v4 isn't supported that there are other incompatible parts of the code as well It's a shame d3 v4 isn't supported. |
If anyone wants to take a go at making it supported, please send me a PR! |
I'm new to D3.js and the whole shebang, so I can't even guess about how much effort that will take. But I note that D3 v3.5.17 is almost a year old; the latest is v4.5.0. Is there any existing effort to bring support for D3 v4.x? |
+1 |
1 similar comment
+1 |
A few people have shown interest in getting it to work with d3 v4, but I haven't gotten any pull requests around it yet. |
+1 |
Temp Hack to Work!
|
Changed d3 version to |
I do not know if it's a problem of d3. I'm using Angular2 (angular-cli), installed types of d3, everything is right with project and depencencies. Try to make a simple chart using sample code.
HTML template:
When I try to run:
The text was updated successfully, but these errors were encountered: