Skip to content

Commit e141cec

Browse files
committed
Update AABaseChartVC.swift
1 parent fb63723 commit e141cec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

AAInfographicsDemo/Demo/AdditionalContent2/AABaseChartVC.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ class AABaseChartVC: UIViewController {
251251
.color(AAColor.red)
252252
.fontSize(9))
253253

254-
// aaOptions.defaultOptions = AALang()
255-
// .noData("暂无数据")
256-
// .resetZoom("重置缩放比例")
254+
aaOptions.defaultOptions = AALang()
255+
.noData("暂无数据")
256+
.resetZoom("点击重置缩放比例")
257257
/**
258258
public class AAZooming: AAObject {
259259
public var key: String?
@@ -301,12 +301,14 @@ class AABaseChartVC: UIViewController {
301301
]
302302
]))
303303
.singleTouch(true)
304-
.type(.xy)
305-
304+
.type(.x)
305+
.pinchType(.x)
306+
307+
aaOptions.chart?.pinchType(.x)
306308

307309

308310

309-
// aaChartView?.isScrollEnabled = true
311+
aaChartView?.isScrollEnabled = true
310312
aaChartView?.aa_refreshChartWholeContentWithChartOptions(aaOptions)
311313
}
312314
}

0 commit comments

Comments
 (0)