|
32 | 32 |
|
33 | 33 | public class AASeriesElement: AAObject { |
34 | 34 |
|
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? |
57 | 57 |
|
58 | 58 | @discardableResult |
59 | 59 | public func type(_ prop: AAChartType) -> AASeriesElement { |
|
192 | 192 | } |
193 | 193 |
|
194 | 194 | 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? |
200 | 200 |
|
201 | 201 | @discardableResult |
202 | 202 | public func name(_ prop: String) -> AADataElement { |
@@ -230,11 +230,11 @@ public class AADataElement: AAObject { |
230 | 230 | } |
231 | 231 |
|
232 | 232 | 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? |
238 | 238 |
|
239 | 239 | @discardableResult |
240 | 240 | public func color(_ prop: String) -> AAShadow { |
|
0 commit comments