wjc
2025-03-25 579da4e0056080c878ed4d0a479a631db9610ee1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.github.AAChartModel.AAChartCore.AAOptionsModel;
 
public class AAColumn {
    public String name;
    public Object[] data;
    public String color;
    public Boolean grouping;//Whether to group non-stacked columns or to let them render independent of each other. Non-grouped columns will be laid out individually and overlap each other. 默认是:true.
    public Float pointPadding;//Padding between each column or bar, in x axis units. 默认是:0.1.
    public Float pointPlacement;//Padding between each column or bar, in x axis units. 默认是:0.1.
    public Float groupPadding;//Padding between each value groups, in x axis units. 默认是:0.2.
    public Number borderWidth;
    public Boolean colorByPoint;//对每个不同的点设置颜色(当图表类型为 AAColumn 时,设置为 AAColumn 对象的属性,当图表类型为 bar 时,应该设置为 bar 对象的属性才有效)
    public AADataLabels dataLabels;
    public String stacking;
    public Number borderRadius;
    public Integer yAxis;
 
    public AAColumn name(String prop) {
        name = prop;
        return this;
    }
 
    public AAColumn data(Object[] prop) {
        data = prop;
        return this;
    }
 
    public AAColumn color(String prop) {
        color = prop;
        return this;
    }
 
    public AAColumn grouping(Boolean prop) {
        grouping = prop;
        return this;
    }
 
    public AAColumn pointPadding(Float prop) {
        pointPadding = prop;
        return this;
    }
 
    public AAColumn pointPlacement(Float prop) {
        pointPlacement = prop;
        return this;
    }
 
    public AAColumn groupPadding(Float prop) {
        groupPadding = prop;
        return this;
    }
 
    public AAColumn borderWidth(Number prop) {
        borderWidth = prop;
        return this;
    }
 
    public AAColumn colorByPoint(Boolean prop) {
        colorByPoint = prop;
        return this;
    }
 
    public AAColumn dataLabels(AADataLabels prop) {
        dataLabels = prop;
        return this;
    }
 
    public AAColumn stacking(String prop) {
        stacking = prop;
        return this;
    }
 
    public AAColumn borderRadius(Number prop) {
        borderRadius = prop;
        return this;
    }
 
    public AAColumn yAxis(Integer prop) {
        yAxis = prop;
        return this;
    }
 
}