Skip to content

Commit fb63723

Browse files
committed
Update AABaseChartVC.swift
1 parent 35eded9 commit fb63723

File tree

1 file changed

+57
-1
lines changed

1 file changed

+57
-1
lines changed

AAInfographicsDemo/Demo/AdditionalContent2/AABaseChartVC.swift

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,63 @@ class AABaseChartVC: UIViewController {
250250
.style(AAStyle()
251251
.color(AAColor.red)
252252
.fontSize(9))
253-
aaChartView?.isScrollEnabled = true
253+
254+
// aaOptions.defaultOptions = AALang()
255+
// .noData("暂无数据")
256+
// .resetZoom("重置缩放比例")
257+
/**
258+
public class AAZooming: AAObject {
259+
public var key: String?
260+
public var mouseWheel: AAMouseWheel?
261+
public var pinchType: String?
262+
public var resetButton: AAResetButton?
263+
public var singleTouch: Bool?
264+
public var type: String?
265+
*/
266+
/**
267+
chart: {
268+
zooming: {
269+
type: 'x',
270+
resetButton: {
271+
theme: {
272+
fill: 'yellow',
273+
stroke: 'green',
274+
r: 3,
275+
states: {
276+
hover: {
277+
fill: '#ff0000',
278+
style: {
279+
color: 'white'
280+
}
281+
}
282+
}
283+
}
284+
}
285+
}
286+
},
287+
*/
288+
aaOptions.chart?.zooming = AAZooming()
289+
.resetButton(AAResetButton()
290+
.theme([
291+
"fill": "yellow",
292+
"stroke": "green",
293+
"r": 3,
294+
"states": [
295+
"hover": [
296+
"fill": "#ff0000",
297+
"style": [
298+
"color": "white"
299+
]
300+
]
301+
]
302+
]))
303+
.singleTouch(true)
304+
.type(.xy)
305+
306+
307+
308+
309+
// aaChartView?.isScrollEnabled = true
254310
aaChartView?.aa_refreshChartWholeContentWithChartOptions(aaOptions)
255311
}
256312
}

0 commit comments

Comments
 (0)