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.
[XAML] <chart:LineSeries XBindingPath="Year" YBindingPath="India" ItemsSource="{Binding DataPoints}" > <chart:LineSeries.AdornmentsInfo> <chart:ChartAdornmentInfo ShowLabel="True" Symbol="Ellipse" SegmentLabelContent="LabelContentPath" ShowMarker="True"> <chart:ChartAdornmentInfo.LabelTemplate> <DataTemplate> <TextBlock FontSize="12" Foreground="White" Margin="5" Text="{Binding Path=Item.Description}"/> </DataTemplate> </chart:ChartAdornmentInfo.LabelTemplate> </chart:ChartAdornmentInfo> </chart:LineSeries.AdornmentsInfo>
|
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.
Thanks,
Rachel. A