Painting Problem?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Blair
Newbie
Newbie
Posts: 5
Joined: Wed Dec 04, 2013 12:00 am

Painting Problem?

Post by Blair » Fri Jun 20, 2014 4:25 pm

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.
Attachments
test.zip
(3.27 KiB) Downloaded 543 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Painting Problem?

Post by Narcís » Mon Jun 23, 2014 9:12 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Blair
Newbie
Newbie
Posts: 5
Joined: Wed Dec 04, 2013 12:00 am

Re: Painting Problem?

Post by Blair » Mon Jun 23, 2014 9:13 pm

Ugg any quick way to check/add all the dates in all the series?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Painting Problem?

Post by Yeray » Wed Jun 25, 2014 8:34 am

Hi Blair,

Yes, you can do a loop like here.
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

Post Reply