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 modify the dash style of a Line Series?

Thread ID:





129784 Apr 3,2017 06:18 PM UTC Apr 4,2017 12:36 PM UTC WinForms 1
Tags: Chart
Swetaketu Majumder
Asked On April 3, 2017 06:18 PM UTC


I want to plot a dashed/dotted line series on the Chart Control. I am unable to find the option to do so. Kindly help.

Thanks and regards,

Dharanidharan Dharmasivam [Syncfusion]
Replied On April 4, 2017 12:36 PM UTC

Hi Swetaketu, 

Thanks for using Syncfusion support. 

We have analyzed your query. Your requirement can be achieved by specifying value to the dashStyle in border property of series. Find the code snippet below. 

Windows Forms [C#] 

ChartSeries series = new ChartSeries(); 
series.Style.Border.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDot; 

In the above code we have specified DashDot style, you can change with respect to your scenario. 


Sample for reference can be find from below link. 


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.

Please sign in to access our forum

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