Skip to content

Commit 3b5c963

Browse files
committed
Optimize details
1 parent 796e0ac commit 3b5c963

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

AAInfographics/AAOptionsModel/AAPlotOptions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,20 +457,20 @@ public class AAPie: AAObject {
457457
}
458458

459459
public class AABubble: AAObject {
460-
public var minSize: Float?
461-
public var maxSize: Float?
460+
public var minSize: Any? // (String | Number)
461+
public var maxSize: Any? // (String | Number)
462462
public var zMin: Float?
463463
public var zMax: Float?
464464
public var dataLabels:AADataLabels?
465465

466466
@discardableResult
467-
public func minSize(_ prop: Float?) -> AABubble {
467+
public func minSize(_ prop: Any?) -> AABubble {
468468
minSize = prop
469469
return self
470470
}
471471

472472
@discardableResult
473-
public func maxSize(_ prop: Float?) -> AABubble {
473+
public func maxSize(_ prop: Any?) -> AABubble {
474474
maxSize = prop
475475
return self
476476
}

AAInfographicsDemo/Demo/AdditionalContent1/DrawChartWithAAOptionsVC.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,7 @@ function () {
18581858
return aaOptions
18591859
}
18601860

1861+
//https://github.com/AAChartModel/AAChartKit-Swift/issues/242
18611862
private func adjustBubbleChartMinAndMax() -> AAOptions {
18621863
let aaChartModel = AAChartModel()
18631864
.chartType(.bubble)

0 commit comments

Comments
 (0)