line width and line type

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

1 Reply

AJ Ajish Syncfusion Team 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.

Loader.
Up arrow icon