-
Notifications
You must be signed in to change notification settings - Fork 78
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
Radial chart legend percentages #1959
Labels
bug
A broken behaviour that was working previously
Comments
4 tasks
Hi @tonidalmases! We are no longer tracking issues here in github. please read #1786 and reopen the ticket in Jira. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Expected Behavior
When using the radial chart with percentages, without Max value (full chart), the sum of percentages in the legend should be equal to 100%.
Current Behavior
In some occasions, the sum is not equal to 100, since the chart does not consider a precision, nor rounded percentages.
The current behavior (the sum is equal to 99.98)
![imagen](https://user-images.githubusercontent.com/27827642/107201905-dbc7a700-69f9-11eb-84d4-d922f97be927.png)
Possible Solution
Adding
![imagen](https://user-images.githubusercontent.com/27827642/107202685-c010d080-69fa-11eb-9f56-404ef388217a.png)
precision
to the chart would fix the number of decimals to display in the legend.However, note that the sum would be equal to 99.9, since those percentages are not rounded to 100. A possible implementation, described Here, would also solve the issue by distributing the percentages in a way that the final result is equal to 100.
![imagen](https://user-images.githubusercontent.com/27827642/107202932-0b2ae380-69fb-11eb-84a0-078b730d15f1.png)
Steps to Reproduce
https://stackblitz.com/edit/github-xzqveu?file=src/radial-chart/radial-chart-overlay-example/radial-chart-overlay-example.ts
Issue also described in APM-277510.
This issue is extensive to all kind of charts in barista whose percentages must sum up 100%.
Used Versions:
The text was updated successfully, but these errors were encountered: