开发者

How to display y Axis on the right side on Graph

开发者 https://www.devze.com 2023-02-16 04:21 出处:网络
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:

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

精彩评论

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

关注公众号