Keeping the y-axis fixed at place?

本小妞迷上赌 提交于 2019-12-04 20:46:57

if you want to fix axis when scrolling add this lines

CPTXYAxisSet *axisSet = (CPTXYAxisSet *)_graph.axisSet;

axisSet.xAxis.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
axisSet.yAxis.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
ben

The original question now has two viable solutions that work for the latest, as of this date, code in the repository.

Allow horizontal scrolling only in the core-plot barchart?

To keep the graph only in quadrant one:

Allow horizontal scrolling only in the core-plot barchart?

To only allow scrolling in the horizontal:

Allow horizontal scrolling only in the core-plot barchart?

I've used both solutions with a scatter plot and it works great.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!