Page 1 of 1

Multiple Series Bottom Axis Labels ??

Posted: Wed Jun 15, 2005 3:13 am
by 4213832
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

Posted: Mon Jun 20, 2005 2:59 pm
by Pep
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;