源码地址:https://github.com/danielgindi/Charts
lineChartView.zoom(scaleX: 4, scaleY: 1, x: 0, y: 0) //设置缩放倍数
lineChartView.setScaleEnabled(false) //不允许缩放
这样设置完成后,就不会识别 pinch 收拾缩放了,而且x 坐标很多可以滑动
源码地址:https://github.com/danielgindi/Charts
lineChartView.zoom(scaleX: 4, scaleY: 1, x: 0, y: 0) //设置缩放倍数
lineChartView.setScaleEnabled(false) //不允许缩放
这样设置完成后,就不会识别 pinch 收拾缩放了,而且x 坐标很多可以滑动