Skip to content
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

Move vertical box plot legends to the top #1369

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

adamabeshouse
Copy link
Contributor

No description provided.

@alisman
Copy link
Collaborator

alisman commented Aug 10, 2018

@adam does this take legend width into account? or does the wrapping somehow prevent legend from ever overflowing?

return (
<VictoryLegend
orientation="vertical"
orientation={this.props.horizontal ? "vertical" : "horizontal"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so there is still a case where legend will be vertical?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if the box plot is oriented so that more boxes go down instead of to the right. what do you think?

@adamabeshouse
Copy link
Contributor Author

adamabeshouse commented Aug 10, 2018

@alisman heuristically the itemsPerRow-enforced wrapping will prevent the legend from overflowing. this is extremely contingent on the length of the legend items, not robust to changes. I don't know if theres a way to make it more robust. it doesnt seem that theres any prop dealing with this - the 'width' prop doesnt seem to have any effect

…r to the right

Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <[email protected]>
@adamabeshouse adamabeshouse merged commit da5089d into cBioPortal:master Aug 14, 2018
@adamabeshouse adamabeshouse deleted the legend-top-plots branch August 14, 2018 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants