min / max areas

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
msd48
Newbie
Newbie
Posts: 14
Joined: Mon Oct 15, 2007 12:00 am

min / max areas

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
Site Admin
Posts: 9553
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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

msd48
Newbie
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
Site Admin
Posts: 9553
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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

msd48
Newbie
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.

Post Reply