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

[Enhancement]: Allow a threshold value for when to show % labels on a pie or donut chart #1692

Open
1 task done
Fryguy opened this issue Nov 30, 2023 · 2 comments
Open
1 task done

Comments

@Fryguy
Copy link

Fryguy commented Nov 30, 2023

Name

Jason Frey

Are you an IBM employee?

  • Yes

Summary

Allow for a configuration value for a threshold below which text values on a chart will not be presented.

Justification

Overlapping labels on a pie or donut chart has been brought up before12 in a number of issues, but there are challenges to make them work correctly. For example:

chart

Since there isn't really a great way to present these, the general recommendation is to not use pie or donut charts for this, or to use workarounds like grouping all values under a certain amount into an "Other" category. In the case of our application, that is not an option, because the raw data comes from the customer, and they build a report through our reporting engine choosing the type of chart they would like to see. As such, neither of those workarounds work for us.

@theiliad and I spoke about this internally a few months back but I hadn't opened an issue for it.

Desired UX and success metrics

A threshold value that can be set where values below that number are not shown in pie and donut charts (perhaps other charts as well). The wedge would still be present, but there would be no Text value near it.

"Must have" functionality

A threshold value that can be set.

Specific timeline issues / requests

As soon as possible, if possible.

Available extra resources

The ManageIQ team has a UI team member (also an IBMer) that can assist with testing this out in our application.

What priority level would this issue be in your opinion?

P2

Footnotes

  1. https://github.com/carbon-design-system/carbon-charts/issues/1626

  2. https://github.com/carbon-design-system/carbon-charts/issues/144

@Fryguy
Copy link
Author

Fryguy commented Nov 30, 2023

An alternative to not showing it at all is that in place of the raw text values, we can present a single <X% where X is the threshold number

@Fryguy
Copy link
Author

Fryguy commented Nov 30, 2023

Example of what "blank" would look like:

chart-blank

Example of what "<X%" might look like:

chart- 3

@RiyaJethwa RiyaJethwa self-assigned this Jan 5, 2024
@RiyaJethwa RiyaJethwa removed their assignment Feb 29, 2024
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

No branches or pull requests

2 participants