-
Notifications
You must be signed in to change notification settings - Fork 388
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
StackedAreaChart doesn't properly render all data points #35
Comments
Hi @mrbodoia! I'll take a look and see what I can do. Could you perhaps illustrate your problem with a screenshot? |
Okay I made some modifications to Here is the diff of the changes that I made:
You're obviously more familiar with the codebase so perhaps you can verify that these changes solve the problem and don't break anything else. |
Great job! I'll go ahead and verify the changes during the day. If you would like to you are more than welcome to create a PR and become an official contributor :) |
Verified 🥇 Opened PR #38. Will merge if you don't oppose |
Looks good to me. Thanks! |
Released in v.2.2.2. Thank you for reporting the issue and helping with the fix 🥇 |
What is the problem?
StackedAreaChart doesn't properly render all the data points. In particular, it only renders the first
keys.length
data points.When does it happen?
The following code should render a StackedAreaChart that looks like the one from the examples, but with one additional data point (making five total).
However, this code only renders the first four data points.
What platform?
Occurs on both iOS and Android platforms.
Additional comments
I think the problem has something to do with this line, which seems to be using
keys.length
when it should be usingdata.length
. However, changing that line alone does not fix the issue, so there must be another place where the number of data points is being calculated incorrectly.The text was updated successfully, but these errors were encountered: