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

Always show label for pie chart when ratio is larger than 0.25 #4429

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

dippindots
Copy link
Member

@dippindots dippindots commented Nov 22, 2022

Fix cBioPortal/cbioportal#9902

image

previously, we always show labels for the pie chart when the ratio is larger than 0.5. For the rest of the pie slide, we calculate the max length of the label and make sure it will never go out of the chart area.

But maybe the rule is too strict, we can reduce the threshold to 0.25 and still calculate the max length for ratios less than 0.25.

@dippindots dippindots self-assigned this Nov 22, 2022
@dippindots dippindots changed the title Always show label for pie chart when ratio larger than 0.25 Always show label for pie chart when ratio is larger than 0.25 Nov 22, 2022
@dippindots dippindots requested a review from alisman November 23, 2022 14:21
@alisman alisman merged commit 65ea8ca into cBioPortal:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some study view pie charts do not render a number for particular slices
2 participants