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.

line width and line type

Thread ID:

Created:

Updated:

Platform:

Replies:

68040 Sep 6,2007 05:12 PM Sep 6,2007 06:28 PM Windows Forms 1
loading
Tags: Chart
Kamen Yotov
Asked On September 6, 2007 05:12 PM

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 06:28 PM

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.

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.

;