Skip to content

Commit 46b7eb3

Browse files
committed
Optimize details
1 parent b2526de commit 46b7eb3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

AAInfographicsDemo/Demo/BasicChartVC.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,12 @@ class BasicChartVC: UIViewController {
153153

154154
private func configureAreaChartAndAreasplineChartStyle() {
155155
aaChartModel!
156-
.markerSymbolStyle(.innerBlank)//Set the polyline connection point style to: white inside
157156
.animationType(.easeOutQuart)
158-
.legendEnabled(true)
157+
.markerSymbolStyle(.innerBlank)//Set the polyline connection point style to: white inside
159158
.markerRadius(5)
160159
.markerSymbol(.circle)
160+
.categories(["Java", "Swift", "Python", "Ruby", "PHP", "Go","C", "C#", "C++", "Perl", "R", "MATLAB", "SQL"])
161+
.legendEnabled(true)
161162

162163
if chartType == .areaspline {
163164
let gradientColorDic = AAGradientColor.linearGradient(
@@ -194,6 +195,8 @@ class BasicChartVC: UIViewController {
194195
aaChartModel!
195196
.markerSymbolStyle(.borderBlank)//Set the polyline connection point style to: white edge
196197
.markerRadius(6)
198+
.categories(["Java", "Swift", "Python", "Ruby", "PHP", "Go","C", "C#", "C++", "Perl", "R", "MATLAB", "SQL"])
199+
197200
if chartType == .spline {
198201
aaChartModel!
199202
.animationType(.swingFromTo)

AAInfographicsDemo/Demo/MixedChartVC.swift

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -772,13 +772,12 @@ class MixedChartVC: AABaseChartVC {
772772
AASeriesElement()
773773
.data([7.0, 6.9, 9.5, 9.6, 13.9, 14.5, 18.3, 18.2, 21.5, 25.2, 26.5, 23.3])
774774
.lineWidth(4)
775-
.shadow(
776-
AAShadow()
777-
.offsetX(15.0)
778-
.offsetY(15.0)
779-
.opacity(0.1)
780-
.width(9.0)
781-
.color(AAColor.red)
775+
.shadow(AAShadow()
776+
.offsetX(15.0)
777+
.offsetY(15.0)
778+
.opacity(0.1)
779+
.width(9.0)
780+
.color(AAColor.red)
782781
)
783782
])
784783
}

0 commit comments

Comments
 (0)