SOLVED - Line Series: Always show a line for zero Y Values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

SOLVED - Line Series: Always show a line for zero Y Values

Post by ChZiegelt » Fri Sep 28, 2007 2:10 pm

Hi everybody,

I need an Idea how to show a line in the middle of a TChart with a line series within. There are x and y Values schon in a graph, and I need to show a line in the middle as a kind of a visual reference.

This line shall be at y-value Zero.
I use the left and bottom axis for showing the values at the left and bottom part of the Chart.

Any Idea how to do this ?
Maybe by a Cursor Tool ?

Thanks in Advance
Last edited by ChZiegelt on Fri Sep 28, 2007 2:54 pm, edited 1 time in total.

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

Post by Narcís » Fri Sep 28, 2007 2:50 pm

Hi ChZiegelt,

The easiest way I can think of is using a TColorLineTool, for example:

Code: Select all

  ChartTool1.Axis:=Chart1.Axes.Left;
  ChartTool1.Value:=0;
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

ChZiegelt
Newbie
Newbie
Posts: 39
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Post by ChZiegelt » Fri Sep 28, 2007 2:53 pm

Thanks for the answer.

I tried it, and also tried out the CursorTool.

Helpful with the cursor tool is, it can be moved - so one can adjust the "reference"

Anyway thanks for the help

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

Post by Narcís » Fri Sep 28, 2007 2:56 pm

Hi ChZiegelt,

You're welcome! For completeness, please notice that TColorLineTool also supports mouse dragging:

Code: Select all

  ChartTool1.AllowDrag:=true;
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