tzdHorizontal zoom problem
Posted: Wed Jun 02, 2004 8:12 am
Hello,
I am having difficulty with zooming especially when calculating Y custom axes. For each of my series I am re-scaling it's axis based on the Zoom Rect returned, for example:
with Chart1.Series[SeriesIdx].GetVertAxis do
begin
SetMinMax(
CalcPosPoint(Chart1.Zoom.Y1),
CalcPosPoint(Chart1.Zoom.Y0));
end;
My problem arises when the user activates the option to zoom along the X-Axis only, I use the tzdHorizontal direction setting to achieve this. When the user completes the selection of the zoom region the Chart1.Zoom.Y1 value is incorrect, it does not represent the bottom of my ChartRect and of course any series at the bottom of the chart are scaled off.
Is this a known problem? Does anyone have any idea how I may work around this without resorting to writing my own zoom selection tool?
Many thanks,
Steve
I am having difficulty with zooming especially when calculating Y custom axes. For each of my series I am re-scaling it's axis based on the Zoom Rect returned, for example:
with Chart1.Series[SeriesIdx].GetVertAxis do
begin
SetMinMax(
CalcPosPoint(Chart1.Zoom.Y1),
CalcPosPoint(Chart1.Zoom.Y0));
end;
My problem arises when the user activates the option to zoom along the X-Axis only, I use the tzdHorizontal direction setting to achieve this. When the user completes the selection of the zoom region the Chart1.Zoom.Y1 value is incorrect, it does not represent the bottom of my ChartRect and of course any series at the bottom of the chart are scaled off.
Is this a known problem? Does anyone have any idea how I may work around this without resorting to writing my own zoom selection tool?
Many thanks,
Steve