Skip to content

Commit 5fefbc5

Browse files
committed
Fix #167
1 parent 67c7b03 commit 5fefbc5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

AAInfographicsDemo/Demo/AdditionalContent/DrawChartWithAAOptionsVC.swift

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,18 @@ class DrawChartWithAAOptionsVC: UIViewController {
167167

168168
private func yAxisOnTheRightSideChart() -> AAOptions {
169169
let aaChartModel = AAChartModel()
170-
.chartType(.column)//图表类型
171-
.title("Y轴在右侧的柱状图📊")//图表主标题
172-
.subtitle("设置 aaOptions.yAxis.opposite = YES 即可")//图表副标题
170+
.chartType(.line)//图表类型
171+
.title("yAxis on the right side 📈")//图表主标题
172+
.subtitle("set aaOptions.yAxis.opposite = YES")//图表副标题
173+
.symbolStyle(.borderBlank)
174+
.categories(["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])
175+
.markerRadius(8)
173176
.series([
174177
AASeriesElement()
175178
.name("2020")
176-
.color(AAGradientColor.cottonCandy)
177-
.data([3.9, 4.2, 5.7, 8.5, 11.9, 15.2,])
179+
.lineWidth(5.5)
180+
.color(AAGradientColor.sanguine)
181+
.data([7.0, 6.9, 2.5, 14.5, 18.2, 21.5, 5.2, 26.5, 23.3, 45.3, 13.9, 9.6])
178182

179183
]
180184
)

0 commit comments

Comments
 (0)