How to make Tchart curve run vertically ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sciensoria
Newbie
Newbie
Posts: 20
Joined: Tue Jul 03, 2007 12:00 am
Contact:

How to make Tchart curve run vertically ?

Post by Sciensoria » Fri Jun 12, 2009 10:34 am

Hello,
A FastLineSeries can run from the left to the righ and inversely in the manner of an oscilloscope. I use the following commands for a curve which runs from the left to the right:

tmpTch:=XValues[1]-XValues[0];
if (Count>100) then repeat Delete(count-1) until count<= 100;
AddXY(XValues.First-tmpTch,X,'',clBlack)

But I would like to make it running from the top to the bottom of the Chart in the manner of a data recorder. I tried to do as below but it doesn't work:

tmpTch:=YValues[1]-YValues[0];
if (Count>100) then repeat Delete(count-1) until count<= 100;
AddXY(X,YValues.First-tmpTch,'',clBlack)

Could you advise how I can get the curve running from the top to the bottom of the graphic ?

Thank you in advance.

Patrick
Sciensoria

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

Re: How to make Tchart curve run vertically ?

Post by Narcís » Fri Jun 12, 2009 2:39 pm

Hi Patrick,

You can easily achieve that using horizontal line series (THorizLineSeries).

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