I tried to apply poly. fitting on my series but got an exception from the red line bellow. Please help me to solve this problem. Thanks a lot.
fastLine1.Function = polyFitting1
Code: Select all
Dim series As Steema.TeeChart.Styles.Points = _
TChart1.Series.Add(New Steema.TeeChart.Styles.Points())
series.Add(0.0000327429511222184, 217.974565416658)
series.Add(0.0000449872090402736, 113.620689449038)
series.Add(0.0000707548748640967, 506.886177999488)
Dim polyFitting1 As New Steema.TeeChart.Functions.PolyFitting
Dim fastLine1 As New Steema.TeeChart.Styles.FastLine
fastLine1.DataSource = series
fastLine1.VertAxis = series.VertAxis
polyFitting1.PolyDegree = 3
fastLine1.Function = polyFitting1
fastLine1.ShowInLegend = True
TChart1.Series.Add(fastLine1)
TChart1.Aspect.View3D = False