setZoom not working?


#1

I have a chart with x/y axis as:

    // Perform a simple basic-init setup of the Axis.  We change it later once the data is loaded
    SChartNumberRange *xRange = [[SChartNumberRange alloc] initWithMinimum:[NSNumber numberWithInt:0] andMaximum:[NSNumber numberWithInt:100]];
    SChartNumberAxis *xAxis = [[SChartNumberAxis alloc] initWithRange:xRange];
   
    SChartNumberRange *yRange = [[SChartNumberRange alloc] initWithMinimum:[NSNumber numberWithInt:0] andMaximum:[NSNumber numberWithInt:50]];
    SChartNumberAxis *yAxis = [[SChartNumberAxis alloc] initWithRange:yRange];
 
    chart.xAxis = xAxis;
    chart.yAxis = yAxis;

I have a little button to set the zoom as follows (chart already rendered);

   [chart.xAxis setZoom:3];
   [chart.yAxis setZoom:3];
    [chart redrawChart];

But it simply does not work.  The chart refreshes at max zoom of the x/y axis values.

Any ideas what might be wrong?