Page 1 of 1
Chart series order incorrect
Posted: Mon Feb 06, 2006 4:43 pm
by 8571714
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.
Posted: Wed Feb 08, 2006 10:22 am
by narcis
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;
Posted: Thu Feb 09, 2006 7:21 pm
by 9341079
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
Posted: Sun Feb 12, 2006 4:44 pm
by Pep
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.