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

Set border colour of square adornment

Thread ID:

Created:

Updated:

Platform:

Replies:

110885 Aug 29,2013 09:27 AM UTC Sep 11,2013 04:48 AM UTC WinRT 3
loading
Tags: SfChart
Leigh
Asked On August 29, 2013 09:27 AM UTC

Hi all,

Just wondering if there is a property to set the border colour (or even turn the border off) for a Square Adornment of a column series? I assume the template needs to be overridden if not? Below is the code I use to view the adornments.


<Syncfusion:ColumnSeries x:Name="AveragesSeries" EnableAnimation="True" AnimationDuration="0:0:2" StrokeThickness="0" SegmentSelectionBrush="Gray" Interior="#FFF78A09" Label="Daily Averages" XBindingPath="iText" YBindingPath="iUsage">

<Syncfusion:ColumnSeries.AdornmentsInfo>

<Syncfusion:ChartAdornmentInfo ShowLabel="True" SegmentLabelContent="YValue" SegmentLabelFormat="#" AdornmentsPosition="Top" Symbol="Square" SymbolInterior="#6c6d6e" SymbolHeight="30" SymbolWidth="30"/>

</Syncfusion:ColumnSeries.AdornmentsInfo>

</Syncfusion:ColumnSeries>


Muneesh Kumar G [Syncfusion]
Replied On September 4, 2013 07:22 AM UTC

Hi Leigh,

Thanks for using Syncfusion products.

We have analyzed your query.  We would like to inform you that if we would like to change the border color of the Adornment symbol then use we need to use Data Template as shown in the below code snippet.

Code Snippet [XAML]:

<DataTemplate x:Key="adornment">
<Grid>
<Rectangle  Fill="#FFF78A09" StrokeThickness="0" Height="30" Width="40">
</Rectangle>
<TextBlock Text="{Binding LabelContent}" Foreground="Black"  FontSize="16"/>
</Grid>
</DataTemplate>
<chart:ChartAdornmentInfo ShowLabel="True" SegmentLabelContent="YValue"  SegmentLabelFormat="#"
AdornmentsPosition="Top"  SymbolTemplate="{StaticResource adornment}"/>

We have prepared a sample based on this and it can be downloaded from the following location.

Please let us know if you have any queries.

Regards,

Muneesh Kumar G.



Column_Chart_Demo_15cdf1ca.zip

Leigh
Replied On September 9, 2013 05:58 AM UTC

Worked perfect, thanks heaps!


Muneesh Kumar G [Syncfusion]
Replied On September 11, 2013 04:48 AM UTC

Hi Leigh,

Thanks for your update.

Please let us know if you need further assistance.

Regards,
Muneesh Kumar G.

CONFIRMATION

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.

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

;