Page 1 of 1

Line chart problem

Posted: Wed Sep 10, 2008 1:49 pm
by 9534655
I am using TeeChart Pro ActiveX 7.0 and have problem with a simple line chart. My two series have uneven numbers of x/y values. For example, the first series has 4 data points:x=1/y=1;x=2/y=2;x=3/y=3;x=4/y=4.
the second series 3 data points:x=1/y=2;x=2/y=3;x=4/y=5.

The first series shows a line with 4 data points. But the second series shows a line with the first two data points, plus a dot for the third data point. The line is missing between the second and the third data point. How to fix this problem?

Thanks.

Posted: Wed Sep 10, 2008 2:33 pm
by narcis
Hi kai,

I'm not able to reproduce the issue here using v7.0.1.4, which is latest v7 release available at the client area, and code below. Could you please let us know the TeeChart version you are using and, if the problem persists, modify the code snippet so that we can reproduce the problem here?

Code: Select all

Private Sub Form_Load()
    TChart1.Aspect.View3D = False
    
    TChart1.AddSeries scLine
    TChart1.AddSeries scLine
    
    TChart1.Series(0).AddXY 1, 1, "", clTeeColor
    TChart1.Series(0).AddXY 2, 2, "", clTeeColor
    TChart1.Series(0).AddXY 3, 3, "", clTeeColor
    TChart1.Series(0).AddXY 4, 4, "", clTeeColor
    
    TChart1.Series(1).AddXY 1, 2, "", clTeeColor
    TChart1.Series(1).AddXY 2, 3, "", clTeeColor
    TChart1.Series(1).AddXY 4, 5, "", clTeeColor
End Sub
Thanks in advance.