Scaling Negative Time Values on Y Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Scaling Negative Time Values on Y Axis

Post by madup » Tue Feb 14, 2006 3:15 pm

How do I scale the Left Y Axis to show a negative Time value.
Values are in the range of less the 1 minute

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

Post by Narcís » Tue Feb 14, 2006 3:28 pm

Hi madup,

Could you please extend on what are you trying to obtain? Could you post an image of it? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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

madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

Post by madup » Tue Feb 14, 2006 4:37 pm

What I have is a chart that shows deltas between 2 datasets. Some of the values will be negative. Since the axis is formatted as 'Time', when the values are negative, the scale on the graph is blank

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Feb 20, 2006 10:28 am

Hi,

the only way I can think of is to set the labels (the ones you want to show) by using the the OnGetAxisLabel event, using similar code to the following :

Code: Select all

procedure TForm1.Chart1GetAxisLabel(Sender: TChartAxis;
  Series: TChartSeries; ValueIndex: Integer; var LabelText: String);
begin
if sender=chart1.Axes.Left then
  if labeltext = '' then
    labeltext := 'mylabel';
end;

Post Reply