My data consists of records with a date, a scheduled count and a total count. I'm using dates to label the bottom axis and then two series to show the schedued and total available for each date.
The problem is that, there is only one record per date in my data, the date is repeated several times as labels for the x axis.
More than one label per record??
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rick1000,
You can customize the labels text using the GetAxisLabel event checking which axis and series is processed doing something like this:
You can also customize series marks using GetMarkText event.
You can customize the labels text using the GetAxisLabel event checking which axis and series is processed doing something like this:
Code: Select all
procedure TForm1.Chart1GetAxisLabel(Sender: TChartAxis;
Series: TChartSeries; ValueIndex: Integer; var LabelText: String);
begin
if (Sender=Chart1.Axes.Bottom and Series=Chart1[0]) then
begin
LabelText:='....'+IntToStr(ValueIndex);
end;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |