Open Shannon-Yang opened 2 years ago
试试AAChartView 中的下面这个方法
/// Update the X axis Extremes
/// @param min X axis minimum
/// @param max X axis maximum
- (void)aa_updateXAxisExtremesWithMin:(NSUInteger)min max:(NSUInteger)max;
看看是否能满足需求, demo 中有示例
试试AAChartView 中的下面这个方法
/// Update the X axis Extremes /// @param min X axis minimum /// @param max X axis maximum - (void)aa_updateXAxisExtremesWithMin:(NSUInteger)min max:(NSUInteger)max;
看看是否能满足需求, demo 中有示例
我设置了,不行,我设置了scrollPositionX和scrollPositionY,仅仅只有一个轴能滚动,x或者y,不能两则同时滚动,现在想实现当x轴滚动时,y轴也跟着滚动
追加问题:请问是否可以设置AAChartView的bounces属性,回弹效果不是我想要的,我通过设置
self.chartView.scrollView.showsVerticalScrollIndicator = false
self.chartView.scrollView.showsHorizontalScrollIndicator = false
self.chartView.scrollView.bounces = false
但好像没有起作用
现在想实现当x轴滚动时,y轴也跟着滚动
这个功能恐怕不支持, 我一开始以为你只是想让 Y 轴的值能够跟着变化
追加问题:请问是否可以设置AAChartView的bounces属性,回弹效果不是我想要的
可以使用 AAChartView 的直接禁用滚动效果属性
/// Set the chart view can scroll or not
@property (nonatomic, assign) BOOL scrollEnabled;
如何实现在x的数据滚动时,y轴的数据也跟着滚动,类似这种图表,在滑动x轴时,y轴的数据随着x轴的数据进行滚动,图如下: