Id of a series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
IQSoft
Newbie
Newbie
Posts: 20
Joined: Mon Jun 18, 2007 12:00 am
Location: Greece
Contact:

Id of a series

Post by IQSoft » Fri Dec 14, 2007 9:14 pm

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???

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Dec 17, 2007 9:47 am

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:

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply