@10yun/cv-mobile-ui 0.5.9 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extend/permission.js +1 -2
- package/package.json +1 -1
- package/plugins/uni-richText.js +1 -1
- package/plugins/uni-socket.js +6 -8
- package/ui-cv/cv-base-audio/cv-base-audio.vue +278 -0
- package/ui-cv/cv-editor-parse/components/wxParseAudio.vue +2 -4
- package/ui-cv/cv-geo-local/cv-geo-local.vue +0 -1
- package/ui-cv/cv-layout-topbar/cv-layout-topbar.vue +238 -0
- package/ui-cv/cv-markdown-show/lib/highlight/uni-highlight.min.js +9001 -5133
- package/ui-sdks/sdk-app-update/img/logo.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
- package/{ui-cv/cv-update-app/cv-update-app.vue → ui-sdks/sdk-app-update/sdk-app-update.vue} +2 -2
- package/ui-sdks/sdk-app-update/xxxx +62 -0
- package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +113 -0
- package/ui-sdks/sdk-u-charts/app-echarts.min.js +23 -0
- package/ui-sdks/sdk-u-charts/config-echarts.js +420 -0
- package/ui-sdks/sdk-u-charts/config-ucharts.js +630 -0
- package/ui-sdks/sdk-u-charts/h5-echarts.min.js +23 -0
- package/ui-sdks/sdk-u-charts/u-charts.js +7398 -0
- package/ui-sdks/sdk-u-charts/u-charts.min.js +1 -0
- package/ui-sdks/sdk-webview-main/WebViewMain.vue +1 -0
- package/ui-sdks/sdk-webview-main/main.js +0 -0
- package/ui-sdks/sdk-webview-main/mixin.js +0 -0
- package/ui-uni/uParse/src/components/wxParseAudio.vue +26 -0
- package/ui-uni/uParse/src/components/wxParseImg.vue +94 -0
- package/ui-uni/uParse/src/components/wxParseTable.vue +55 -0
- package/ui-uni/uParse/src/components/wxParseTemplate0.vue +103 -0
- package/ui-uni/uParse/src/components/wxParseTemplate1.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate10.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate11.vue +86 -0
- package/ui-uni/uParse/src/components/wxParseTemplate2.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate3.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate4.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate5.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate6.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate7.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate8.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate9.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseVideo.vue +15 -0
- package/ui-uni/uParse/src/editor.css +495 -0
- package/ui-uni/uParse/src/libs/html2json.js +261 -0
- package/ui-uni/uParse/src/libs/htmlparser.js +156 -0
- package/ui-uni/uParse/src/libs/wxDiscode.js +195 -0
- package/ui-uni/uParse/src/wxParse.css +270 -0
- package/ui-uni/uParse/src/wxParse.vue +206 -0
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* uCharts®
|
|
3
|
+
* 高性能跨平台图表库,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360)、Vue、Taro等支持canvas的框架平台
|
|
4
|
+
* Copyright (c) 2021 QIUN®秋云 https://www.ucharts.cn All rights reserved.
|
|
5
|
+
* Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
6
|
+
* 复制使用请保留本段注释,感谢支持开源!
|
|
7
|
+
*
|
|
8
|
+
* uCharts®官方网站
|
|
9
|
+
* https://www.uCharts.cn
|
|
10
|
+
*
|
|
11
|
+
* 开源地址:
|
|
12
|
+
* https://gitee.com/uCharts/uCharts
|
|
13
|
+
*
|
|
14
|
+
* uni-app插件市场地址:
|
|
15
|
+
* http://ext.dcloud.net.cn/plugin?id=271
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
|
|
20
|
+
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
|
|
21
|
+
|
|
22
|
+
//事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
|
|
23
|
+
const formatDateTime = (timeStamp, returnType) => {
|
|
24
|
+
var date = new Date();
|
|
25
|
+
date.setTime(timeStamp * 1000);
|
|
26
|
+
var y = date.getFullYear();
|
|
27
|
+
var m = date.getMonth() + 1;
|
|
28
|
+
m = m < 10 ? '0' + m : m;
|
|
29
|
+
var d = date.getDate();
|
|
30
|
+
d = d < 10 ? '0' + d : d;
|
|
31
|
+
var h = date.getHours();
|
|
32
|
+
h = h < 10 ? '0' + h : h;
|
|
33
|
+
var minute = date.getMinutes();
|
|
34
|
+
var second = date.getSeconds();
|
|
35
|
+
minute = minute < 10 ? '0' + minute : minute;
|
|
36
|
+
second = second < 10 ? '0' + second : second;
|
|
37
|
+
if (returnType == 'full') {
|
|
38
|
+
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
|
|
39
|
+
}
|
|
40
|
+
if (returnType == 'y-m-d') {
|
|
41
|
+
return y + '-' + m + '-' + d;
|
|
42
|
+
}
|
|
43
|
+
if (returnType == 'h:m') {
|
|
44
|
+
return h + ':' + minute;
|
|
45
|
+
}
|
|
46
|
+
if (returnType == 'h:m:s') {
|
|
47
|
+
return h + ':' + minute + ':' + second;
|
|
48
|
+
}
|
|
49
|
+
return [y, m, d, h, minute, second];
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
|
54
|
+
type: [
|
|
55
|
+
'pie',
|
|
56
|
+
'ring',
|
|
57
|
+
'rose',
|
|
58
|
+
'word',
|
|
59
|
+
'funnel',
|
|
60
|
+
'map',
|
|
61
|
+
'arcbar',
|
|
62
|
+
'line',
|
|
63
|
+
'column',
|
|
64
|
+
'bar',
|
|
65
|
+
'area',
|
|
66
|
+
'radar',
|
|
67
|
+
'gauge',
|
|
68
|
+
'candle',
|
|
69
|
+
'mix',
|
|
70
|
+
'tline',
|
|
71
|
+
'tarea',
|
|
72
|
+
'scatter',
|
|
73
|
+
'bubble',
|
|
74
|
+
'demotype'
|
|
75
|
+
],
|
|
76
|
+
range: [
|
|
77
|
+
'饼状图',
|
|
78
|
+
'圆环图',
|
|
79
|
+
'玫瑰图',
|
|
80
|
+
'词云图',
|
|
81
|
+
'漏斗图',
|
|
82
|
+
'地图',
|
|
83
|
+
'圆弧进度条',
|
|
84
|
+
'折线图',
|
|
85
|
+
'柱状图',
|
|
86
|
+
'条状图',
|
|
87
|
+
'区域图',
|
|
88
|
+
'雷达图',
|
|
89
|
+
'仪表盘',
|
|
90
|
+
'K线图',
|
|
91
|
+
'混合图',
|
|
92
|
+
'时间轴折线',
|
|
93
|
+
'时间轴区域',
|
|
94
|
+
'散点图',
|
|
95
|
+
'气泡图',
|
|
96
|
+
'自定义类型'
|
|
97
|
+
],
|
|
98
|
+
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
|
99
|
+
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
|
100
|
+
categories: ['line', 'column', 'bar', 'area', 'radar', 'gauge', 'candle', 'mix', 'demotype'],
|
|
101
|
+
//instance为实例变量承载属性,不要删除
|
|
102
|
+
instance: {},
|
|
103
|
+
//option为opts及eopts承载属性,不要删除
|
|
104
|
+
option: {},
|
|
105
|
+
//下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
|
|
106
|
+
formatter: {
|
|
107
|
+
yAxisDemo1: function (val) {
|
|
108
|
+
return val + '元';
|
|
109
|
+
},
|
|
110
|
+
yAxisDemo2: function (val) {
|
|
111
|
+
return val.toFixed(2);
|
|
112
|
+
},
|
|
113
|
+
xAxisDemo1: function (val) {
|
|
114
|
+
return val + '年';
|
|
115
|
+
},
|
|
116
|
+
xAxisDemo2: function (val) {
|
|
117
|
+
return formatDateTime(val, 'h:m');
|
|
118
|
+
},
|
|
119
|
+
seriesDemo1: function (val) {
|
|
120
|
+
return val + '元';
|
|
121
|
+
},
|
|
122
|
+
tooltipDemo1: function (item, category, index, opts) {
|
|
123
|
+
if (index == 0) {
|
|
124
|
+
return '随便用' + item.data + '年';
|
|
125
|
+
} else {
|
|
126
|
+
return '其他我没改' + item.data + '天';
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
pieDemo: function (val, index, series) {
|
|
130
|
+
if (index !== undefined) {
|
|
131
|
+
return series[index].name + ':' + series[index].data + '元';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
//这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
|
|
136
|
+
demotype: {
|
|
137
|
+
//我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
|
|
138
|
+
type: 'line',
|
|
139
|
+
color: color,
|
|
140
|
+
padding: [15, 10, 0, 15],
|
|
141
|
+
xAxis: {
|
|
142
|
+
disableGrid: true
|
|
143
|
+
},
|
|
144
|
+
yAxis: {
|
|
145
|
+
gridType: 'dash',
|
|
146
|
+
dashLength: 2
|
|
147
|
+
},
|
|
148
|
+
legend: {},
|
|
149
|
+
extra: {
|
|
150
|
+
line: {
|
|
151
|
+
type: 'curve',
|
|
152
|
+
width: 2
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
//下面是自定义配置,请添加项目所需的通用配置
|
|
157
|
+
pie: {
|
|
158
|
+
type: 'pie',
|
|
159
|
+
color: color,
|
|
160
|
+
padding: [5, 5, 5, 5],
|
|
161
|
+
extra: {
|
|
162
|
+
pie: {
|
|
163
|
+
activeOpacity: 0.5,
|
|
164
|
+
activeRadius: 10,
|
|
165
|
+
offsetAngle: 0,
|
|
166
|
+
labelWidth: 15,
|
|
167
|
+
border: true,
|
|
168
|
+
borderWidth: 3,
|
|
169
|
+
borderColor: '#FFFFFF'
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
ring: {
|
|
174
|
+
type: 'ring',
|
|
175
|
+
color: color,
|
|
176
|
+
padding: [5, 5, 5, 5],
|
|
177
|
+
rotate: false,
|
|
178
|
+
dataLabel: true,
|
|
179
|
+
legend: {
|
|
180
|
+
show: true,
|
|
181
|
+
position: 'right',
|
|
182
|
+
lineHeight: 25
|
|
183
|
+
},
|
|
184
|
+
title: {
|
|
185
|
+
name: '收益率',
|
|
186
|
+
fontSize: 15,
|
|
187
|
+
color: '#666666'
|
|
188
|
+
},
|
|
189
|
+
subtitle: {
|
|
190
|
+
name: '70%',
|
|
191
|
+
fontSize: 25,
|
|
192
|
+
color: '#7cb5ec'
|
|
193
|
+
},
|
|
194
|
+
extra: {
|
|
195
|
+
ring: {
|
|
196
|
+
ringWidth: 30,
|
|
197
|
+
activeOpacity: 0.5,
|
|
198
|
+
activeRadius: 10,
|
|
199
|
+
offsetAngle: 0,
|
|
200
|
+
labelWidth: 15,
|
|
201
|
+
border: true,
|
|
202
|
+
borderWidth: 3,
|
|
203
|
+
borderColor: '#FFFFFF'
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
rose: {
|
|
208
|
+
type: 'rose',
|
|
209
|
+
color: color,
|
|
210
|
+
padding: [5, 5, 5, 5],
|
|
211
|
+
legend: {
|
|
212
|
+
show: true,
|
|
213
|
+
position: 'left',
|
|
214
|
+
lineHeight: 25
|
|
215
|
+
},
|
|
216
|
+
extra: {
|
|
217
|
+
rose: {
|
|
218
|
+
type: 'area',
|
|
219
|
+
minRadius: 50,
|
|
220
|
+
activeOpacity: 0.5,
|
|
221
|
+
activeRadius: 10,
|
|
222
|
+
offsetAngle: 0,
|
|
223
|
+
labelWidth: 15,
|
|
224
|
+
border: false,
|
|
225
|
+
borderWidth: 2,
|
|
226
|
+
borderColor: '#FFFFFF'
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
word: {
|
|
231
|
+
type: 'word',
|
|
232
|
+
color: color,
|
|
233
|
+
extra: {
|
|
234
|
+
word: {
|
|
235
|
+
type: 'normal',
|
|
236
|
+
autoColors: false
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
funnel: {
|
|
241
|
+
type: 'funnel',
|
|
242
|
+
color: color,
|
|
243
|
+
padding: [15, 15, 0, 15],
|
|
244
|
+
extra: {
|
|
245
|
+
funnel: {
|
|
246
|
+
activeOpacity: 0.3,
|
|
247
|
+
activeWidth: 10,
|
|
248
|
+
border: true,
|
|
249
|
+
borderWidth: 2,
|
|
250
|
+
borderColor: '#FFFFFF',
|
|
251
|
+
fillOpacity: 1,
|
|
252
|
+
labelAlign: 'right'
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
map: {
|
|
257
|
+
type: 'map',
|
|
258
|
+
color: color,
|
|
259
|
+
padding: [0, 0, 0, 0],
|
|
260
|
+
dataLabel: true,
|
|
261
|
+
extra: {
|
|
262
|
+
map: {
|
|
263
|
+
border: true,
|
|
264
|
+
borderWidth: 1,
|
|
265
|
+
borderColor: '#666666',
|
|
266
|
+
fillOpacity: 0.6,
|
|
267
|
+
activeBorderColor: '#F04864',
|
|
268
|
+
activeFillColor: '#FACC14',
|
|
269
|
+
activeFillOpacity: 1
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
arcbar: {
|
|
274
|
+
type: 'arcbar',
|
|
275
|
+
color: color,
|
|
276
|
+
title: {
|
|
277
|
+
name: '百分比',
|
|
278
|
+
fontSize: 25,
|
|
279
|
+
color: '#00FF00'
|
|
280
|
+
},
|
|
281
|
+
subtitle: {
|
|
282
|
+
name: '默认标题',
|
|
283
|
+
fontSize: 15,
|
|
284
|
+
color: '#666666'
|
|
285
|
+
},
|
|
286
|
+
extra: {
|
|
287
|
+
arcbar: {
|
|
288
|
+
type: 'default',
|
|
289
|
+
width: 12,
|
|
290
|
+
backgroundColor: '#E9E9E9',
|
|
291
|
+
startAngle: 0.75,
|
|
292
|
+
endAngle: 0.25,
|
|
293
|
+
gap: 2
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
line: {
|
|
298
|
+
type: 'line',
|
|
299
|
+
color: color,
|
|
300
|
+
padding: [15, 10, 0, 15],
|
|
301
|
+
xAxis: {
|
|
302
|
+
disableGrid: true
|
|
303
|
+
},
|
|
304
|
+
yAxis: {
|
|
305
|
+
gridType: 'dash',
|
|
306
|
+
dashLength: 2
|
|
307
|
+
},
|
|
308
|
+
legend: {},
|
|
309
|
+
extra: {
|
|
310
|
+
line: {
|
|
311
|
+
type: 'straight',
|
|
312
|
+
width: 2
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
tline: {
|
|
317
|
+
type: 'line',
|
|
318
|
+
color: color,
|
|
319
|
+
padding: [15, 10, 0, 15],
|
|
320
|
+
xAxis: {
|
|
321
|
+
disableGrid: false,
|
|
322
|
+
boundaryGap: 'justify'
|
|
323
|
+
},
|
|
324
|
+
yAxis: {
|
|
325
|
+
gridType: 'dash',
|
|
326
|
+
dashLength: 2,
|
|
327
|
+
data: [
|
|
328
|
+
{
|
|
329
|
+
min: 0,
|
|
330
|
+
max: 80
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
legend: {},
|
|
335
|
+
extra: {
|
|
336
|
+
line: {
|
|
337
|
+
type: 'curve',
|
|
338
|
+
width: 2
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
tarea: {
|
|
343
|
+
type: 'area',
|
|
344
|
+
color: color,
|
|
345
|
+
padding: [15, 10, 0, 15],
|
|
346
|
+
xAxis: {
|
|
347
|
+
disableGrid: true,
|
|
348
|
+
boundaryGap: 'justify'
|
|
349
|
+
},
|
|
350
|
+
yAxis: {
|
|
351
|
+
gridType: 'dash',
|
|
352
|
+
dashLength: 2,
|
|
353
|
+
data: [
|
|
354
|
+
{
|
|
355
|
+
min: 0,
|
|
356
|
+
max: 80
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
legend: {},
|
|
361
|
+
extra: {
|
|
362
|
+
area: {
|
|
363
|
+
type: 'curve',
|
|
364
|
+
opacity: 0.2,
|
|
365
|
+
addLine: true,
|
|
366
|
+
width: 2,
|
|
367
|
+
gradient: true
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
column: {
|
|
372
|
+
type: 'column',
|
|
373
|
+
color: color,
|
|
374
|
+
padding: [15, 15, 0, 5],
|
|
375
|
+
xAxis: {
|
|
376
|
+
disableGrid: true
|
|
377
|
+
},
|
|
378
|
+
yAxis: {
|
|
379
|
+
data: [{ min: 0 }]
|
|
380
|
+
},
|
|
381
|
+
legend: {},
|
|
382
|
+
extra: {
|
|
383
|
+
column: {
|
|
384
|
+
type: 'group',
|
|
385
|
+
width: 30,
|
|
386
|
+
meterBorde: 1,
|
|
387
|
+
meterFillColor: '#FFFFFF',
|
|
388
|
+
activeBgColor: '#000000',
|
|
389
|
+
activeBgOpacity: 0.08
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
bar: {
|
|
394
|
+
type: 'bar',
|
|
395
|
+
color: color,
|
|
396
|
+
padding: [15, 30, 0, 5],
|
|
397
|
+
xAxis: {
|
|
398
|
+
boundaryGap: 'justify',
|
|
399
|
+
disableGrid: false,
|
|
400
|
+
min: 0,
|
|
401
|
+
axisLine: false
|
|
402
|
+
},
|
|
403
|
+
yAxis: {},
|
|
404
|
+
legend: {},
|
|
405
|
+
extra: {
|
|
406
|
+
bar: {
|
|
407
|
+
type: 'group',
|
|
408
|
+
width: 30,
|
|
409
|
+
meterBorde: 1,
|
|
410
|
+
meterFillColor: '#FFFFFF',
|
|
411
|
+
activeBgColor: '#000000',
|
|
412
|
+
activeBgOpacity: 0.08
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
area: {
|
|
417
|
+
type: 'area',
|
|
418
|
+
color: color,
|
|
419
|
+
padding: [15, 15, 0, 15],
|
|
420
|
+
xAxis: {
|
|
421
|
+
disableGrid: true
|
|
422
|
+
},
|
|
423
|
+
yAxis: {
|
|
424
|
+
gridType: 'dash',
|
|
425
|
+
dashLength: 2
|
|
426
|
+
},
|
|
427
|
+
legend: {},
|
|
428
|
+
extra: {
|
|
429
|
+
area: {
|
|
430
|
+
type: 'straight',
|
|
431
|
+
opacity: 0.2,
|
|
432
|
+
addLine: true,
|
|
433
|
+
width: 2,
|
|
434
|
+
gradient: false
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
radar: {
|
|
439
|
+
type: 'radar',
|
|
440
|
+
color: color,
|
|
441
|
+
padding: [5, 5, 5, 5],
|
|
442
|
+
dataLabel: false,
|
|
443
|
+
legend: {
|
|
444
|
+
show: true,
|
|
445
|
+
position: 'right',
|
|
446
|
+
lineHeight: 25
|
|
447
|
+
},
|
|
448
|
+
extra: {
|
|
449
|
+
radar: {
|
|
450
|
+
gridType: 'radar',
|
|
451
|
+
gridColor: '#CCCCCC',
|
|
452
|
+
gridCount: 3,
|
|
453
|
+
opacity: 0.2,
|
|
454
|
+
max: 200
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
gauge: {
|
|
459
|
+
type: 'gauge',
|
|
460
|
+
color: color,
|
|
461
|
+
title: {
|
|
462
|
+
name: '66Km/H',
|
|
463
|
+
fontSize: 25,
|
|
464
|
+
color: '#2fc25b',
|
|
465
|
+
offsetY: 50
|
|
466
|
+
},
|
|
467
|
+
subtitle: {
|
|
468
|
+
name: '实时速度',
|
|
469
|
+
fontSize: 15,
|
|
470
|
+
color: '#1890ff',
|
|
471
|
+
offsetY: -50
|
|
472
|
+
},
|
|
473
|
+
extra: {
|
|
474
|
+
gauge: {
|
|
475
|
+
type: 'default',
|
|
476
|
+
width: 30,
|
|
477
|
+
labelColor: '#666666',
|
|
478
|
+
startAngle: 0.75,
|
|
479
|
+
endAngle: 0.25,
|
|
480
|
+
startNumber: 0,
|
|
481
|
+
endNumber: 100,
|
|
482
|
+
labelFormat: '',
|
|
483
|
+
splitLine: {
|
|
484
|
+
fixRadius: 0,
|
|
485
|
+
splitNumber: 10,
|
|
486
|
+
width: 30,
|
|
487
|
+
color: '#FFFFFF',
|
|
488
|
+
childNumber: 5,
|
|
489
|
+
childWidth: 12
|
|
490
|
+
},
|
|
491
|
+
pointer: {
|
|
492
|
+
width: 24,
|
|
493
|
+
color: 'auto'
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
candle: {
|
|
499
|
+
type: 'candle',
|
|
500
|
+
color: color,
|
|
501
|
+
padding: [15, 15, 0, 15],
|
|
502
|
+
enableScroll: true,
|
|
503
|
+
enableMarkLine: true,
|
|
504
|
+
dataLabel: false,
|
|
505
|
+
xAxis: {
|
|
506
|
+
labelCount: 4,
|
|
507
|
+
itemCount: 40,
|
|
508
|
+
disableGrid: true,
|
|
509
|
+
gridColor: '#CCCCCC',
|
|
510
|
+
gridType: 'solid',
|
|
511
|
+
dashLength: 4,
|
|
512
|
+
scrollShow: true,
|
|
513
|
+
scrollAlign: 'left',
|
|
514
|
+
scrollColor: '#A6A6A6',
|
|
515
|
+
scrollBackgroundColor: '#EFEBEF'
|
|
516
|
+
},
|
|
517
|
+
yAxis: {},
|
|
518
|
+
legend: {},
|
|
519
|
+
extra: {
|
|
520
|
+
candle: {
|
|
521
|
+
color: {
|
|
522
|
+
upLine: '#f04864',
|
|
523
|
+
upFill: '#f04864',
|
|
524
|
+
downLine: '#2fc25b',
|
|
525
|
+
downFill: '#2fc25b'
|
|
526
|
+
},
|
|
527
|
+
average: {
|
|
528
|
+
show: true,
|
|
529
|
+
name: ['MA5', 'MA10', 'MA30'],
|
|
530
|
+
day: [5, 10, 20],
|
|
531
|
+
color: ['#1890ff', '#2fc25b', '#facc14']
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
markLine: {
|
|
535
|
+
type: 'dash',
|
|
536
|
+
dashLength: 5,
|
|
537
|
+
data: [
|
|
538
|
+
{
|
|
539
|
+
value: 2150,
|
|
540
|
+
lineColor: '#f04864',
|
|
541
|
+
showLabel: true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
value: 2350,
|
|
545
|
+
lineColor: '#f04864',
|
|
546
|
+
showLabel: true
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
mix: {
|
|
553
|
+
type: 'mix',
|
|
554
|
+
color: color,
|
|
555
|
+
padding: [15, 15, 0, 15],
|
|
556
|
+
xAxis: {
|
|
557
|
+
disableGrid: true
|
|
558
|
+
},
|
|
559
|
+
yAxis: {
|
|
560
|
+
disabled: false,
|
|
561
|
+
disableGrid: false,
|
|
562
|
+
splitNumber: 5,
|
|
563
|
+
gridType: 'dash',
|
|
564
|
+
dashLength: 4,
|
|
565
|
+
gridColor: '#CCCCCC',
|
|
566
|
+
padding: 10,
|
|
567
|
+
showTitle: true,
|
|
568
|
+
data: []
|
|
569
|
+
},
|
|
570
|
+
legend: {},
|
|
571
|
+
extra: {
|
|
572
|
+
mix: {
|
|
573
|
+
column: {
|
|
574
|
+
width: 20
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
scatter: {
|
|
580
|
+
type: 'scatter',
|
|
581
|
+
color: color,
|
|
582
|
+
padding: [15, 15, 0, 15],
|
|
583
|
+
dataLabel: false,
|
|
584
|
+
xAxis: {
|
|
585
|
+
disableGrid: false,
|
|
586
|
+
gridType: 'dash',
|
|
587
|
+
splitNumber: 5,
|
|
588
|
+
boundaryGap: 'justify',
|
|
589
|
+
min: 0
|
|
590
|
+
},
|
|
591
|
+
yAxis: {
|
|
592
|
+
disableGrid: false,
|
|
593
|
+
gridType: 'dash'
|
|
594
|
+
},
|
|
595
|
+
legend: {},
|
|
596
|
+
extra: {
|
|
597
|
+
scatter: {}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
bubble: {
|
|
601
|
+
type: 'bubble',
|
|
602
|
+
color: color,
|
|
603
|
+
padding: [15, 15, 0, 15],
|
|
604
|
+
xAxis: {
|
|
605
|
+
disableGrid: false,
|
|
606
|
+
gridType: 'dash',
|
|
607
|
+
splitNumber: 5,
|
|
608
|
+
boundaryGap: 'justify',
|
|
609
|
+
min: 0,
|
|
610
|
+
max: 250
|
|
611
|
+
},
|
|
612
|
+
yAxis: {
|
|
613
|
+
disableGrid: false,
|
|
614
|
+
gridType: 'dash',
|
|
615
|
+
data: [
|
|
616
|
+
{
|
|
617
|
+
min: 0,
|
|
618
|
+
max: 150
|
|
619
|
+
}
|
|
620
|
+
]
|
|
621
|
+
},
|
|
622
|
+
legend: {},
|
|
623
|
+
extra: {
|
|
624
|
+
bubble: {
|
|
625
|
+
border: 2,
|
|
626
|
+
opacity: 0.5
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
};
|