-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
D3v5 compatibility #1394
D3v5 compatibility #1394
Conversation
Awesome! I see no need to complicate things by releasing two versions at once. I think that we can update all the examples to v5 and have dc.js v3 compatible with both d3v4 and v5. On a personal note, I don't generally work weekends. Thanks for all the hard work - I look forward to merging your stuff tomorrow! |
As for the colors, there are good reasons why This means fixing a lot of tests, documenting the change pointing to the rationale in d3v5, and offering the workaround used here in the documentation. IMO we should not provide |
Fully agree! Once other PRs have been merged, I will go ahead and make the changes. Alternatively we can introduce a global switch to keep current behavior with a warning. In 3.1 we can make full switch. BTW there are not many (less than 10) test cases that we would need to fix. |
The color brewer colors are dramatically different but much more clear, so I agree we should probably do backward compatibility with a warning. We don't currently have any global flags, but that's an interesting idea. Maybe it would be worth introducing a special facility under In this case, there could be a flag, say If it's true, we use the color brewer colors with no warning. |
I will do a commit implementing it schematically, we can then progress from there. |
…. Fixes pie and row chart examples.
I have reached a milestone on this. Key changes:
These are mechanical changes, at this stage we can merge. The other work for flag and warning message etc., can be done a separate PR. In addition, I will work onto to run tests on both D3v4 and D3v5 (as a separate PR) |
Any reason I shouldn't merge this now? |
I think we can merge this. Currently I am not aware of any issues in this regard. |
Great, thanks @kum-deepak! I filed #1403 for removing schemeCategory20c. Released as 3.0.0-alpha.5 (but still not to npm). |
Very few changes and all test cases pass. Good thing is that change for us can be done in backward compatible way.
Examples will need changes because they now use Promises. Once changed it works. As an example I have changed the stocks example.
We can finish it after dc v3 release.