Skip to content

Commit 8043c80

Browse files
committed
Format code
1 parent 27c595b commit 8043c80

File tree

1 file changed

+34
-41
lines changed

1 file changed

+34
-41
lines changed

AAInfographicsDemo/Demo/SpecialChartVC.swift

Lines changed: 34 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
import UIKit
3434

3535
class SpecialChartVC: AABaseChartVC {
36-
36+
3737
override func viewDidLoad() {
3838
super.viewDidLoad()
39-
39+
4040
}
4141

4242
override func chartConfigurationWithSelectedChartType(_ selectedChartType: AAChartType) -> Any? {
43-
switch selectedChartType {
43+
switch selectedChartType {
4444
case .column: return configureColumnChart()
4545
case .pie: return configurePieChart()
4646
case .bubble: return configureBubbleChart()
@@ -59,7 +59,7 @@ class SpecialChartVC: AABaseChartVC {
5959
}
6060
}
6161

62-
private func configureColumnChart() -> AAChartModel {
62+
private func configureColumnChart() -> AAChartModel {
6363
return AAChartModel()
6464
.chartType(.column)
6565
.polar(true)
@@ -73,11 +73,10 @@ class SpecialChartVC: AABaseChartVC {
7373
.data([7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6])
7474
.colorByPoint(true)
7575

76-
]
77-
)
76+
])
7877
}
7978

80-
private func configurePieChart() -> AAChartModel {
79+
private func configurePieChart() -> AAChartModel {
8180
return AAChartModel()
8281
.chartType(.pie)
8382
.backgroundColor(AAColor.white)
@@ -101,12 +100,10 @@ class SpecialChartVC: AABaseChartVC {
101100
["OC" ,11],
102101
["Go" ,30],
103102
])
104-
,
105-
]
106-
)
103+
])
107104
}
108105

109-
private func configureBubbleChart() -> AAChartModel {
106+
private func configureBubbleChart() -> AAChartModel {
110107
return AAChartModel()
111108
.chartType(.bubble)
112109
.title("AACHARTKIT BUBBLES")
@@ -129,7 +126,7 @@ class SpecialChartVC: AABaseChartVC {
129126
[38, 23, 33],
130127
[57, 86, 31],
131128
[33, 24, 22]
132-
])
129+
])
133130
,
134131
AASeriesElement()
135132
.name("BubbleTwo")
@@ -145,7 +142,7 @@ class SpecialChartVC: AABaseChartVC {
145142
[15, 67, 48],
146143
[54, 25, 81],
147144
[55, 66, 11]
148-
])
145+
])
149146
,
150147
AASeriesElement()
151148
.name("BubbleThree")
@@ -161,11 +158,9 @@ class SpecialChartVC: AABaseChartVC {
161158
[64, 12, 55],
162159
[30, 77, 82],
163160
[88, 66, 13]
164-
])
161+
])
165162
,
166-
]
167-
)
168-
163+
])
169164
}
170165

171166
private func configureScatterChart() -> AAChartModel {
@@ -238,7 +233,7 @@ class SpecialChartVC: AABaseChartVC {
238233
[156.2, 60.0], [149.9, 46.8], [169.5, 57.3], [160.0, 64.1], [175.3, 63.6],
239234
[169.5, 67.3], [160.0, 75.5], [172.7, 68.2], [162.6, 61.4], [157.5, 76.8],
240235
[176.5, 71.8], [164.4, 55.5], [160.7, 48.6], [174.0, 66.4], [163.8, 67.3]
241-
])
236+
])
242237
,
243238
AASeriesElement()
244239
.name("Male")
@@ -294,9 +289,8 @@ class SpecialChartVC: AABaseChartVC {
294289
[180.3, 73.2], [167.6, 76.3], [183.0, 65.9], [183.0, 90.9], [179.1, 89.1],
295290
[170.2, 62.3], [177.8, 82.7], [179.1, 79.1], [190.5, 98.2], [177.8, 84.1],
296291
[180.3, 83.2], [180.3, 83.2]
297-
])
298-
299-
])
292+
])
293+
])
300294
}
301295

302296
private func configureArearangeChart() -> AAChartModel {
@@ -687,8 +681,8 @@ class SpecialChartVC: AABaseChartVC {
687681
[14198148, 5.2, 2.4],
688682
[14199012, 1.3, 2.5],
689683
[14199876, 1.6, 4.2]
690-
])
691-
])
684+
])
685+
])
692686
}
693687

694688
private func configureAreasplinerangeChart() -> AAChartModel {
@@ -809,8 +803,8 @@ class SpecialChartVC: AABaseChartVC {
809803
[-3.1, 11.4],
810804
[-5.2, 10.4],
811805
[-13.5, 9.8]
812-
])
813-
])
806+
])
807+
])
814808
}
815809

816810
private func configureStepLineChart() -> AAChartModel {
@@ -827,18 +821,18 @@ class SpecialChartVC: AABaseChartVC {
827821
.name("Berlin")
828822
.data([450, 432, 401, 454, 590, 530, 510])
829823
.step("right")//设置折线样式为直方折线,折线连接点位置靠右👉
830-
,
824+
,
831825
AASeriesElement()
832826
.name("New York")
833827
.data([220, 282, 201, 234, 290, 430, 410])
834828
.step("center")//设置折线样式为直方折线,折线连接点位置居中
835-
,
829+
,
836830
AASeriesElement()
837831
.name("Tokyo")
838832
.data([120, 132, 101, 134, 90, 230, 210])
839833
.step("left")//设置折线样式为直方折线,折线连接点位置靠左👈
840-
,
841-
])
834+
,
835+
])
842836
}
843837

844838
private func configureStepAreaChart() -> AAChartModel {
@@ -855,18 +849,18 @@ class SpecialChartVC: AABaseChartVC {
855849
.name("Berlin")
856850
.data([450, 432, 401, 454, 590, 530, 510])
857851
.step(true)//设置折线样式为直方折线,折线连接点位置靠左👈
858-
,
852+
,
859853
AASeriesElement()
860854
.name("New York")
861855
.data([220, 282, 201, 234, 290, 430, 410])
862856
.step(true)//设置折线样式为直方折线,折线连接点位置靠左👈
863-
,
857+
,
864858
AASeriesElement()
865859
.name("Tokyo")
866860
.data([120, 132, 101, 134, 90, 230, 210])
867861
.step(true)//设置折线样式为直方折线,折线连接点位置靠左👈
868-
,
869-
])
862+
,
863+
])
870864
}
871865

872866
private func configureBoxplotChart() -> AAChartModel {
@@ -887,9 +881,8 @@ class SpecialChartVC: AABaseChartVC {
887881
[714, 762, 817, 870, 918],
888882
[724, 802, 806, 871, 950],
889883
[834, 836, 864, 882, 910]
890-
])
891-
,
892-
])
884+
])
885+
])
893886
}
894887

895888
private func configureWaterfallChart() -> AAChartModel {
@@ -927,7 +920,7 @@ class SpecialChartVC: AABaseChartVC {
927920
"isSum": true,
928921
"color": "#04d69f"
929922
]])
930-
])
923+
])
931924
}
932925

933926
private func configurePyramidChart() -> AAChartModel {
@@ -945,9 +938,9 @@ class SpecialChartVC: AABaseChartVC {
945938
["JavaScript", 14286],
946939
["Go", 15552],
947940
["Python", 18654],
948-
])
949-
,
950-
])
941+
])
942+
,
943+
])
951944
}
952945

953946
private func configureFunnelChart() -> AAChartModel {
@@ -997,7 +990,7 @@ class SpecialChartVC: AABaseChartVC {
997990
.color(AAColor.red)
998991
.data([[48, 51], [68, 73], [92, 110], [128, 136], [140, 150], [171, 179], [135, 143], [142, 149], [204, 220], [189, 199], [95, 110], [52, 56]])
999992
.tooltip(AATooltip()
1000-
.pointFormat("(误差范围: {point.low}-{point.high} mm)<br/>"))
993+
.pointFormat("(误差范围: {point.low}-{point.high} mm)<br/>"))
1001994
])
1002995
}
1003996
}

0 commit comments

Comments
 (0)