Our API has all the building blocks you need to get this to work, you just need to put them together. There are a number of ways you could do this, here’s one:
- Set your chart’s autoCalculateAxisRanges property to NO. This will stop your chart resetting the axis ranges to perfectly fit the new data.
- Hook into your chart’s zooming delegate methods and call reloadData and redrawChart when the chart has reached your desired zoom level.
Instead of reloading data into your chart, you might find that it’s easier to load all of the data into your chart in the form of two seperate series, and use the delegate methods as described above to show and hide the series using the SChartSeries’ hidden property:
// Set the first series in the chart as hidden.
// Redraw the chart to take effect.
I hope the above has given you enough information to get started!