wangrong
2026-08-30 4c949c0dc9bcae785c281c9d8125295f09810b15
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
/**
 * 图表样式设置
 */
declare interface ChartStyle {
  /**
   * 标题样式设置
   */
  text: ChartTextStyle
  /**
   * 图例设置
   */
  legend: ChartLegendStyle
  /**
   * 横轴设置
   */
  xAxis: ChartAxisStyle
  /**
   * 值轴设置
   */
  yAxis: ChartAxisStyle
  /**
   * 副值轴设置
   */
  yAxisExt: ChartAxisStyle
  /**
   * 其他样式设置
   */
  misc: ChartMiscStyle
  background: {
    color: string
    alpha: string
  }
}
 
/**
 * 标题样式设置
 */
declare interface ChartTextStyle {
  /**
   * 显隐
   */
  show: boolean
  /**
   * 字体大小
   */
  fontSize: number
  /**
   * 颜色
   */
  color: string
  /**
   * 水平位置
   */
  hPosition: string
  /**
   * 垂直位置
   */
  vPosition: string
  /**
   * 斜体
   */
  isItalic: boolean
  /**
   * 加粗
   */
  isBolder: boolean
  /**
   * 备注显隐
   */
  remarkShow: boolean
  /**
   * 备注内容
   */
  remark: string
  /**
   * 备注背景颜色
   */
  remarkBackgroundColor: string
  /**
   * 字体
   */
  fontFamily: string
  /**
   * 字间距
   */
  letterSpace: string
  /**
   * 阴影
   */
  fontShadow: boolean
}
 
/**
 * 图例设置
 */
declare interface ChartLegendStyle {
  /**
   * 显隐
   */
  show: boolean
  /**
   * 水平位置
   */
  hPosition: string
  /**
   * 垂直位置
   */
  vPosition: string
  /**
   * 排列方向
   */
  orient: string
  /**
   * 图例形状
   */
  icon: string
  /**
   * 字体颜色
   */
  color: string
  /**
   * 字体大小
   */
  fontSize: number
  /**
   * 图例大小
   */
  size: number
  /**
   * 子弹图显示区间背景
   */
  showRange: true
  /**
   * 排序方式
   */
  sort: 'none' | 'asc' | 'desc' | 'custom'
  /**
   * 自定义排序
   */
  customSort: string[]
}
 
/**
 * 图表轴设置
 */
declare interface ChartAxisStyle {
  /**
   * 是否显示轴线
   */
  show: boolean
  /**
   * 轴线位置
   */
  position: string
  /**
   * 是否显示轴线标题名称
   */
  nameShow: boolean
  /**
   * 轴线标题名称
   */
  name: string
  /**
   * 轴线标题字体颜色
   */
  color: string
  /**
   * 轴线标题字体大小
   */
  fontSize: number
  /**
   * 轴线标签设置
   */
  axisLabel: AxisLabel
  /**
   * 轴线设置
   */
  axisLine: AxisLine
  /**
   * 网格线设置
   */
  splitLine: AxisLine
  /**
   *  轴值设置
   */
  axisValue: AxisValue
  /**
   * (值)轴线格式化设置
   */
  axisLabelFormatter: BaseFormatter
}
/**
 * 轴线标签
 */
declare interface AxisLabel {
  /**
   * 显隐
   */
  show: boolean
  /**
   * 标签颜色
   */
  color: string
  /**
   * 字体大小
   */
  fontSize: number
  /**
   * 旋转角度
   */
  rotate: number
  /**
   * 格式化设置
   */
  formatter: string
  /**
   * 长度限制
   */
  lengthLimit: number
}
/**
 * 轴线条设置
 */
declare interface AxisLine {
  /**
   * 轴线显示
   */
  show: boolean
  /**
   * 轴线样式设置
   */
  lineStyle: LineStyle
}
/**
 * 轴线条样式
 */
declare interface LineStyle {
  /**
   * 轴线颜色
   */
  color: string
  /**
   * 轴线线条宽度
   */
  width: number
  style: string
}
/**
 * 轴值设置
 */
declare interface AxisValue {
  /**
   * 自动轴值
   */
  auto: boolean
  /**
   * 最小值
   */
  min: number
  /**
   * 最大值
   */
  max: number
  /**
   * 刻度数
   */
  split: number
  /**
   * 刻度数
   */
  splitCount: number
}
/**
 * 其他样式设置
 */
declare interface ChartMiscStyle {
  /**
   * 名称显示
   */
  showName: boolean
  /**
   * 颜色
   */
  color: string
  /**
   * 字体大小
   */
  fontSize: number
  /**
   * 轴颜色
   */
  axisColor: string
  splitNumber: number
  axisLine: SplitAxisLine
  axisTick: SplitAxisTick
  axisLabel: SplitAxisLabel
  splitLine: SplitAxisLine
  splitArea: SplitSplitArea
  /**
   *  轴值设置
   */
  axisValue: AxisValue
}
declare interface SplitLineStyle {
  color: string
  width: number
  type: string
}
declare interface SplitAxisLine {
  show: boolean
  lineStyle: SplitLineStyle
}
declare interface SplitAxisTick {
  show: boolean
  length: number
  lineStyle: SplitLineStyle
}
declare interface SplitAxisLabel {
  show: boolean
  rotate: number
  margin: number
  color: string
  fontSize: string
  formatter: string
}
declare interface SplitSplitArea {
  show: boolean
}