Page 1 of 1

Some functions produce wrong result for horizontal series

Posted: Wed Jul 06, 2005 4:42 pm
by 9526208
For example, for Horizontal Bar - Cumulative, Curve fitting, Smoothing and some other functions pruduce a wrong line.

Posted: Fri Jul 08, 2005 9:33 am
by narcis
Hi Alex,

Using this code:

Code: Select all

Private Sub Command1_Click()
    If TChart1.SeriesCount = 2 Then
        TChart1.RemoveSeries (1)
    End If
    
    If TChart1.SeriesCount < 2 Then
        TChart1.AddSeries scHorizLine
        'TChart1.AddSeries scLine
        TChart1.Series(1).SetFunction tfCumulative
        TChart1.Series(1).DataSource = TChart1.Series(0)
        TChart1.Series(1).Title = "Cumulative"
    End If
End Sub
Private Sub Command2_Click()
    If TChart1.SeriesCount = 2 Then
        TChart1.RemoveSeries (1)
    End If
    
    If TChart1.SeriesCount < 2 Then
        TChart1.AddSeries scHorizLine
        'TChart1.AddSeries scLine
        TChart1.Series(1).SetFunction tfCurveFit
        TChart1.Series(1).DataSource = TChart1.Series(0)
        TChart1.Series(1).Title = "CurveFit"
    End If
End Sub

Private Sub Command3_Click()
    If TChart1.SeriesCount = 2 Then
        TChart1.RemoveSeries (1)
    End If
    
    If TChart1.SeriesCount < 2 Then
        TChart1.AddSeries scHorizLine
        'TChart1.AddSeries scLine
        TChart1.Series(1).SetFunction tfSmoothing
        TChart1.Series(1).DataSource = TChart1.Series(0)
        TChart1.Series(1).Title = "Smoothing"
    End If
End Sub

Private Sub Form_Load()
    TChart1.AddSeries scHorizBar
    'TChart1.AddSeries scBar
    TChart1.Series(0).FillSampleValues 20
End Sub
You will see that Cumulative works but CurveFit and Smoothing doesn't. Changing the source series type to scBar and the functions to scLine works OK. This is probably a bug, I've added this to our deffect list to be fixed for future releases.

Posted: Wed Nov 08, 2006 5:11 am
by 9526208
Hello NarcĂ­s.

Could you please provide your bug ID number for this request?
(We are trying to improve our issue tracking)

Thanks,
Juan

Posted: Wed Nov 08, 2006 1:30 pm
by narcis
Hi Juan,

Yes, this is TV52010768.