Chart series order incorrect

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
nitin
Newbie
Newbie
Posts: 51
Joined: Thu Aug 22, 2002 4:00 am

Chart series order incorrect

Post by nitin » Mon Feb 06, 2006 4:43 pm

I am using TeeChart Pro v7.04 with Delphi 7. My datasource outputs a record set in date-range order by month of year descending.

When I link to the pipeline for the series, the results are in date-range order ascending. I can't figure out how to change this?

Please help.

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

Post by Narcís » Wed Feb 08, 2006 10:22 am

Hi cthogg,

Yes, you can do something like this:

Code: Select all

procedure TDBChartOrder.RadioGroup1Click(Sender: TObject);
begin
  inherited;
  // Change Series Order
  Case RadioGroup1.ItemIndex of
    0: Series1.YValues.Order:=loNone;
    1: Series1.YValues.Order:=loAscending;
    2: Series1.YValues.Order:=loDescending;
  end;
  DBChart1.RefreshData;
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

cthogg
Newbie
Newbie
Posts: 1
Joined: Fri Feb 25, 2005 5:00 am

Post by cthogg » Thu Feb 09, 2006 7:21 pm

Narcis,

I tried this code snippet below:

procedure TSAICPremiumFrm.TeeChartReportBeforePrint(Sender: TObject);
begin
ppDPTeeChart1.Chart.Series[1].XValues.Order:=loDescending;
ppDPTeeChart1.Chart.Refresh;
end;

But, I get [Error] MainUnit.pas(1121): Undeclared identifier: 'loDescending' when I compile it.

cthogg

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Sun Feb 12, 2006 4:44 pm

Hi,

It looks to me the problem is the tppChart component (the RB TDBChart wrapper). Could you please check if it happens also using a TDBChart component instead of TppChart one ?

If the problem only happens using the tppChart component, please check with Digital Metaphors about this problem. Basically, TppChart is a TDBChart wrapper and as such coded/maintained by Digital Metaphors. This unit/component is not Steema product.

Post Reply