Migrate a complex charts from v4 to v5 #6375
matzeeable
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
As I know from @hustcc (#5462 (comment)), there is currently no migration guide or codemod to migrate an existing diagram from v4 to v5 and that's ok for me as there are many examples where I can learn from (e.g. area-gradient and webgl for multiple views). I also read the blog posts https://observablehq.com/@antv/g2-introduction and https://observablehq.com/@antv/g2-spec to better understand the differences between both versions. Yesterday, I spent a full day migrating existing charts and migrated 7/8 charts successfully 😎. In our project, we have one complex chart with multiple regions and areas. With the latest v4 version it looks like this:
https://codesandbox.io/p/sandbox/antv-g2-complex-chart-qz8mzx
When I tried to create the first region I already failed as the following code renders a white screen:
Would someone please have time to help me migrate this complex chart to v5?
Beta Was this translation helpful? Give feedback.
All reactions