Set Labels on the left Axis...

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bingo72
Newbie
Newbie
Posts: 42
Joined: Sun Aug 10, 2003 4:00 am
Location: Austria

Set Labels on the left Axis...

Post by bingo72 » Fri Nov 24, 2006 6:27 am

Hello Experts!!

How can I set the labels on the left Axis like in this case??

http://www.bos.at/downloads/Chart.jpg

In the picture I set 2 TJvStaticText-Labels manually and I also tried to do this with the TeeChart-Settings...I only can set the '+5'-label but the '-5'-label disappear...

Can you give me a tip??

Bye
Thomas

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

Post by Marjan » Fri Nov 24, 2006 6:59 am

Hi, Thomas.

Try with this:

Code: Select all

With Chart1.Axes.Left do
begin
  LabelsOnAxis := True;
  SetMinMax(-5.0, 5.0);
  Increment := 5.0;
end;
Marjan Slatinek,
http://www.steema.com

bingo72
Newbie
Newbie
Posts: 42
Joined: Sun Aug 10, 2003 4:00 am
Location: Austria

Post by bingo72 » Fri Nov 24, 2006 7:33 am

Good morning Marjan,

thanks for your tipp!! I tried your code out... but like you see the label '-5' don't appear...

Image

bingo72
Newbie
Newbie
Posts: 42
Joined: Sun Aug 10, 2003 4:00 am
Location: Austria

Post by bingo72 » Fri Nov 24, 2006 8:59 am

When the min-value of the label is >=0 than the min-label appear on the chart. It seems that there is a problem with neg. min-values??!! :?:

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

Post by Marjan » Fri Nov 24, 2006 10:07 am

Which TeeChart version are you using ?
Marjan Slatinek,
http://www.steema.com

bingo72
Newbie
Newbie
Posts: 42
Joined: Sun Aug 10, 2003 4:00 am
Location: Austria

Post by bingo72 » Fri Nov 24, 2006 10:22 am

TeeChart Pro v6.01

bingo72
Newbie
Newbie
Posts: 42
Joined: Sun Aug 10, 2003 4:00 am
Location: Austria

Post by bingo72 » Mon Nov 27, 2006 11:58 am

Are there any news for my problem??

Post Reply