wangrong
2026-08-30 761e5c5fa871959f60e15c971c8d83f2b53d0af5
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
package io.dataease.extensions.view.dto;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.dataease.extensions.datasource.dto.CalParam;
import io.dataease.extensions.view.filter.FilterTreeObj;
import lombok.Data;
 
import java.io.Serializable;
import java.util.List;
import java.util.Map;
 
/**
 * 图表base dto,与core_table_view一致
 *
 * @author fit2cloud
 * @since 2023-04-23
 */
@Data
public class ChartViewBaseDTO implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
 
    /**
     * 标题
     */
    private String title;
 
    /**
     * 场景ID chart_type为private的时候 是仪表板id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sceneId;
 
    /**
     * 数据集表ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tableId;
 
    /**
     * 图表类型
     */
    private String type;
 
    /**
     * 图表渲染方式
     */
    private String render;
 
    /**
     * 展示结果
     */
    private Integer resultCount;
 
    /**
     * 展示模式
     */
    private String resultMode;
 
    /**
     * 横轴field
     */
    @JsonProperty("xAxis")
    private List<ChartViewFieldDTO> xAxis;
 
    /**
     * 横轴field ext
     */
    @JsonProperty("xAxisExt")
    private List<ChartViewFieldDTO> xAxisExt;
 
    /**
     * 纵轴field
     */
    @JsonProperty("yAxis")
    private List<ChartViewFieldDTO> yAxis;
 
    /**
     * 副轴
     */
    @JsonProperty("yAxisExt")
    private List<ChartViewFieldDTO> yAxisExt;
 
    /**
     * 堆叠项
     */
    private List<ChartViewFieldDTO> extStack;
 
    /**
     * 气泡大小
     */
    private List<ChartViewFieldDTO> extBubble;
 
    /**
     * 动态标签
     */
    private List<ChartViewFieldDTO> extLabel;
 
    /**
     * 动态提示
     */
    private List<ChartViewFieldDTO> extTooltip;
 
    /**
     * 图形属性
     */
    private Map<String, Object> customAttr;
 
    /**
     * 移动端图形属性
     */
    private Map<String, Object> customAttrMobile;
 
    /**
     * 组件样式
     */
    private Map<String, Object> customStyle;
    /**
     * 移动端组件样式
     */
    private Map<String, Object> customStyleMobile;
 
    /**
     * 结果过滤
     */
    private FilterTreeObj customFilter;
 
    /**
     * 钻取字段
     */
    private List<ChartViewFieldDTO> drillFields;
 
    /**
     * 高级
     */
    private Map<String, Object> senior;
 
    /**
     * 创建人ID
     */
    private String createBy;
 
    /**
     * 创建时间
     */
    private Long createTime;
 
    /**
     * 更新时间
     */
    private Long updateTime;
 
    /**
     * 缩略图
     */
    private String snapshot;
 
    /**
     * 样式优先级 panel 仪表板 view 图表
     */
    private String stylePriority;
 
    /**
     * 图表类型 public 公共 历史可复用的图表,private 私有 专属某个仪表板
     */
    private String chartType;
 
    /**
     * 是否插件
     */
    private Boolean isPlugin;
 
    /**
     * 数据来源 template 模板数据 dataset 数据集数据
     */
    private String dataFrom;
 
    /**
     * 图表字段集合
     */
    private List<ChartViewFieldDTO> viewFields;
 
    /**
     * 是否开启刷新
     */
    private Boolean refreshViewEnable;
 
    /**
     * 刷新时间单位
     */
    private String refreshUnit;
 
    /**
     * 刷新时间
     */
    private Integer refreshTime;
 
    /**
     * 是否开启联动
     */
    private Boolean linkageActive;
 
    /**
     * 是否开启跳转
     */
    private Boolean jumpActive;
 
    /**
     * 区间条形图开启时间纬度开启聚合
     */
    private Boolean aggregate;
 
    /**
     * 流向地图起点名称
     */
    private List<ChartViewFieldDTO> flowMapStartName;
 
    /**
     * 流向地图终点名称
     */
    private List<ChartViewFieldDTO> flowMapEndName;
 
    /**
     * 计算字段参数值
     */
    private List<CalParam> calParams;
 
    private List<ChartViewFieldDTO> extColor;
    /**
     * 字段排序优先级
     */
    List<SortAxis> sortPriority;
 
}