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.
Syncfusion Feedback

How to display a dotted line

Thread ID:

Created:

Updated:

Platform:

Replies:

121871 Feb 2,2016 05:17 PM UTC Feb 4,2016 04:17 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
David Conlisk
Asked On February 2, 2016 05:17 PM UTC

Hi all,

I'm attempting to display my LineSeries data using a dotted line in XAML. I can't seem to work out how to do it, the LineSeries tag only allows you to specify the StrokeWidth, but not the StrokeDashArray.

How can I achieve this?

Thanks,

David

Mohamed Samsudeen K S [Syncfusion]
Replied On February 3, 2016 09:42 AM UTC

Hi David,

Thanks for contacting Syncfusion support. 

It is possible to achieve Dashes using StrokeDashArray property of FastLineSeries. Please find the code snippet below.


<chart:FastLineSeries.StrokeDashArray>
  <x:Array Type="{x:Type sys:Double}">
    <sys:Double>10</sys:Double>
    <sys:Double>10</sys:Double>
 </x:Array>
</chart:FastLineSeries.StrokeDashArray>


We have created a sample for this and have attached it for your reference.

SimpleSample


Regards,

Samsudeen K S

David Conlisk
Replied On February 3, 2016 01:59 PM UTC

Works perfectly, thanks!

Mohamed Samsudeen K S [Syncfusion]
Replied On February 4, 2016 04:17 AM UTC

Hi David,

Thanks for the update.


Please let us know if you need any further assistance.

Regards,
Samsudeen K S


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

;