Reference lines

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gerben
Newbie
Newbie
Posts: 3
Joined: Tue Feb 03, 2004 5:00 am
Location: Nieuwegein HOL

Reference lines

Post by Gerben » Mon Nov 01, 2004 3:43 pm

Hi,

I am interested in knowing what the best strategy is for using reference lines in my 2D plots. For example I like to show a residual plot of a linear regression with a horizontal reference line at y=0, preferably in its own color and thickness. Or I like to show the cross of x and y axis at the origin (0,0) in the middle of my graph. Until now I used 2 LineSeries and that works fine of course, but I wonder if I can do it any better and more comfortable.
I am using TeeChart v6 and Delphi v7.

Thanks for your answer and kind regards from Gerben

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Nov 02, 2004 7:17 am

Hi, Gerben.

If you want do draw horizontal or vertical reference lines, then the best approach is to use the color line tool (TColorLineTool). Using this tool you should be able to draw horizontal or vertical reference lines for specific values. To see this tool in action check the "All Features -> Tools -> Color Line" examples in TeeChart demo.
Marjan Slatinek,
http://www.steema.com

Post Reply