Position yAxis to the right


Hey guys, how do I position the default yAxis (the primary one) on the right of the chart? I can’t find anything in the API doc.

Also, is the source code for the stock trading chart from the SPlay app available somewhere?


In case anyone else stumbles across this, axisPosition does the trick. D’oh!  :blush:

// show Y axis from right side

_chart.yAxis.axisPosition = SChartAxisPositionReverse; // my code API variant:

Add an additional y-axis on the right side of the chart as follows:

SChartNumberAxis *rightY = [SChartNumberAxis new];
rightY.axisPosition = SChartAxisPositionReverse; //use the non-default position
[self.chart addYAxis:rightY];