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
Multiple Series Bottom Axis Labels ??
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) :
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;
Pep Jorge
http://support.steema.com
http://support.steema.com