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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to draw dotted line using FastLineSeries in Chart?

Platform: Xamarin.Forms |
Control: SfChart |
Published Date: December 31, 2015 |
Last Revised Date: August 21, 2019
Tags: dotted-lines

SfChart provides support to draw dotted lines or dashed lines in FastLineSeries. The StrokeDashArray is an double array property available in FastLineSeries; it used to draw dotted lines.

The following code illustrates how to use the StrokeDashArray property.


FastLineSeries line = new FastLineSeries();
line.ItemsSource = data;
line.StrokeDashArray = new double[] { 3, 2 };


Chart with dotted line series in Xamarin.Forms

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment
David Conlisk
Feb 02, 2016
How do you achieve this using XAML? Thanks. Reply
Karthikeyan V [Syncfusion]
Feb 03, 2016
Yes, It is possible to achieve Dashes in XAML. Please find the code snippet below. 10 10 Reply
Saulo Sobreira
Dec 20, 2017

Couldn't find the code snippet

Paco Gómez
May 10, 2016
HEllo. Must I add any reference for sys in the top of the XAML document? Reply
Gobi M [Syncfusion]
May 11, 2016
Yes. To use 'sys:' we need to add reference - xmlns:sys="clr-namespace:System;assembly=mscorlib" Reply
Kalpraj Kakani
Nov 17, 2018

When viewing the fast line series using StrokeDashArray in portrait mode works fine but in the landscape, the dash line is not visible only points are visible


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile
Live Chat Icon