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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

line width and line type

Thread ID:

Created:

Updated:

Platform:

Replies:

68040 Sep 6,2007 09:12 PM UTC Sep 6,2007 10:28 PM UTC WinForms 1
loading
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\5.1.0.51\Windows\Chart.Windows\Samples\2.0\Chart Gallery\Line Charts\LineChartSample\cs

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

http://www2.syncfusion.com/ug/Default.aspx##Essential%20Studio.chm/ChartWindows/LineCharts.html

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

Regards,
Ajish.

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.

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

;