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

customize adornments with another Y value

Thread ID:





119815 Aug 4,2015 03:53 PM UTC Aug 5,2015 05:27 AM UTC WinRT 1
Tags: SfChart
Asked On August 4, 2015 03:53 PM UTC

I am used a class with three attribute: date, a numeric value and a description of this value (string).

I would obtain a SfChart (LineSeries) with date in x axis, numeric value in y axis and description of this value as adorment.

I have obtained the Line Series with date and numeric value, my problem is assign the description at adornment.

Can you help me?

Rachel A [Syncfusion]
Replied On August 5, 2015 05:27 AM UTC

Hi Claudio,
Thanks for contacting Syncfusion support.
Query: How to set the description for adornments?
We can achieve your requirement using LabelTemplate property in ChartAdornmentInfo, is used to customize the adornment labels as shown in the below code snippet.
                <chart:LineSeries XBindingPath="Year" YBindingPath="India" ItemsSource="{Binding  DataPoints}" >
                    <chart:ChartAdornmentInfo ShowLabel="True" Symbol="Ellipse"  SegmentLabelContent="LabelContentPath" ShowMarker="True">
                                <TextBlock FontSize="12" Foreground="White"
                           Margin="5" Text="{Binding Path=Item.Description}"/>
Here ‘Item’ represents the underlying object, from that we can get required property.
You can get the output as shown in the below image.

We have prepared the sample for your reference. Please find the sample in the below location.
Sample: Adornment_WinRT
Please refer the below UG documentation to know about customization of adornments.
Link: http://help.syncfusion.com/ug/wpf/Documents/customizingadornments.htm
Please let us know if you require any further assistance on this.
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

This page will automatically be redirected to the 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