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.
Chart series order incorrect
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi cthogg,
Yes, you can do something like this:
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 |
Instructions - How to post in this forum |
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
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
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com