2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
package com.landtool.lanbase.common.utils.ppt;
 
import java.util.List;
 
/**
 * @author lanbase
 * @Description: TODO(图表系列数据)
 * @date 2017-11-30 11:07
 */
public class GraphData {
 
    // 圆饼图
    public static final String GRAPH_PIE = "pie";
    // 柱状图
    public static final String GRAPH_BAR = "bar";
    // 线性图
    public static final String GRAPH_LINE = "line";
    // 面积图
    public static final String GRAPH_AREA = "area";
    // 雷达图
    public static final String GRAPH_RADAR = "radar";
 
    // 图形标题
    private String title;
 
    // 系列值
    private List<SeriesData> serList;
 
    public GraphData(String title, List<SeriesData> serList) {
        this.title = title;
        this.serList = serList;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public List<SeriesData> getSerList() {
        return serList;
    }
 
    public void setSerList(List<SeriesData> serList) {
        this.serList = serList;
    }
 
}
 
class SeriesData {
    // 系列名称
    private String serName;
 
    // 系列值
    private double serVal;
 
    public SeriesData(String serName, double serVal) {
        this.serName = serName;
        this.serVal = serVal;
    }
 
    public String getSerName() {
        return serName;
    }
 
    public void setSerName(String serName) {
        this.serName = serName;
    }
 
    public double getSerVal() {
        return serVal;
    }
 
    public void setSerVal(double serVal) {
        this.serVal = serVal;
    }
 
}