I am having problem with smoothing function with horizontal smooth line. I wants to draw horizontal smooth line. It was working in TeeChart ActiveX ver 6 but doesn't work with ver 7.
I have tested this by running following code. It works fine with ver 6 but same doesn't produce proper results in ver 7.0.
Code: Select all
With TChart1
.AddSeries scPoint
.Series(0).AddXY 5, 1, "", vbBlue
.Series(0).AddXY 8, 2, "", vbBlue
.Series(0).AddXY 9, 4, "", vbBlue
.Series(0).AddXY 3, 5, "", vbBlue
.Series(0).AddXY 4, 8, "", vbBlue
.Series(0).AddXY 5, 9, "", vbBlue
.Series(0).AddXY 11, 10, "", vbBlue
.Series(0).AddXY 4, 12, "", vbBlue
.Series(0).AddXY 8, 14, "", vbBlue
.Series(0).AddXY 2, 16, "", vbBlue
.AddSeries scHorizLine
.Series(1).SetFunction tfSmoothing
.Series(1).FunctionType.asSmoothing.Factor = 4
.Series(1).DataSource = TChart1.Series(0)
End With
Please help me, as it is very urgent.
Nitin