Skip to content

Commit 75fe59c

Browse files
committed
Fix #168 finally
1 parent 4177e26 commit 75fe59c

15 files changed

+232
-232
lines changed

AAInfographics/AAChartCreator/AASeriesElement.swift

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,28 @@
3232

3333
public class AASeriesElement: AAObject {
3434

35-
private var type: String? //A chart type series. If the type option is not specified, it is inherited from `chart.type`.
36-
private var name: String? //The name of the series as shown in the legend, tooltip etc.
37-
private var data: [Any]? //An array of data points for the series
38-
private var color: Any? //The main color or the series. In line type series it applies to the line and the point markers unless otherwise specified. In bar type series it applies to the bars unless a color is specified per point. The default value is pulled from the options.colors array.
39-
private var lineWidth: Float? //折线图、曲线图、直方折线图、折线填充图、曲线填充图、直方折线填充图的线条宽度
40-
private var borderWidth: Float? //柱形图、条形图、扇形图等图形的描边宽度
41-
private var borderColor: String? //柱形图、条形图、扇形图等图形的描边颜色
42-
private var fillColor: Any? //折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色
43-
private var fillOpacity: Float? //折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色透明度 Fill opacity for the area. Note that when you set an explicit fillColor, the fillOpacity is not applied. Instead, you should define the opacity in the fillColor with an rgba color definition. 默认是:0.75. https://api.hcharts.cn/highcharts#plotOptions.area.fillOpacity
44-
private var threshold: Float? //The threshold, also called zero level or base level. For line type series this is only used in conjunction with negativeColor. default:0.
45-
private var negativeColor: String? //The color for the parts of the graph or points that are below the threshold
46-
private var dashStyle: String? //A name for the dash style to use for the graph. Applies only to series type having a graph, like line, spline, area and scatter in case it has a lineWidth.
47-
private var dataLabels: AADataLabels? //Individual data label for each point. The options are the same as the ones for `plotOptions.series.dataLabels`.
48-
private var marker: AAMarker? //Enable or disable the point marker. If null, the markers are hidden when the data is dense, and shown for more widespread data points.
49-
private var step: Any? //Whether to apply steps to the line. Possible values are left, center and right.
50-
private var colorByPoint: Bool? //When using automatic point colors pulled from the `options.colors` collection, this option determines whether the chart should receive one color per series or one color per point.
51-
private var allowPointSelect: Bool? //Allow this series' points to be selected by clicking on the markers, bars or pie slices
52-
private var zIndex: Int? //Define the visual z index of the series.
53-
private var innerSize: String? //内部圆环半径大小占比(内部圆环半径/扇形图半径)
54-
private var shadow: Any?
55-
private var zones: [Any]?
56-
private var stack: String?
35+
public var type: String? //A chart type series. If the type option is not specified, it is inherited from `chart.type`.
36+
public var name: String? //The name of the series as shown in the legend, tooltip etc.
37+
public var data: [Any]? //An array of data points for the series
38+
public var color: Any? //The main color or the series. In line type series it applies to the line and the point markers unless otherwise specified. In bar type series it applies to the bars unless a color is specified per point. The default value is pulled from the options.colors array.
39+
public var lineWidth: Float? //折线图、曲线图、直方折线图、折线填充图、曲线填充图、直方折线填充图的线条宽度
40+
public var borderWidth: Float? //柱形图、条形图、扇形图等图形的描边宽度
41+
public var borderColor: String? //柱形图、条形图、扇形图等图形的描边颜色
42+
public var fillColor: Any? //折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色
43+
public var fillOpacity: Float? //折线填充图、曲线填充图、直方折线填充图等填充图类型的填充颜色透明度 Fill opacity for the area. Note that when you set an explicit fillColor, the fillOpacity is not applied. Instead, you should define the opacity in the fillColor with an rgba color definition. 默认是:0.75. https://api.hcharts.cn/highcharts#plotOptions.area.fillOpacity
44+
public var threshold: Float? //The threshold, also called zero level or base level. For line type series this is only used in conjunction with negativeColor. default:0.
45+
public var negativeColor: String? //The color for the parts of the graph or points that are below the threshold
46+
public var dashStyle: String? //A name for the dash style to use for the graph. Applies only to series type having a graph, like line, spline, area and scatter in case it has a lineWidth.
47+
public var dataLabels: AADataLabels? //Individual data label for each point. The options are the same as the ones for `plotOptions.series.dataLabels`.
48+
public var marker: AAMarker? //Enable or disable the point marker. If null, the markers are hidden when the data is dense, and shown for more widespread data points.
49+
public var step: Any? //Whether to apply steps to the line. Possible values are left, center and right.
50+
public var colorByPoint: Bool? //When using automatic point colors pulled from the `options.colors` collection, this option determines whether the chart should receive one color per series or one color per point.
51+
public var allowPointSelect: Bool? //Allow this series' points to be selected by clicking on the markers, bars or pie slices
52+
public var zIndex: Int? //Define the visual z index of the series.
53+
public var innerSize: String? //内部圆环半径大小占比(内部圆环半径/扇形图半径)
54+
public var shadow: Any?
55+
public var zones: [Any]?
56+
public var stack: String?
5757

5858
@discardableResult
5959
public func type(_ prop: AAChartType) -> AASeriesElement {
@@ -192,11 +192,11 @@
192192
}
193193

194194
public class AADataElement: AAObject {
195-
private var name: String?
196-
private var y: Float?
197-
private var color: Any?
198-
private var dataLabels: AADataLabels?
199-
private var marker: AAMarker?
195+
public var name: String?
196+
public var y: Float?
197+
public var color: Any?
198+
public var dataLabels: AADataLabels?
199+
public var marker: AAMarker?
200200

201201
@discardableResult
202202
public func name(_ prop: String) -> AADataElement {
@@ -230,11 +230,11 @@ public class AADataElement: AAObject {
230230
}
231231

232232
public class AAShadow: AAObject {
233-
private var color: String?
234-
private var offsetX: Float?
235-
private var offsetY: Float?
236-
private var opacity: Float?
237-
private var width: Float?
233+
public var color: String?
234+
public var offsetX: Float?
235+
public var offsetY: Float?
236+
public var opacity: Float?
237+
public var width: Float?
238238

239239
@discardableResult
240240
public func color(_ prop: String) -> AAShadow {

AAInfographics/AAOptionsModel/AACrosshair.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
import UIKit
3434

3535
public class AACrosshair: AAObject {
36-
private var dashStyle: String? //准星线样式
37-
private var color: String? //准星线颜色
38-
private var width: Float? //准星线宽度
36+
public var dashStyle: String? //准星线样式
37+
public var color: String? //准星线颜色
38+
public var width: Float? //准星线宽度
3939

4040
@discardableResult
4141
public func dashStyle(_ prop: AALineDashStyleType) -> AACrosshair {

AAInfographics/AAOptionsModel/AADataLabels.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@
3333
import UIKit
3434

3535
public class AADataLabels: AAObject {
36-
private var enabled: Bool?
37-
private var style: AAStyle?
38-
private var format: String?
39-
private var rotation: Float?
40-
private var allowOverlap: Bool?
41-
private var useHTML: Bool?
42-
private var distance: Float?
43-
private var verticalAlign: String?
44-
private var x: Float?
45-
private var y: Float?
46-
private var color: String?
47-
private var backgroundColor: String?
48-
private var borderColor: String?
49-
private var borderRadius: Float?
50-
private var borderWidth: Float?
51-
private var shape: String?
36+
public var enabled: Bool?
37+
public var style: AAStyle?
38+
public var format: String?
39+
public var rotation: Float?
40+
public var allowOverlap: Bool?
41+
public var useHTML: Bool?
42+
public var distance: Float?
43+
public var verticalAlign: String?
44+
public var x: Float?
45+
public var y: Float?
46+
public var color: String?
47+
public var backgroundColor: String?
48+
public var borderColor: String?
49+
public var borderRadius: Float?
50+
public var borderWidth: Float?
51+
public var shape: String?
5252

5353
@discardableResult
5454
public func enabled(_ prop: Bool?) -> AADataLabels {
@@ -151,10 +151,10 @@ public class AADataLabels: AAObject {
151151
}
152152

153153
public class AAStyle: AAObject {
154-
private var color: String?
155-
private var fontSize: String?
156-
private var fontWeight: String?
157-
private var textOutline: String?
154+
public var color: String?
155+
public var fontSize: String?
156+
public var fontWeight: String?
157+
public var textOutline: String?
158158

159159
@discardableResult
160160
public func color(_ prop: String?) -> AAStyle {

AAInfographics/AAOptionsModel/AALabel.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
import UIKit
3333

3434
public class AALabel: AAObject {
35-
private var align :String?//轴标签的对齐方式,可用的值有 "left"、"center" 及 "right"。默认值是根据坐标轴的位置(在图表中的位置)即标签的旋转角度进行智能判断的。 默认是:center.
36-
private var rotation: Float?//轴标签的旋转角度 默认是:0.
37-
private var text: String?//文字
38-
private var textAlign: String?//文字对齐
39-
private var useHTML: Bool?//HTML渲染
40-
private var verticalAlign: String?//竖直对齐
41-
private var style: AAStyle?//轴标签的 CSS 样式
42-
private var x: Float?//相对于坐标轴刻度线的水平偏移。 默认是:0.
43-
private var y: Float?//相对于坐标轴刻度线的垂直平偏移。 默认是:null.
35+
public var align :String?//轴标签的对齐方式,可用的值有 "left"、"center" 及 "right"。默认值是根据坐标轴的位置(在图表中的位置)即标签的旋转角度进行智能判断的。 默认是:center.
36+
public var rotation: Float?//轴标签的旋转角度 默认是:0.
37+
public var text: String?//文字
38+
public var textAlign: String?//文字对齐
39+
public var useHTML: Bool?//HTML渲染
40+
public var verticalAlign: String?//竖直对齐
41+
public var style: AAStyle?//轴标签的 CSS 样式
42+
public var x: Float?//相对于坐标轴刻度线的水平偏移。 默认是:0.
43+
public var y: Float?//相对于坐标轴刻度线的垂直平偏移。 默认是:null.
4444

4545
@discardableResult
4646
public func align(_ prop: String) -> AALabel {

AAInfographics/AAOptionsModel/AALabels.swift

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
import UIKit
3434

3535
public class AALabels: AAObject {
36-
private var align :String?//轴标签的对齐方式,可用的值有 "left"、"center" 及 "right"。默认值是根据坐标轴的位置(在图表中的位置)即标签的旋转角度进行智能判断的。 默认是:center.
37-
private var autoRotation: AnyObject? //只针对水平轴有效,允许在防止轴标签重叠时自动旋转轴标签的角度。当空间足够时,轴标签不会被旋转。当图表变小时(主要是宽度变小) ,轴标签开始旋转对应的角度,然后会依次删除间隔的轴标签并尝试旋转数组中的角度。可以通过将此参数设置为 false 来关闭轴标签旋转(这将导致标签自动换行)。 默认是:[-45].
38-
private var autoRotationLimit: Float?//当每个分类的宽度比该参数的值大很多(像素)时,轴标签将不会被自动旋转,而是以换行的形式展示轴标签。 当轴标签包含多个短词时换行展示轴标签可以使得轴标签有足够的空间,所以设置合理的自动旋转下限是非常有意义的。 默认是:80.
39-
private var distance: Float?//只针对极地图有效,定义周标签与绘图区边缘的距离。 默认是:15.
40-
private var enabled: Bool?//是否显示坐标轴标签 默认是:true.
41-
private var format: String?//坐标轴格式化字符串。 默认是:{value}.
42-
private var formatter: String?//坐标轴格式化字符串。 默认是:{value}.
43-
private var padding: Float?//轴标签的内间距,作用是保证轴标签之间有空隙。 默认是:5.
44-
private var rotation: Float?//轴标签的旋转角度 默认是:0.
45-
private var staggerLines: Int?//只针对水平轴有效,定义轴标签显示行数。
46-
private var step: Int?//显示 n 的倍数标签,例如设置为 2 则表示标签间隔一个轴标签显示。默认情况下,为了避免轴标签被覆盖,该参数会根据情况自动计算。可以通过设置此参数为 1 来阻止自动计算。
47-
private var style: AAStyle?//轴标签的 CSS 样式
48-
private var x: Float?//相对于坐标轴刻度线的水平偏移。 默认是:0.
49-
private var y: Float?//相对于坐标轴刻度线的垂直平偏移。 默认是:null.
50-
private var useHTML: Bool?//HTML渲染
36+
public var align :String?//轴标签的对齐方式,可用的值有 "left"、"center" 及 "right"。默认值是根据坐标轴的位置(在图表中的位置)即标签的旋转角度进行智能判断的。 默认是:center.
37+
public var autoRotation: AnyObject? //只针对水平轴有效,允许在防止轴标签重叠时自动旋转轴标签的角度。当空间足够时,轴标签不会被旋转。当图表变小时(主要是宽度变小) ,轴标签开始旋转对应的角度,然后会依次删除间隔的轴标签并尝试旋转数组中的角度。可以通过将此参数设置为 false 来关闭轴标签旋转(这将导致标签自动换行)。 默认是:[-45].
38+
public var autoRotationLimit: Float?//当每个分类的宽度比该参数的值大很多(像素)时,轴标签将不会被自动旋转,而是以换行的形式展示轴标签。 当轴标签包含多个短词时换行展示轴标签可以使得轴标签有足够的空间,所以设置合理的自动旋转下限是非常有意义的。 默认是:80.
39+
public var distance: Float?//只针对极地图有效,定义周标签与绘图区边缘的距离。 默认是:15.
40+
public var enabled: Bool?//是否显示坐标轴标签 默认是:true.
41+
public var format: String?//坐标轴格式化字符串。 默认是:{value}.
42+
public var formatter: String?//坐标轴格式化字符串。 默认是:{value}.
43+
public var padding: Float?//轴标签的内间距,作用是保证轴标签之间有空隙。 默认是:5.
44+
public var rotation: Float?//轴标签的旋转角度 默认是:0.
45+
public var staggerLines: Int?//只针对水平轴有效,定义轴标签显示行数。
46+
public var step: Int?//显示 n 的倍数标签,例如设置为 2 则表示标签间隔一个轴标签显示。默认情况下,为了避免轴标签被覆盖,该参数会根据情况自动计算。可以通过设置此参数为 1 来阻止自动计算。
47+
public var style: AAStyle?//轴标签的 CSS 样式
48+
public var x: Float?//相对于坐标轴刻度线的水平偏移。 默认是:0.
49+
public var y: Float?//相对于坐标轴刻度线的垂直平偏移。 默认是:null.
50+
public var useHTML: Bool?//HTML渲染
5151

5252
@discardableResult
5353
public func align(_ prop: String) -> AALabels {

AAInfographics/AAOptionsModel/AALegend.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ public enum AAChartLegendVerticalAlignType: String {
4545
}
4646

4747
public class AALegend: AAObject {
48-
private var layout: String? //图例数据项的布局。布局类型: "horizontal" 或 "vertical" 即水平布局和垂直布局 默认是:horizontal.
49-
private var align: String? //设定图例在图表区中的水平对齐方式,合法值有left,center 和 right。
50-
private var verticalAlign: String? //设定图例在图表区中的垂直对齐方式,合法值有 top,middle 和 bottom。垂直位置可以通过 y 选项做进一步设定。
51-
private var enabled: Bool?
52-
private var borderColor: String?
53-
private var borderWidth: Float?
54-
private var itemMarginTop: Float? //图例的每一项的顶部外边距,单位px。 默认是:0.
55-
private var itemMarginBottom: Float?
56-
private var itemStyle: AAItemStyle?
57-
private var symbolHeight: Float?
58-
private var symbolPadding: Float?
59-
private var symbolRadius: Float?
60-
private var symbolWidth: Float?
61-
private var x: Float?
62-
private var y: Float?
48+
public var layout: String? //图例数据项的布局。布局类型: "horizontal" 或 "vertical" 即水平布局和垂直布局 默认是:horizontal.
49+
public var align: String? //设定图例在图表区中的水平对齐方式,合法值有left,center 和 right。
50+
public var verticalAlign: String? //设定图例在图表区中的垂直对齐方式,合法值有 top,middle 和 bottom。垂直位置可以通过 y 选项做进一步设定。
51+
public var enabled: Bool?
52+
public var borderColor: String?
53+
public var borderWidth: Float?
54+
public var itemMarginTop: Float? //图例的每一项的顶部外边距,单位px。 默认是:0.
55+
public var itemMarginBottom: Float?
56+
public var itemStyle: AAItemStyle?
57+
public var symbolHeight: Float?
58+
public var symbolPadding: Float?
59+
public var symbolRadius: Float?
60+
public var symbolWidth: Float?
61+
public var x: Float?
62+
public var y: Float?
6363

6464
@discardableResult
6565
public func layout(_ prop: AAChartLegendlLayoutType?) -> AALegend {
@@ -152,11 +152,11 @@ public class AALegend: AAObject {
152152
}
153153

154154
public class AAItemStyle: AAObject {
155-
private var color: String?
156-
private var cursor: String?
157-
private var pointer: String?
158-
private var fontSize: String?
159-
private var fontWeight: AAChartFontWeightType?
155+
public var color: String?
156+
public var cursor: String?
157+
public var pointer: String?
158+
public var fontSize: String?
159+
public var fontWeight: AAChartFontWeightType?
160160

161161
@discardableResult
162162
public func color(_ prop: String) -> AAItemStyle {

AAInfographics/AAOptionsModel/AAMarker.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
import UIKit
3434

3535
public class AAMarker: AAObject {
36-
private var radius: Int?
37-
private var symbol: String?
38-
private var fillColor: String?
39-
private var lineWidth: Float?
40-
private var lineColor: Any?
36+
public var radius: Int?
37+
public var symbol: String?
38+
public var fillColor: String?
39+
public var lineWidth: Float?
40+
public var lineColor: Any?
4141

4242
@discardableResult
4343
public func radius(_ prop: Int?) -> AAMarker {

0 commit comments

Comments
 (0)