TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
msd48
- Newbie
- Posts: 14
- Joined: Mon Oct 15, 2007 12:00 am
Post
by msd48 » Tue Aug 19, 2008 6:25 am
Hi!
I attempt to draw this graph:
Code: Select all
type
TForm1 = class(TForm)
DBChart1: TDBChart;
Series1: TFastLineSeries;
private
{ Private declarations }
public
{ Public declarations }
end;
There is min and max of value in graph.
It is necessary to make the filling of that region of graph, which leaves in max or min...
How I can do this?
Thanks for your answers.
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Tue Aug 19, 2008 9:29 am
Hi msd48,
I think that with the ClipSeries tool you should achieve what you want.
-
msd48
- Newbie
- Posts: 14
- Joined: Mon Oct 15, 2007 12:00 am
Post
by msd48 » Tue Aug 19, 2008 11:54 am
Hi Yeray!
How does this tool work?
I dont find an example in Tee8New.exe...
Moreover there is no options in this tool, besides the selection of a series…
Can you help me?
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Wed Aug 20, 2008 9:14 am
Hi msd48,
Here is a simple example of what it does. Add a Chart and a checkbox into a new form. Then add a line series and a ClipSeries tool into the chart. And the code:
Code: Select all
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
ChartTool1.Active := CheckBox1.Checked;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(25);
ChartTool1.Series := Series1;
with Chart1.Axes.Bottom do
begin
StartPosition := 20;
EndPosition := 80;
SetMinMax(2,8);
end;
ChartTool1.Active := CheckBox1.Checked;
end;
-
msd48
- Newbie
- Posts: 14
- Joined: Mon Oct 15, 2007 12:00 am
Post
by msd48 » Fri Aug 22, 2008 11:42 am
Hi Yeray,
Thanks for help.
Question is closed.