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

Radial chart legend percentages #1959

Closed
tonidalmases opened this issue Feb 8, 2021 · 1 comment
Closed

Radial chart legend percentages #1959

tonidalmases opened this issue Feb 8, 2021 · 1 comment
Labels
bug A broken behaviour that was working previously

Comments

@tonidalmases
Copy link
Contributor

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

Possible Solution

Adding precision to the chart would fix the number of decimals to display in the legend.
imagen

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

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:

  • typescript: 3.8.3
  • angular: 11
  • @angular/cdk: 11.1.0
  • @dynatrace/barista-components: 9.0.0-rc.3
@tonidalmases tonidalmases added the bug A broken behaviour that was working previously label Feb 8, 2021
@tomheller
Copy link
Collaborator

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
Labels
bug A broken behaviour that was working previously
Projects
None yet
Development

No branches or pull requests

2 participants