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

How to draw dotted line using FastLineSeries in SfChart?

Platform: Xamarin.Forms |
Control: SfChart |
Published Date: December 31, 2015 |
Last Revised Date: March 2, 2018
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.

C#

 

Output:

ADD COMMENT
You must log in to leave a comment
Comments
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

Reply

Please sign in to access our KB

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

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