How to display a dotted line

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

3 Replies

MS Mohamed Samsudeen K S Syncfusion Team 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


DC David Conlisk February 3, 2016 01:59 PM UTC

Works perfectly, thanks!


MS Mohamed Samsudeen K S Syncfusion Team 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


Loader.
Up arrow icon