Ngx-charts: Advanced Pie Chart show / hide legend

Created on 2 Oct 2017  路  4Comments  路  Source: swimlane/ngx-charts

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 => Please do not submit support request here

Is it possible to have a property to enable / disable the legend on an advanced Pie Chart?

Thanks.

Most helpful comment

@lasya-sivalenka see my reply above

You can use the regular pie chart and pass the following options:

[legend]="false"
[doughnut]="true"
[labels]="false"

All 4 comments

But then it's just a donut chart without labels. You should use the donut chart and disable legend and labels if you only want to get that.

What are the ways to disable the legend, I don't think we have any option to do that.
We have a requirement to display only the chart without legend or at least smaller legend which we could not establish, the legend is occupying most of the width and the chart is coming up smaller comparatively.

@lasya-sivalenka see my reply above

You can use the regular pie chart and pass the following options:

[legend]="false"
[doughnut]="true"
[labels]="false"

I think [noBarWhenZero] could be very useful for <ngx-charts-advanced-pie-chart>

Screenshot

Was this page helpful?
0 / 5 - 0 ratings