-
Notifications
You must be signed in to change notification settings - Fork 835
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
Fix stacking together different series types (#1037) #1145
Conversation
Running the tests on windows fail, what is the recommended setup for development? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @talc23,
This is looking good so far! I like that you have tests!! Awesome!
In your comment you say that you modified one of the show case examples, would you mind including that in this PR? (Maybe also write a test against that)
Sure, I'll add more tests. Please notice that if you're using a clustered stack bars graph, you can't simply add LabelSeries to the graph since it doesn't have the 'cluster' attribute. Adding LabelSeries to such a graph will result the labels to stack over with no distinction of clustering. see this comment on the original issue - #1037 (comment) |
Hi @mcnuttandrew, |
return labelData; | ||
} | ||
) | ||
const bars = data.map((value, index) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: value -> row, i read this a couple of times as a really ineffective way to defined bars and labels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very familiar with Js, what should be a more effective way to do so?
couple of code quality nits, but generally I approve. thanks for adding tests, code quality is important! |
Thanks for doing this! |
Fix stacking together of different Series types.
for example, using this graph from showcase:
https://github.com/uber/react-vis/blob/master/showcase/plot/stacked-vertical-bar-chart.js
Added the last two lines to the showcase example:
Previously:
After fixing: