question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pie Charts - Override Label Threshold

See original GitHub issue

I’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:

screen shot 2018-06-18 at 14 05 59

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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
frankdavidcoronacommented, Jul 17, 2018

@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.

4reactions
marjan-georgievcommented, Jun 18, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found