开发者

iPhone SDK chart Core-Plot: How to keep the X axis and Y axis keep on the bottom and right whatever i scale how much

开发者 https://www.devze.com 2023-04-12 02:56 出处:网络
I am now creating a chart by using Core-plot in iphone sdk. But i want the X-axis and Y-axis always stay on the bottom and right whatever how much did i enlarge or scale.

I am now creating a chart by using Core-plot in iphone sdk.

But i want the X-axis and Y-axis always stay on the bottom and right whatever how much did i enlarge or scale.

you can se开发者_如何学Ce what happened in the following picture , thank you:

iPhone SDK chart Core-Plot: How to keep the X axis and Y axis keep on the bottom and right whatever i scale how much

iPhone SDK chart Core-Plot: How to keep the X axis and Y axis keep on the bottom and right whatever i scale how much

iPhone SDK chart Core-Plot: How to keep the X axis and Y axis keep on the bottom and right whatever i scale how much


Just add this line

y.isFloatingAxis=YES;

x.isFloatingAxis=YES;

if still axis moving then set NO instead of YES

0

精彩评论

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

关注公众号