Example Pie-Series
Suppose the Series we added was a Pie Series. We could populate the Series in the following way. For the following code to work we should leave the Series name as its default of Series1.
Place a TButton on your Form and go to the OnClick event .
Copy the following code at the Button1.OnClick event:
With Series1do
begin
Add( 40, 'Pencil' , clRed ) ;
Add( 60, 'Paper', clBlue ) ;
Add( 30, 'Ribbon', clGreen ) ;
end;
以上是折自teechart.hlp中 chart例子