Closed retyui closed 6 years ago
That was quick! Thanks for the PR. Please let me check it on monday, I am away for the weekend. Thanks again!
replace schemeCategory20
=> schemeCategory10
D3 no longer provides the d3.schemeCategory20* categorical color schemes
There are still many problems, I now understand what this method does
https://github.com/codesuki/react-d3-components/blob/master/src/StackDataMixin.jsx#L26-L52
Is this PR still WIP? If you need me to explain any part of the code, let me know!
@codesuki Yes, this PR still work in progress. In the near future I will try to end the migration
@codesuki
I almost finished left the most difficult for me : this is a change for d3.stack
StackDataMixin.jsx#L27-L39
mentioned by @PierreGUI https://github.com/codesuki/react-d3-components/issues/133#issuecomment-308734293
git clone https://github.com/retyui/react-d3-components -b d3-version-5
yarn
yarn watch
And open: http://localhost:3000/example/d3-v5/
Great! I'll have a look later today. Thanks!
@codesuki Well, what do you say?
Sorry, in the middle of release preparations. I'll need a few more days until I have time to check it out.
What happened?
Do not worry, I want to do everything in stages. Multiple steps for migration
@codesuki This is a list of changes that need to be made so that migration is as productive as possible: 1) Add lint-staged, prettier, update webpack to latest version 2) Add test for components 3) Replace mixins to hocs 4) Migrate to d3 version 5 Do you agree with these changes?
Yes that is a reasonable list. Step 3 is mostly useful for React upgrades, but super useful.
Remove .npmignore used
package.json -> files
(check resultnpm pack
) Update D3 version to latest Did the formattingeslint --fix