-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve marker gene right column label UI #183
base: master
Are you sure you want to change the base?
Improve marker gene right column label UI #183
Conversation
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.
Thanks for your work!
I have added mainly code cleaning related comments.
I also have a concern that ...
would always added to the label when we have only 1 row to display it.
Thanks
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.
Thanks for your work.
Could you please review my suggestion for code cleaning?
Thanks
@@ -118,7 +96,9 @@ const MarkerGeneHeatmap = (props) => { | |||
y: yOffset, | |||
formatter: () => { | |||
const shortenCellTypeLabel = numberOfRows === 1 ? | |||
splitCellTypeLabel.slice(0, 1).join(`<br/>`) + `...` : | |||
splitCellTypeLabel.length === 1 ? |
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.
Could we refactor the 2 different method when we populate the plotLines variable, please (line 65 & 85)?
I would extract those lines to 2 well named methods.
Thanks
As discribed in the related issue, we need to improve the right column labels for cell type marker gene heatmap.