We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How hide label in a ChartCollection (xaml)

Thread ID:





118001 Jan 19,2015 06:53 PM UTC Jan 20,2015 01:02 PM UTC WPF 1
Tags: SfChart
Dario Quispe
Asked On January 19, 2015 06:53 PM UTC


I have two ViewModel wich are bound with the same ChartSeriesCollection. First ViewModel is for see a preview of a chart (without axis and labels). The second viewmodel is for specify data. The problem is for pie series. The specific adornment (show percentage in labels) is made in code behind. 

In the sample code (represent the previer), I want to be able to hide labels in xaml code (not in code behind where adornment is specified) for force to hide labels. I need help with xaml syncfusion properties.



Attachment: HideLabel_251b73b7.zip

Rachel A [Syncfusion]
Replied On January 20, 2015 01:02 PM UTC

Hi Dario,

Thanks for using Syncfusion products.

As per our existing API structure, Adornments can be defined along (inside) the series and adornments do have the property for controlling its visibility. As we are defining the series from code behind, we are supposed to define the adornments in code behind.


However we can achieve your requirement by initializing the ChartAdornmentInfo as a resource in xaml and access while creating object for series. We have prepared the sample based on your requirement and please download the sample in the below location.


Sample: HideLabel.zip


Please let us know if you need any further assistance.



Rachel. A


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon