Page 1 of 1

How to plot graph Step wise?

Posted: Wed Sep 17, 2008 4:37 am
by 9343617
Hi,



I am having some question regarding graph plotting.



I want to plot graph step wise as plotted in first image. Here we are using GigaSoft components for graph stubs, but now we are using Tee Chart that we purchased. Is there any method or property to use same plotting as shown in first image? I didn’t find any method or series for plotting graph as I explained. To plot same graph I used Histogram series, you can see the 2nd image for more details and I hope you can understand the problem.

Please help me for same.



We are using tee Chart Pro Bundle (VCL, CLX & ActiveX) V7.01. Please see the images below for more details…





Thank you



Ashok Sahu

Software Engineer

BOSS International

Posted: Wed Sep 17, 2008 9:27 am
by narcis
Hi Ashok,

We can not see your images but received your e-mail sent to the Sales Department.

First of all please notice that there are much newer releases of TeeChart Pro v7 VCL and ActiveX available at the client area.

Regarding your technical question, yes, that’s possible using TeeChart. One option is using line series with stairs mode as shown in the code snippet below. Another option would be using area series set to stairs mode too.

Code: Select all

Private Sub Form_Load()
    TeeCommander1.Chart = TChart1
    
    TChart1.Aspect.View3D = False
    TChart1.AddSeries scLine
    
    TChart1.Series(0).asLine.Stairs = True
    
    TChart1.Series(0).AddXY 5, 100, "", clTeeColor
    TChart1.Series(0).AddXY 10, 110, "", clTeeColor
    TChart1.Series(0).AddXY 15, 120, "", clTeeColor
    TChart1.Series(0).AddXY 20, 130, "", clTeeColor
    TChart1.Series(0).AddXY 25, 150, "", clTeeColor
    
    TChart1.Axis.Bottom.MinimumOffset = 10
    TChart1.Axis.Bottom.MaximumOffset = 10
End Sub
Hope this helps!