Skip to content

Commit 796e0ac

Browse files
committed
Fix #242 => Append chart sample adjustBubbleChartMinAndMax
1 parent d7a0dbb commit 796e0ac

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

AAInfographicsDemo/Demo/AdditionalContent1/DrawChartWithAAOptionsVC.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class DrawChartWithAAOptionsVC: AABaseChartVC {
7272
case 29: return configureHexagonRadarChart()//带有颜色标志带の六角形雷达图
7373
case 30: return configureSpiderWebRadarChart()//带有颜色标志带の🕸蜘蛛网状雷达图
7474
case 31: return disableMixedChartInactiveAnimationEffect()//禁用混合图表的 inactive 动画效果
75+
case 32: return adjustBubbleChartMinAndMax()//调整气泡图的 min 和 max 相关属性
7576

7677

7778
default:
@@ -1856,6 +1857,45 @@ function () {
18561857

18571858
return aaOptions
18581859
}
1860+
1861+
private func adjustBubbleChartMinAndMax() -> AAOptions {
1862+
let aaChartModel = AAChartModel()
1863+
.chartType(.bubble)
1864+
.title("AACHARTKIT BUBBLES")
1865+
.subtitle("JUST FOR FUN")
1866+
.yAxisTitle("")
1867+
.yAxisGridLineWidth(0)
1868+
.colorsTheme(["#0c9674","#7dffc0","#d11b5f","#facd32","#ffffa0","#EA007B"])
1869+
.series([
1870+
AASeriesElement()
1871+
.name("BubbleOne")
1872+
.data([
1873+
[97, 36, 50],
1874+
[94, 74, 50],
1875+
[68, 76, 50],
1876+
[64, 87, 50],
1877+
[68, 27, 49],
1878+
[74, 99, 51],
1879+
[71, 93, 55],
1880+
[51, 69, 60],
1881+
[38, 23, 50],
1882+
[57, 86, 50],
1883+
[33, 24, 51]
1884+
])
1885+
]
1886+
)
1887+
1888+
let aaOptions = AAOptionsConstructor.configureChartOptions(aaChartModel)
1889+
1890+
aaOptions.plotOptions?
1891+
.bubble(AABubble()
1892+
.minSize(0)
1893+
.maxSize(100)
1894+
.zMin(0)
1895+
.zMax(100))
1896+
1897+
return aaOptions
1898+
}
18591899

18601900
}
18611901

AAInfographicsDemo/Demo/MainVC.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class MainVC: UIViewController {
225225
"Hexagon Radar Char With PlotBands----带有颜色标志带の六角形雷达图",
226226
"Spider Web Radar Chart With PlotBands----带有颜色标志带の🕸蜘蛛网状雷达图",
227227
"Disable Mixed Chart Inactive Animation Effect----禁用混合图表的 inactive 动画效果",
228+
"Adjust Bubble Chart Min And Max----调整气泡图的 min 和 max 相关属性",
228229
],
229230
/*Custom Tooltip With JavaScript Formatter Function */
230231
[

0 commit comments

Comments
 (0)