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 Grid Label property doesn't seem to be implemented

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior Trying to set the label property of a pie-grid throws an exception.

Expected behavior It should change the text shown in front of the total value, under the pie grid chart.

Reproduction of the problem https://plnkr.co/edit/7zS2fUVEFE2L9v7HBLrl?p=preview See the console log:

Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'label' since it isn't a known property of 'ngx-charts-pie-grid'.
1. If 'ngx-charts-pie-grid' is an Angular component and it has 'label' input, then verify that it is part of this module.
2. If 'ngx-charts-pie-grid' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    <ngx-charts-pie-grid
      [view]="view"
      [scheme]="colorScheme" [ERROR ->][label]="'Total People'"
      [results]="single" [designatedTotal]="89400000"
      (select)="onSele"): ng:///AppModule/App.html@3:29

What is the motivation / use case for changing the behavior? The docs say:

Property Type Default Value Description
label string ‘Total’ the text to show under the total value

Please tell us about your environment: OS X, IntelliJ IDEA, NPM, Angular CLI 1.7.3

  • ngx-charts version: 7.1.1

  • Angular version: 6.0.0-beta.8

  • Browser: Chrome 67

  • Language: TypeScript 2.7.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marjan-georgievcommented, Apr 8, 2018

Fixed, will be in next release.

1reaction
ghostcommented, Apr 1, 2018

Having the exact same issue here, also there is currently no way to disable it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Hide labels in pie charts (MS Chart for .Net) - Stack Overflow
I can't seem to find the property that controls visibility of labels in pie charts. I need to turn the labels off as...
Read more >
Creating Pie Chart and Adding/Formatting Data Labels (Excel)
Creating Pie Chart and Adding/Formatting Data Labels (Excel) ... Excel: how to create a table and pie graph (prepared for CIS 101 -...
Read more >
How can I use custom styles with the Labels of a Pie Chart
I want to add additional styles to my labels of the pie chart. It doesn't seem to be applying html tags, however, I...
Read more >
Knowledge: Properties for Pie-Type Charts
Determines whether labels appear for pie slices in the Details view ... at right shows a Pie graph in which the user has...
Read more >
Pie chart legend item labels not appearing - Telerik
Second as I see it is already done in the code provided is setting the series Appearance.LegendDisplayMode to ItemLabels in order to instruct ......
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