You don't have to add the series to the list yourself; just assign
the Chart to the series using its ParentChart-property, like:
With TLineSeries.Create(Self) Do
Try
ParentChart := StatsChart; <=============
Title :=
NameTable.FieldByName('ChartName').AsString;
// ...
Pointer.Style := psRectangle;
Pointer.VertSize := 6;
Pointer.Visible := True;
Except
Raise Exception.Create('Blahblah');
End;
(I'm using a TDBChart here, but the essentials are the same).
Greetz,
Peter.
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of at_da_sa
> Sent: Tuesday, August 16, 2005 8:04 AM
> To: [email protected]
> Subject: [delphi-en] help please
>
>
> hi
> i need a urgency help
> please tell me how can I add a series to my chart.
> my code is:
> series1:=TLineSeries.Create(Self );
> series2:=TLineSeries.Create(Self );
>
> series1.Title:='man';
> series2.Title:='woman';
>
> chart1.SeriesList.Add(series1 );
> chart1.SeriesList.Add(series2 );
> but after running chart1.serieslist is empty!
> thanks before
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> <font face=arial size=-1><a
> href="http://us.ard.yahoo.com/SIG=12h0cuq1d/M=362131.6882499.7
> 825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124179438
> /A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
> ">Get Bzzzy! (real tools to help you find a job) Welcome to
> the Sweet Life - brought to you by One Economy</a>.</font>
> --------------------------------------------------------------
> ------~->
>
> -----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe: [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12htenc79/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124189684/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/