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
problem with CalcXSizeValue
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
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