How to plot graph Step wise?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Raju S Nair
Newbie
Newbie
Posts: 10
Joined: Wed Sep 28, 2005 4:00 am

How to plot graph Step wise?

Post by Raju S Nair » Wed Sep 17, 2008 4:37 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 17, 2008 9:27 am

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply