I have a chart with 4 or 5 series
X values are dates and y values are numbers
I want to add and an number to every x,y value ( the id of the record they belong) but i don't want to see them in the chart
How this can be done???
I tried Xlables but only one series can have xlables
Any idea???
Id of a series
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi IQSoft,
You can use point's label argument when populating a series. You can have this for all series but if you make them visible on the x axis only labels from first series will be displayed. You can do something like this:
You can use point's label argument when populating a series. You can have this for all series but if you make them visible on the x axis only labels from first series will be displayed. You can do something like this:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var i,j: Integer;
begin
for i:=0 to Chart1.SeriesCount-1 do
begin
for j:=0 to 10 do
Series1.AddXY(j, random, 'my label' + IntToStr(j));
Chart1[i].Marks.Visible:=false;
end;
Chart1.Axes.Bottom.LabelStyle:=talValue;
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 |