changing line color issue
Posted: Tue Jul 20, 2004 6:18 pm
I have having difficulty changing the line color for a series. I use the following code:
I am using TChart version 6.0.0.4 in an HTML page; The issue that I am having with the above code, is that all colors are applied correctly to the AxixPen, Ticks and Label.Fonts and get updated as soon at the color setting is changed. However, the line representing the Series does not get changed. Is there some type of series refresh that I need to do? The original code did not have the .Refresh Series call, but adding it seemed to have not affect. When I enable the msgbox, the display of the color is correct; the only issue is that the line color within the Chart area is not changed.
Thanks in advance for your assistance
Scott Small
Code: Select all
'Change line color and axis colors
'tempColor = ConvertColorToRGB(TChart1.Series(optTraceNum.value).Color)
'msgbox "currentColor = " & tempColor
lColor = ConvertColorToBGR(colorCell.bgColor)
TChart1.Series(optTraceNum.value).Color = lColor
With TChart1.Axis.Custom(optTraceNum.value - 1)
.AxisPen.Color = lColor
.Ticks.Color = lColor
.Labels.Font.Color = lColor
End With
TChart1.Series(optTraceNum.value).RefreshSeries
'TChart1.repaint
'tempColor = ConvertColorToRGB(TChart1.Series(optTraceNum.value).Color)
'msgbox "changedColor = " & tempColor
Thanks in advance for your assistance
Scott Small