开发者

How to display y Axis on the right side on Graph

I want to implement a candlestick graph using core-plot. I have a little problem with yAxis开发者_JAVA技巧. I'd like to display the yAxix on the right like this examples:

How to display y Axis on the right side on Graph

http://www.schaefferresearch.com/images/schaeffersu/tutorials/charts/candlestick.gif

How to display y Axis on the right side on Graph

http://www.mafiaforex.com/wp-content/uploads/2010/07/candlestick.gif

How?!

Looking at the examples I tried to change yAxis.orthogonalCoordinateDecimal with no result.

Thank you for your help!

Bye

G.


Try changing xAxis.orthogonalCoordinateDecimal.


yAxis.axisConstraints = [CPTConstraints constraintWithUpperOffset:0.0];
yAxis.orthogonalCoordinateDecimal = CPTDecimalFromDouble("some number on X axis");

should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜