Setting Line Width

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Setting Line Width

Post by Dave » Wed Sep 14, 2011 8:24 am

Sorry I know this is a bit basic but its driving me nuts.
Im creating a chart with a line graph on it (see code snippet below). The default line width is 1 but I want to set it to 2.
How do I do this please?

The TeeChart version we have is 3.5.3371.26406

Thanks.

=======================================

histogramChart.Series.Clear();
Line line1 = new Line();
line1.Color = Color.Coral;
line1.Add(x, theValues);

histogramChart.Header.Text = "histogram";
histogramChart.Series.Add(line1);

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Setting Line Width

Post by Sandra » Wed Sep 14, 2011 8:51 am

Hello Dave,

If you want increase the width of pen of your Line Series, you only need change the width of property LinePen as do in next line of code:

Code: Select all

 line1.LinePen.Width = 2;
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Dave
Advanced
Posts: 139
Joined: Mon Sep 22, 2008 12:00 am

Re: Setting Line Width

Post by Dave » Thu Sep 15, 2011 9:38 am

Great, thanks Sandra

Post Reply