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

line width and line type

Thread ID:





68040 Sep 6,2007 09:12 PM UTC Sep 6,2007 10:28 PM UTC WinForms 1
Tags: Chart
Kamen Yotov
Asked On September 6, 2007 09:12 PM UTC

any easy way to set line width and line type (e.g. dashed, dotted) for a simple line chart (2D)?

Ajish [Syncfusion]
Replied On September 6, 2007 10:28 PM UTC

Hi Kamen,

To set the line width you can use the following code

this.chartControl1.Series[0].Style.Border.Width = 5;

and to set the linetype use the following code,

this.chartControl1.Series[0].Style.Border.DashStyle = DashStyle.DashDot;

Refer the following sample that comes with the install that demonstrates various setting that can be done with a line chart,

\My Documents\Syncfusion\EssentialStudio\\Windows\Chart.Windows\Samples\2.0\Chart Gallery\Line Charts\LineChartSample\cs

you can also go through the documentation available at the following link.


Kindly take a look and let me know if you need any further assistance.



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

or the page will be automatically redirected to 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