Progamatically Setting Line Chart Properties
Posted: Fri Feb 20, 2004 2:27 am
I am having difficulty setting the style for simple line charts. Does anybody have any simple sample code?
Why is it that I can control the width and style of the line with the following code but it won't set the color?
Dim Line_LCL As New Steema.TeeChart.Styles.Line(WebChart1.Chart)
With Line_LCL.LinePen
.Width = 2
.Color = Color.Orange
.Style = Drawing.Drawing2D.DashStyle.Dash
End With
I have to later go in and set the color with:
.Series(3).Color = Color.Orange
Why is it that I can control the width and style of the line with the following code but it won't set the color?
Dim Line_LCL As New Steema.TeeChart.Styles.Line(WebChart1.Chart)
With Line_LCL.LinePen
.Width = 2
.Color = Color.Orange
.Style = Drawing.Drawing2D.DashStyle.Dash
End With
I have to later go in and set the color with:
.Series(3).Color = Color.Orange