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.

How to modify the dash style of a Line Series?

Thread ID:

Created:

Updated:

Platform:

Replies:

129784 Apr 3,2017 02:18 PM Apr 4,2017 08:36 AM Windows Forms 1
loading
Tags: Chart
Swetaketu Majumder
Asked On April 3, 2017 02:18 PM

Hi,

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,
Swetaketu

Dharanidharan Dharmasivam [Syncfusion]
Replied On April 4, 2017 08:36 AM

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. 

Screenshot: 
 

Sample for reference can be find from below link. 
 
Thanks, 
Dharani. 


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.

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.

;