Page 1 of 1

Displaying a range on the chart

Posted: Sun Jun 19, 2005 2:53 pm
by 5892401
Hello
I'm trying to display on the chart a range between high and low limits.
I want it to be half transparent (like a peice of Cellophane on the chart).

Image

Does anyone know how can I do it?

Thanks, Libby

Posted: Mon Jun 20, 2005 7:45 am
by narcis
Hi Libby,

Yes, you can do this using a SeriesBand tool. You should use two line series and then make its pen invisible as shown here:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.FillSampleValues(10);
  Series2.FillSampleValues(10);

  Series1.Pen.Visible:=false;
  Series2.Pen.Visible:=false;

  ChartTool1.Transparency:=50;
end;
For more information on how to use TeeChar tools please have a look at the tutorials, available at TeeChart documentation or at the TeeChart features demo, available at TeeChart program group.

Posted: Tue Jun 21, 2005 8:09 am
by 5892401
Hi
Can you please add an explanation how to add the ChartTool1 to the chart?
In the list of tools I have a "ColorBand" not a "SeriesBand". Is it the same thing?
Can you direct me to a specific demo that I can run or a specific tutorial?

Posted: Tue Jun 21, 2005 8:34 am
by narcis
Hi Libby,
Can you please add an explanation how to add the ChartTool1 to the chart?
You'll find examples on how to use TeeChart tools at the TeeChart features demo available at TeeChart program group. However you can easily add tools to your chart just double-clicking on it, openning Tools tab, clicking add and select the tool you want to use.
In the list of tools I have a "ColorBand" not a "SeriesBand". Is it the same thing?
No, which TeeChart version are you using? SeriesBand tool is available at TeeChart Pro v7.
Can you direct me to a specific demo that I can run or a specific tutorial?
I'm afraid there's no specific demo for SeriesBand tool.

Posted: Tue Jun 21, 2005 9:10 am
by 5892401
OK, Thanks.
I guess I'll have to upgrade.