Page 1 of 1

min / max areas

Posted: Tue Aug 19, 2008 6:25 am
by 10547029
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.

Posted: Tue Aug 19, 2008 9:29 am
by yeray
Hi msd48,

I think that with the ClipSeries tool you should achieve what you want.

Posted: Tue Aug 19, 2008 11:54 am
by 10547029
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?

Posted: Wed Aug 20, 2008 9:14 am
by yeray
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;

Posted: Fri Aug 22, 2008 11:42 am
by 10547029
Hi Yeray,

Thanks for help.
Question is closed.