TChart 7.04 draw outside the Clientwindow
Posted: Thu Mar 24, 2005 2:51 pm
Put a TChart with a TAreaSeries to a form.
Then use following code:
procedure TForm4.Button2Click(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.Transparency:=100;
Series1.AreaLinesPen.Visible:=false;
Series1.AddXY(now -0.1 ,10);
Series1.AddXY(now +0.1 ,10);
Series1.AddXY(now ,10);
Chart1.BottomAxis.SetMinMax(now-0.05,now+0.05);
end;
The Chart draw outside the Window. Any Idea how to fix this?
Then use following code:
procedure TForm4.Button2Click(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.Transparency:=100;
Series1.AreaLinesPen.Visible:=false;
Series1.AddXY(now -0.1 ,10);
Series1.AddXY(now +0.1 ,10);
Series1.AddXY(now ,10);
Chart1.BottomAxis.SetMinMax(now-0.05,now+0.05);
end;
The Chart draw outside the Window. Any Idea how to fix this?