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.
Unfortunately, activation email could not send to your email. Please try again.

Dotted line in chart

Thread ID:

Created:

Updated:

Platform:

Replies:

115910 Feb 25,2014 01:15 AM Feb 26,2014 04:06 AM WinRT 1
loading
Tags: Chart
Shameer
Asked On February 25, 2014 01:15 AM

Hello,

I would like to create a dotted (or dashed) line in a chart.

Use the below code for line chart

<chart:LineSeries EnableAnimation="True" AnimationDuration="00:00:01" Palette="None" Interior="Brown" 
                    ItemsSource="{Binding Points}" XBindingPath="Name" YBindingPath="Value" >
                    
                </chart:LineSeries>

Thank in advance,

Have a nice day.

Karthikeyan V [Syncfusion]
Replied On February 26, 2014 04:06 AM

Hi Shameer,

Thank you for using Syncfusion products.

We have analysed your requirement and this can be achieved with the help of the CustomTemplate property.

Code Snippet [XAML]:

<chart:LineSeries.CustomTemplate>

                        <DataTemplate>

                            <Line X1="{Binding X1}" X2="{Binding X2}" Y1="{Binding Y1}" Y2="{Binding Y2}" Stroke="{Binding Interior}" StrokeThickness="{Binding StrokeThickness}" StrokeDashArray="2,3" />

                        </DataTemplate>

</chart:LineSeries.CustomTemplate>

Please let us know if you require further assistance on this.

Thanks,

Karthikeyan V.


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.

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.

;