Page 1 of 1
Scaling Negative Time Values on Y Axis
Posted: Tue Feb 14, 2006 3:15 pm
by 9343745
How do I scale the Left Y Axis to show a negative Time value.
Values are in the range of less the 1 minute
Posted: Tue Feb 14, 2006 3:28 pm
by narcis
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.
Posted: Tue Feb 14, 2006 4:37 pm
by 9343745
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
Posted: Mon Feb 20, 2006 10:28 am
by Pep
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;