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
Stacked area charts very different with the same data & code between recharts 1 & 2 #2514
Comments
Seeing a similar difference with Line as well with the same data set. |
@xile611 I believe I've found the source of the problem in Area line 204 in Area.tsx |
I'm less concerned about the similar issue with Line at this point, but in case its helpful for Area or in general, a quick look shows changing line 148 of Line.tsx from: |
Sad workaround for anyone that finds this is to iterate across your data and fill in all the null values with 0 values yourself. |
I am also having this issue I believe. Sadly stopping me from migrating to 2.1.6 at the moment. Using type "linear" |
Reproduction link
Steps to reproduce
Using sandbox above, just change the recharts version from the working 1.8.5 to 2.0.9 and you'll see the issue.
What is expected?
Them to look the same (or very close to the same).
What is actually happening?
The new version of Recharts is spitting out some pretty ugly stacked area graphs. Seems like connectNulls and possibly type="basis" are not working correctly.
The text was updated successfully, but these errors were encountered: