Page 1 of 1

problem with CalcXSizeValue

Posted: Fri Jan 14, 2005 10:43 pm
by 9338144
Hi,

I am using TeeChart Pro v7 for Delphi 5.

Problem: BarSeries.CalcXSizeValue method returns invalid values when it is called from TChart.OnUndoZoom even handler.
However when CalcXSizeValue called from OnZoom event handler, it works correctly.

Any solution?

Regards
Alex

Posted: Sat Jan 15, 2005 12:58 am
by 9338144
PS Actually CalcXSizeValue called from OnZoom event handler returns wrong value as well. If zoom is animated it returns value calculated for previous stage of the zoom (so result almost correct).
CalcXSizeValue called from OnUndoZoom returns value calculated for previous (zoomed) stage.
And what is worse - CalcXSizeValue returns wrong value when we add new data into series. E.g. if program adds 4 items, CalcXSizeValue returns value that looks correctly for 3 items....

Looks like we need to call ChartAxis.InternalCalcRange or ChartAxis.RecalcSizeCenter manually. But these methods are private.

Any reccomendations?

Regards
Alex

Posted: Tue Jan 18, 2005 6:48 pm
by 9338144
Anybody here?