Ilustrasi Program
program lengkap
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, TeeProcs, TeEngine, Chart, Series,
TeeShape, GanttCh, ArrowCha;
type
TForm1 = class(TForm)
Chart1: TChart;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
BitBtn1: TBitBtn;
Series1: TFastLineSeries;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Chart1.Series[0].clear;
Chart1.Series[0].Add(strtofloat(Edit1.Text),'2008',clred);
Chart1.Series[0].Add(strtofloat(Edit2.Text),'2009',clyellow);
Chart1.Series[0].Add(strtofloat(Edit3.Text),'2010',clmaroon);
Chart1.Series[0].Add(strtofloat(Edit4.Text),'2011',cllime);
end;
end.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment