Pie Charts - Override Label Threshold
See original GitHub issueI’m submitting a … (check one with “x”)
- bug report - search github for a similar issue or PR before submitting
- [ X] feature request
- support request - use StackOverflow (add the
ngx-charts
tag) or the gitter chat for support questions
Current behavior I understand as per design, labels are not shown below a certain threshold to avoid overlapping.
However, in some instances we could override this behaviour when only two values are shown in the chart.
Example below where we just show Online vs Offline devices:
What is the motivation / use case for changing the behavior?
Ability to show labels on minimum amount of values in a pie chart
Please tell us about your environment: WebStorm, NPM
-
ngx-charts version: x.x.x 8.0.1
-
Angular version: x.x.x 6.0.2
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Typescript 2.7.2
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Override Matplotlib pie chart percentage labels to a specific ...
I noticed that my input value of 53.4% on the second plot gets pushed to 53.3%. Is there a way to override this...
Read more >Video: Customize a pie chart - Microsoft Support
Click Color and pick the color scheme you want, or click Style and pick the option you want. Want more? Change the format...
Read more >Visualization: Pie Chart - Google Developers
You can set a value as the threshold for a pie slice to render individually. This value corresponds to a fraction of the...
Read more >Pie chart options | Looker - Google Cloud
Labels : Displays lines marking the individual sections of the pie chart. You can customize the information that displays next to these lines....
Read more >Pie chart—ArcGIS Online Help | Documentation
You can change the threshold for creating individual slices using the Grouping (%) parameter. The default grouping percent is 0, meaning all categories...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marjan-georgiev Do you did a release to 9.0.0 but I can’t find this feature, any update. I have an stopper on my company for his feature. Thanks.
Makes sense. I would add an input
showLabelThreshold
that accepts a number in the range [0, 100] indicating percentage of total value, above which the labels would be shown. Open for other ideas.