Page 1 of 1

[Solved] SeriesBandTool when series are not the same length

Posted: Mon Jul 31, 2006 7:45 am
by 9343260
Hello,

I have a problem using SeriesBandTool when 2 series are not the same length. I noticed that the seriesBandTool always tries to "link" the first points of each series, and the last points.

See my picture below to illustrate this problem: the seriesBandTool should draw only between the flags, because the left flag is the first point of the series2, and the right flag is the last point.

Image

I could also reproduce this in the TeeChartOffice.

TeeChart Version : 7.04

Posted: Mon Jul 31, 2006 11:52 am
by narcis
Hi bertrod,

I could reproduce the behaviour you report here. I've added an entry to our wish-list to adda Style property to this tool so that user can select how he/she would like the tool to behave.

In the meantime, you can use a fake series with the values of a sub-range of the larger series values:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject); 
var i: Integer;
begin
  Series1.FillSampleValues();

  for i:=5 to 15 do
  begin
    Series2.AddXY(i,random*1000);
    Series3.AddXY(Series1.XValue[i], Series1.YValue[i]);
  end;

  Series3.Pen.Visible:=false;

  ChartTool1.Series:=Series2;
  ChartTool1.Series2:=Series3;
end;

Posted: Wed Aug 02, 2006 7:34 am
by 9343260
Thanks, it works with your code. I must say that you had a good idea, i hadn't thought about doing it your way.