Page 1 of 1

Painting Problem?

Posted: Fri Jun 20, 2014 4:25 pm
by 16467966
Why is series 3 painting in series 2 in the second part of the graph, while it is painting on the top in the first part of the graph? Shouldn't it be the top series for the whole graph.

Re: Painting Problem?

Posted: Mon Jun 23, 2014 9:12 am
by narcis
Hi Blair,

The problem is Series3 has less points than Series1 and Series2. It should have the same number of points and same X values for stacking to work fine with all series. Series3 has a gap between 1st December 2013 until 15th December 2013. Adding data (zero values) for Series3 within this range, as shown in the code snippet below, solves the problem.

Code: Select all

uses VCLTee.TeeStore;

procedure TForm1.FormCreate(Sender: TObject);
var
  i: Integer;
begin
  LoadChartfromFile(Chart1, 'g:\temp\test.tee');

  for i := 1 to 15 do
  begin
    Chart1[2].AddXY(EncodeDate(2013, 12, i), 0);
  end;
end;

Re: Painting Problem?

Posted: Mon Jun 23, 2014 9:13 pm
by 16467966
Ugg any quick way to check/add all the dates in all the series?

Re: Painting Problem?

Posted: Wed Jun 25, 2014 8:34 am
by yeray
Hi Blair,

Yes, you can do a loop like here.