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

some of the labels did not show in piechart #60

Closed
didyqian opened this issue Nov 29, 2019 · 4 comments
Closed

some of the labels did not show in piechart #60

didyqian opened this issue Nov 29, 2019 · 4 comments

Comments

@didyqian
Copy link

I run the pie with smart labels demo, it set eight labels, but only show six, how to fix this?

微信图片_20191129103505

@dharanidharandharmasivam
Copy link
Contributor

dharanidharandharmasivam commented Nov 29, 2019

Hi @didyqian ,

Greetings from Syncfusion. We have analyzed your query and we would like to let you when the data label position moves out of the chart area or the labels got intersected, the label will be hidden, this is our default behavior. If you wish to make all the labels visible, then specify the labelIntersectAction to none so that all the labels will be visible. Then you can specify the radius to the pie series using the radius property to modify the size of the pie chart so that all the labels will be visible within the chart area and the default value is 80%. This can be modified based on your scenario. Find the code snippet below for the above scenario.

   SfCircularChart(
        series: <PieSeries<_PieData, String>>[
          PieSeries<_PieData, String>(
              dataLabelSettings: DataLabelSettings(
                  isVisible: true,
                  labelIntersectAction: LabelIntersectAction.none))
        ],
      ),

Sample for reference can be found from below link.
https://www.syncfusion.com/downloads/support/directtrac/general/ze/sample994399557

Thanks,
Dharani.

@didyqian
Copy link
Author

isVisible

Thank you for your reply!

@abdulrehmananwar
Copy link

how to show value also with label

@guiinfo3333
Copy link

Obrigado, Dharani.

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

5 participants