mac
2024-06-12 12d6db5780d8a2121a3bef2d58bf897b24ff552a
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
package com.github.AAChartModel.AAChartCore.AAOptionsModel;
 
import com.github.AAChartModel.AAChartCore.AATools.AAJSStringPurer;
 
public class AALabel {
    public String  align;//标签的对齐方式,可用的值有 "left"、"center" 及 "right"。默认值是根据坐标轴的位置(在图表中的位置)即标签的旋转角度进行智能判断的。 默认是:center.
    public Number  rotation;//标签的旋转角度 默认是:0.
    public String  text;//文字
    public String  textAlign;//文字对齐
    public Boolean useHTML;//HTML渲染
    public String  verticalAlign;//竖直对齐
    public AAStyle style;//轴标签的 CSS 样式
    public Number  x;//水平偏移
    public Number  y;// 竖直偏移
    public String  format;//格式化字符串
    public String  formatter;//格式化函数
 
    public AALabel align(String prop) {
        align = prop;
        return this;
    }
 
    public AALabel rotation(Number prop) {
        rotation = prop;
        return this;
    }
 
    public AALabel text(String prop) {
        text = prop;
        return this;
    }
 
    public AALabel textAlign(String prop) {
        textAlign = prop;
        return this;
    }
 
    public AALabel useHTML(Boolean prop) {
        useHTML = prop;
        return this;
    }
 
    public AALabel verticalAlign(String prop) {
        verticalAlign = prop;
        return this;
    }
 
    public AALabel style(AAStyle prop) {
        style = prop;
        return this;
    }
 
    public AALabel x(Number prop) {
        x = prop;
        return this;
    }
 
    public AALabel y(Number prop) {
        y = prop;
        return this;
    }
 
    public AALabel format(String prop) {
        format = prop;
        return this;
    }
 
    public AALabel formatter(String prop) {
        formatter = AAJSStringPurer.pureAnonymousJSFunctionString(prop);
        return this;
    }
}