Multiple Series Bottom Axis Labels ??

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Snoopy
Newbie
Newbie
Posts: 4
Joined: Sun Jun 09, 2002 4:00 am

Multiple Series Bottom Axis Labels ??

Post by Snoopy » Wed Jun 15, 2005 3:13 am

Hello

I am using TChart Pro V5.02 for BCB.

I have an issue with the Bottom Axis labels when using multiple series on a single chart.

If I assign one label to a point on one series and a different label to another instance of a point on another series both labels get displayed on the bottom axis overlayed on each other.

Is it possible to only display the bottom axis labels for one series only, or can you select which series labels that you want to display on the bottom axis ??

Regards
David

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

Post by Pep » Mon Jun 20, 2005 2:59 pm

Hi David,

you can customize the Axis labels using the OnGetAxisLabel event. Using the following code will solve your problem (only will appear the Labels of the Series1) :

Code: Select all

procedure TForm1.Chart1GetAxisLabel(Sender: TChartAxis; Series: TChartSeries;
  ValueIndex: Integer; var LabelText: string);
begin
if Series <> Series1 then
  LabelText := '';
end;

Post Reply