Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2006, 09:39 AM
a_h_hashemi a_h_hashemi is offline
Senior Member
 
Join Date: Nov 2005
Posts: 111
Default Tchatr 2

Hello:

How can I provide some points for TCHart to plot a line?
Please do me a favor by giving a simple example.

Regards,
Reply With Quote
  #2  
Old 09-28-2006, 09:59 AM
daltamira daltamira is offline
Senior Member
 
Join Date: Aug 2006
Location: Argentina
Posts: 959
Default RE: Tchatr 2

First, add a new serie, then
[delphi]
var x,y: integer;

Chart1.Series[0].AddXY(x,y);
[/delphi]
Reply With Quote
  #3  
Old 09-28-2006, 10:14 AM
daltamira daltamira is offline
Senior Member
 
Join Date: Aug 2006
Location: Argentina
Posts: 959
Default RE: Tchatr 2

Here an example how to calculate the square of X
[delphi]
procedure TForm1.Button1Click(Sender: TObject);
var
x,y:integer;
begin
for x := 0 to 10 do begin
y := x*x;
chart.Series[0].AddXY(x,y);
end;
end;
[/delphi]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.