Page 1 of 1

Setting Line Width

Posted: Wed Sep 14, 2011 8:24 am
by 13050364
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);

Re: Setting Line Width

Posted: Wed Sep 14, 2011 8:51 am
by 10050769
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,

Re: Setting Line Width

Posted: Thu Sep 15, 2011 9:38 am
by 13050364
Great, thanks Sandra