Skip to content

Commit deaa45e

Browse files
authored
Merge pull request #12 from AAChartModel/dev
Dev
2 parents eef2eaf + 10b2878 commit deaa45e

File tree

5 files changed

+41
-3
lines changed

5 files changed

+41
-3
lines changed

AAInfographics-Pro.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'AAInfographics-Pro'
3-
s.version = '0.0.4'
3+
s.version = '9.0.0'
44
s.summary = '📈📊👑👑👑AAChartKit-Swift-Pro is a professional version of AAChartKit-Swift, it is an elegant and friendly chart framework for iOS, iPadOS, macOS. AAChartKit-Swift-Pro is a more powerful data visualization framework that supports more types beautiful chart like bellcurve, bullet, columnpyramid, cylinder, dependencywheel, heatmap, histogram, networkgraph, organization, packedbubble, pareto, sankey, series, solidgauge, streamgraph, sunburst, tilemap, timeline, treemap, variablepie, variwide, vector, venn, windbarb, wordcloud, xrange charts and so on.'
55
s.homepage = 'https://github.com/AAChartModel/AAChartKit-Swift-Pro'
66
s.license = 'Just For Test Demo'

AAInfographics-Pro/AAOptionsModel/AASeries.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public class AAPoint: AAObject {
275275
}
276276
}
277277

278-
278+
//https://api.highcharts.com/class-reference/Highcharts.Point
279279
public class AAPointEvents: AAObject {
280280
public var click: String?
281281
public var mouseOver: String?

AAInfographics-ProDemo/Demo/DataSource/AAOptionsData.swift

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,42 @@ class AAOptionsData {
162162
return dataArr
163163
}
164164

165+
public class var xrange2Data: [Any] {
166+
func getSingleGroupCategoryDataElementArrayWithY(_ y: Int) -> [Any] {
167+
var dataArr = [Any]()
168+
169+
var x = 0
170+
var x2 = x + Int(arc4random()) % 10
171+
for _ in 0 ..< 50 {
172+
var dataElementDic = [String:Any]()
173+
dataElementDic["x"] = x
174+
dataElementDic["x2"] = x2
175+
dataElementDic["y"] = y
176+
177+
//添加随机生成的颜色, 用于测试
178+
let R = arc4random_uniform(256)
179+
let G = arc4random_uniform(256)
180+
let B = arc4random_uniform(256)
181+
let rgbaColorStr = AARgba(Int(R), Int(G), Int(B), 0.9)
182+
dataElementDic["color"] = rgbaColorStr
183+
184+
dataArr.append(dataElementDic)
185+
x = x2 + Int(arc4random()) % 1000
186+
x2 = x + Int(arc4random()) % 2000
187+
}
188+
return dataArr
189+
}
190+
191+
var dataArr = [Any]()
192+
for y in 0 ..< 20 {
193+
let data = getSingleGroupCategoryDataElementArrayWithY(y)
194+
for dataElement in data {
195+
dataArr.append(dataElement)
196+
}
197+
}
198+
return dataArr
199+
}
200+
165201
public class var vectorData : [Any] {
166202
getJsonDataWithJsonFileName("vectorData")
167203
}

AAInfographics-ProDemo/Demo/MainVC.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class MainVC: UIViewController {
100100
"xrangeChart---X轴范围图||甘特图||条码图",
101101
"histogramChart---直方混合散点图📊",
102102
"bellcurveChart---钟形曲线混合散点图🔔",
103-
"bulletChart---子弹图"
103+
"bulletChart---子弹图",
104+
"inverted xrangeChart---倒转的X轴范围图||甘特图||条码图",
104105
],
105106
// "MoreProType | 更多高级类型图表",
106107
[

AAInfographics-ProDemo/Demo/ViewController/AAColumnVariantChartVC.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class AAColumnVariantChartVC: AABaseChartVC {
2424
case 5: return AAColumnVariantChartComposer.histogramChart()
2525
case 6: return AAColumnVariantChartComposer.bellcurveChart()
2626
case 7: return AAColumnVariantChartComposer.bulletChart()
27+
case 8: return AAColumnVariantChartComposer.invertedXrangeChart()
2728
default: return nil
2829
}
2930
}

0 commit comments

Comments
 (0)