Page 1 of 1

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

Posted: Fri Sep 28, 2007 2:10 pm
by 10546441
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

Posted: Fri Sep 28, 2007 2:50 pm
by narcis
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!

Posted: Fri Sep 28, 2007 2:53 pm
by 10546441
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

Posted: Fri Sep 28, 2007 2:56 pm
by narcis
Hi ChZiegelt,

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

Code: Select all

  ChartTool1.AllowDrag:=true;