@siemens/ix-echarts 1.0.0-beta.2
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/dist/index.esm.js +617 -0
- package/dist/index.js +639 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/register.d.ts +1 -0
- package/dist/types/themes/brand-dark.project.d.ts +69 -0
- package/dist/types/themes/brand-light.project.d.ts +69 -0
- package/dist/types/themes/classic-dark.project.d.ts +69 -0
- package/dist/types/themes/classic-light.project.d.ts +69 -0
- package/package.json +33 -0
|
@@ -0,0 +1,617 @@
|
|
|
1
|
+
import * as echarts from 'echarts';
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: MIT
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var brandDarkProject = {
|
|
12
|
+
version: 1,
|
|
13
|
+
themeName: 'brand-dark',
|
|
14
|
+
theme: {
|
|
15
|
+
seriesCnt: 3,
|
|
16
|
+
backgroundColor: 'transparent',
|
|
17
|
+
titleColor: '#ffffff',
|
|
18
|
+
subtitleColor: '#ffffff',
|
|
19
|
+
textColorShow: false,
|
|
20
|
+
textColor: '#ffffff',
|
|
21
|
+
markTextColor: '#000000',
|
|
22
|
+
color: [
|
|
23
|
+
'#00ffb9',
|
|
24
|
+
'#41b7e6',
|
|
25
|
+
'#cd31e7',
|
|
26
|
+
'#b3b3be',
|
|
27
|
+
'#0087be',
|
|
28
|
+
'#86a0f6',
|
|
29
|
+
'#baba9d',
|
|
30
|
+
'#009e78',
|
|
31
|
+
'#ffb180',
|
|
32
|
+
'#b5bd00',
|
|
33
|
+
],
|
|
34
|
+
borderColor: 'rgba(255,255,255,0.45)',
|
|
35
|
+
borderWidth: 0,
|
|
36
|
+
visualMapColor: ['#ff2640', '#ff9000', '#ffd732'],
|
|
37
|
+
legendTextColor: '#ffffff',
|
|
38
|
+
kColor: '#fe0137',
|
|
39
|
+
kColor0: '#40c200',
|
|
40
|
+
kBorderColor: '#fe0137',
|
|
41
|
+
kBorderColor0: '#40c200',
|
|
42
|
+
kBorderWidth: 1,
|
|
43
|
+
lineWidth: 2,
|
|
44
|
+
symbolSize: 4,
|
|
45
|
+
symbol: 'circle',
|
|
46
|
+
symbolBorderWidth: 1,
|
|
47
|
+
lineSmooth: false,
|
|
48
|
+
graphLineWidth: 1,
|
|
49
|
+
graphLineColor: 'rgba(255,255,255,0.6)',
|
|
50
|
+
mapLabelColor: '#000',
|
|
51
|
+
mapLabelColorE: 'rgb(100,0,0)',
|
|
52
|
+
mapBorderColor: '#444',
|
|
53
|
+
mapBorderColorE: '#444',
|
|
54
|
+
mapBorderWidth: 0.5,
|
|
55
|
+
mapBorderWidthE: 1,
|
|
56
|
+
mapAreaColor: '#eee',
|
|
57
|
+
mapAreaColorE: 'rgba(255,215,0,0.8)',
|
|
58
|
+
axes: [
|
|
59
|
+
{
|
|
60
|
+
type: 'all',
|
|
61
|
+
name: '通用坐标轴',
|
|
62
|
+
axisLineShow: true,
|
|
63
|
+
axisLineColor: 'rgba(255,255,255,0.35)',
|
|
64
|
+
axisTickShow: true,
|
|
65
|
+
axisTickColor: 'rgba(255,255,255,0.35)',
|
|
66
|
+
axisLabelShow: true,
|
|
67
|
+
axisLabelColor: '#ffffff',
|
|
68
|
+
splitLineShow: true,
|
|
69
|
+
splitLineColor: ['rgba(255,255,255,0.1)'],
|
|
70
|
+
splitAreaShow: false,
|
|
71
|
+
splitAreaColor: ['rgba(0,0,0,0)', 'rgba(255,255,255,0.1)'],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: 'category',
|
|
75
|
+
name: '类目坐标轴',
|
|
76
|
+
axisLineShow: true,
|
|
77
|
+
axisLineColor: '#6E7079',
|
|
78
|
+
axisTickShow: true,
|
|
79
|
+
axisTickColor: '#6E7079',
|
|
80
|
+
axisLabelShow: true,
|
|
81
|
+
axisLabelColor: '#6E7079',
|
|
82
|
+
splitLineShow: false,
|
|
83
|
+
splitLineColor: ['#E0E6F1'],
|
|
84
|
+
splitAreaShow: false,
|
|
85
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: 'value',
|
|
89
|
+
name: '数值坐标轴',
|
|
90
|
+
axisLineShow: true,
|
|
91
|
+
axisLineColor: '#6E7079',
|
|
92
|
+
axisTickShow: false,
|
|
93
|
+
axisTickColor: '#6E7079',
|
|
94
|
+
axisLabelShow: true,
|
|
95
|
+
axisLabelColor: '#6E7079',
|
|
96
|
+
splitLineShow: true,
|
|
97
|
+
splitLineColor: ['#E0E6F1'],
|
|
98
|
+
splitAreaShow: false,
|
|
99
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: 'log',
|
|
103
|
+
name: '对数坐标轴',
|
|
104
|
+
axisLineShow: false,
|
|
105
|
+
axisLineColor: '#6E7079',
|
|
106
|
+
axisTickShow: false,
|
|
107
|
+
axisTickColor: '#6E7079',
|
|
108
|
+
axisLabelShow: true,
|
|
109
|
+
axisLabelColor: '#6E7079',
|
|
110
|
+
splitLineShow: false,
|
|
111
|
+
splitLineColor: ['#E0E6F1'],
|
|
112
|
+
splitAreaShow: true,
|
|
113
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: 'time',
|
|
117
|
+
name: '时间坐标轴',
|
|
118
|
+
axisLineShow: true,
|
|
119
|
+
axisLineColor: '#6E7079',
|
|
120
|
+
axisTickShow: true,
|
|
121
|
+
axisTickColor: '#6E7079',
|
|
122
|
+
axisLabelShow: true,
|
|
123
|
+
axisLabelColor: '#6E7079',
|
|
124
|
+
splitLineShow: false,
|
|
125
|
+
splitLineColor: ['#E0E6F1'],
|
|
126
|
+
splitAreaShow: false,
|
|
127
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
axisSeperateSetting: false,
|
|
131
|
+
toolboxColor: 'rgba(255,255,255,0.6)',
|
|
132
|
+
toolboxEmphasisColor: '#00ffb9',
|
|
133
|
+
tooltipAxisColor: 'rgba(255,255,255,0.35)',
|
|
134
|
+
tooltipAxisWidth: '1',
|
|
135
|
+
timelineLineColor: 'rgba(0,0,0,0)',
|
|
136
|
+
timelineLineWidth: '1',
|
|
137
|
+
timelineItemColor: 'rgba(255,255,255,0.35)',
|
|
138
|
+
timelineItemColorE: 'rgba(255,255,255,0.6)',
|
|
139
|
+
timelineCheckColor: '#00ffb9',
|
|
140
|
+
timelineCheckBorderColor: '#000028',
|
|
141
|
+
timelineItemBorderWidth: '1',
|
|
142
|
+
timelineControlColor: '#00cccc',
|
|
143
|
+
timelineControlBorderColor: '#00cccc',
|
|
144
|
+
timelineControlBorderWidth: '1',
|
|
145
|
+
timelineLabelColor: 'rgba(255,255,255,0.35)',
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
151
|
+
*
|
|
152
|
+
* SPDX-License-Identifier: MIT
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the MIT license found in the
|
|
155
|
+
* LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/
|
|
157
|
+
var brandLightProject = {
|
|
158
|
+
version: 1,
|
|
159
|
+
themeName: 'brand-light',
|
|
160
|
+
theme: {
|
|
161
|
+
seriesCnt: 3,
|
|
162
|
+
backgroundColor: 'transparent',
|
|
163
|
+
titleColor: '#000028',
|
|
164
|
+
subtitleColor: '#000028',
|
|
165
|
+
textColorShow: false,
|
|
166
|
+
textColor: '#000028',
|
|
167
|
+
markTextColor: '#ffffff',
|
|
168
|
+
color: [
|
|
169
|
+
'#00af8e',
|
|
170
|
+
'#0087be',
|
|
171
|
+
'#aa32be',
|
|
172
|
+
'#71758f',
|
|
173
|
+
'#00557c',
|
|
174
|
+
'#4660b4',
|
|
175
|
+
'#94947b',
|
|
176
|
+
'#007362',
|
|
177
|
+
'#dd886a',
|
|
178
|
+
'#909700',
|
|
179
|
+
],
|
|
180
|
+
borderColor: 'rgba(0,0,40,0.3)',
|
|
181
|
+
borderWidth: 0,
|
|
182
|
+
visualMapColor: ['#d72339', '#e96401', '#e9c32a'],
|
|
183
|
+
legendTextColor: '#000028',
|
|
184
|
+
kColor: '#d72339',
|
|
185
|
+
kColor0: '#01893a',
|
|
186
|
+
kBorderColor: '#d72339',
|
|
187
|
+
kBorderColor0: '#01893a',
|
|
188
|
+
kBorderWidth: 1,
|
|
189
|
+
lineWidth: 2,
|
|
190
|
+
symbolSize: 4,
|
|
191
|
+
symbol: 'circle',
|
|
192
|
+
symbolBorderWidth: 1,
|
|
193
|
+
lineSmooth: false,
|
|
194
|
+
graphLineWidth: '1',
|
|
195
|
+
graphLineColor: 'rgba(0,0,40,0.6)',
|
|
196
|
+
mapLabelColor: '#000',
|
|
197
|
+
mapLabelColorE: 'rgb(100,0,0)',
|
|
198
|
+
mapBorderColor: '#444',
|
|
199
|
+
mapBorderColorE: '#444',
|
|
200
|
+
mapBorderWidth: 0.5,
|
|
201
|
+
mapBorderWidthE: 1,
|
|
202
|
+
mapAreaColor: '#eee',
|
|
203
|
+
mapAreaColorE: 'rgba(255,215,0,0.8)',
|
|
204
|
+
axes: [
|
|
205
|
+
{
|
|
206
|
+
type: 'all',
|
|
207
|
+
name: '通用坐标轴',
|
|
208
|
+
axisLineShow: true,
|
|
209
|
+
axisLineColor: 'rgba(0,0,40,0.3)',
|
|
210
|
+
axisTickShow: true,
|
|
211
|
+
axisTickColor: 'rgba(0,0,40,0.3)',
|
|
212
|
+
axisLabelShow: true,
|
|
213
|
+
axisLabelColor: '#000028',
|
|
214
|
+
splitLineShow: true,
|
|
215
|
+
splitLineColor: ['rgba(0,0,40,0.1)'],
|
|
216
|
+
splitAreaShow: false,
|
|
217
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
type: 'category',
|
|
221
|
+
name: '类目坐标轴',
|
|
222
|
+
axisLineShow: true,
|
|
223
|
+
axisLineColor: '#6E7079',
|
|
224
|
+
axisTickShow: true,
|
|
225
|
+
axisTickColor: '#6E7079',
|
|
226
|
+
axisLabelShow: true,
|
|
227
|
+
axisLabelColor: '#6E7079',
|
|
228
|
+
splitLineShow: false,
|
|
229
|
+
splitLineColor: ['#E0E6F1'],
|
|
230
|
+
splitAreaShow: false,
|
|
231
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
type: 'value',
|
|
235
|
+
name: '数值坐标轴',
|
|
236
|
+
axisLineShow: true,
|
|
237
|
+
axisLineColor: '#6E7079',
|
|
238
|
+
axisTickShow: false,
|
|
239
|
+
axisTickColor: '#6E7079',
|
|
240
|
+
axisLabelShow: true,
|
|
241
|
+
axisLabelColor: '#6E7079',
|
|
242
|
+
splitLineShow: true,
|
|
243
|
+
splitLineColor: ['#E0E6F1'],
|
|
244
|
+
splitAreaShow: false,
|
|
245
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: 'log',
|
|
249
|
+
name: '对数坐标轴',
|
|
250
|
+
axisLineShow: false,
|
|
251
|
+
axisLineColor: '#6E7079',
|
|
252
|
+
axisTickShow: false,
|
|
253
|
+
axisTickColor: '#6E7079',
|
|
254
|
+
axisLabelShow: true,
|
|
255
|
+
axisLabelColor: '#6E7079',
|
|
256
|
+
splitLineShow: false,
|
|
257
|
+
splitLineColor: ['#E0E6F1'],
|
|
258
|
+
splitAreaShow: true,
|
|
259
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: 'time',
|
|
263
|
+
name: '时间坐标轴',
|
|
264
|
+
axisLineShow: true,
|
|
265
|
+
axisLineColor: '#6E7079',
|
|
266
|
+
axisTickShow: true,
|
|
267
|
+
axisTickColor: '#6E7079',
|
|
268
|
+
axisLabelShow: true,
|
|
269
|
+
axisLabelColor: '#6E7079',
|
|
270
|
+
splitLineShow: false,
|
|
271
|
+
splitLineColor: ['#E0E6F1'],
|
|
272
|
+
splitAreaShow: false,
|
|
273
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
axisSeperateSetting: false,
|
|
277
|
+
toolboxColor: 'rgba(0,0,40,0.3)',
|
|
278
|
+
toolboxEmphasisColor: '#196269',
|
|
279
|
+
tooltipAxisColor: 'rgba(0,0,40,0.3)',
|
|
280
|
+
tooltipAxisWidth: '1',
|
|
281
|
+
timelineLineColor: 'rgba(0,0,0,0)',
|
|
282
|
+
timelineLineWidth: '1',
|
|
283
|
+
timelineItemColor: 'rgba(0,0,40,0.3)',
|
|
284
|
+
timelineItemColorE: 'rgba(0,0,40,0.6)',
|
|
285
|
+
timelineCheckColor: '#196269',
|
|
286
|
+
timelineCheckBorderColor: '#ffffff',
|
|
287
|
+
timelineItemBorderWidth: '1',
|
|
288
|
+
timelineControlColor: '#007993',
|
|
289
|
+
timelineControlBorderColor: '#007993',
|
|
290
|
+
timelineControlBorderWidth: '1',
|
|
291
|
+
timelineLabelColor: 'rgba(0,0,40,0.3)',
|
|
292
|
+
},
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/*
|
|
296
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
297
|
+
*
|
|
298
|
+
* SPDX-License-Identifier: MIT
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the MIT license found in the
|
|
301
|
+
* LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/
|
|
303
|
+
var classicDarkProject = {
|
|
304
|
+
version: 1,
|
|
305
|
+
themeName: 'classic-dark',
|
|
306
|
+
theme: {
|
|
307
|
+
seriesCnt: 3,
|
|
308
|
+
backgroundColor: 'transparent',
|
|
309
|
+
titleColor: 'rgba(255,255,255,0.85)',
|
|
310
|
+
subtitleColor: 'rgba(255,255,255,0.85)',
|
|
311
|
+
textColorShow: false,
|
|
312
|
+
textColor: 'rgba(255,255,255,0.85)',
|
|
313
|
+
markTextColor: '#ffffff',
|
|
314
|
+
color: [
|
|
315
|
+
'#00ebd5',
|
|
316
|
+
'#42aaff',
|
|
317
|
+
'#e446ff',
|
|
318
|
+
'#86acc0',
|
|
319
|
+
'#2473ff',
|
|
320
|
+
'#759eff',
|
|
321
|
+
'#baba9d',
|
|
322
|
+
'#009e78',
|
|
323
|
+
'#ffb180',
|
|
324
|
+
'#b5bd00',
|
|
325
|
+
],
|
|
326
|
+
borderColor: 'rgba(255,255,255,0.45)',
|
|
327
|
+
borderWidth: 0,
|
|
328
|
+
visualMapColor: ['#fe0137', '#eb780a', '#ffb900'],
|
|
329
|
+
legendTextColor: 'rgba(255,255,255,0.85)',
|
|
330
|
+
kColor: '#fe0137',
|
|
331
|
+
kColor0: '#40c200',
|
|
332
|
+
kBorderColor: '#fe0137',
|
|
333
|
+
kBorderColor0: '#40c200',
|
|
334
|
+
kBorderWidth: 1,
|
|
335
|
+
lineWidth: 2,
|
|
336
|
+
symbolSize: 4,
|
|
337
|
+
symbol: 'circle',
|
|
338
|
+
symbolBorderWidth: 1,
|
|
339
|
+
lineSmooth: false,
|
|
340
|
+
graphLineWidth: '1',
|
|
341
|
+
graphLineColor: 'rgba(255,255,255,0.6)',
|
|
342
|
+
mapLabelColor: '#000',
|
|
343
|
+
mapLabelColorE: 'rgb(100,0,0)',
|
|
344
|
+
mapBorderColor: '#444',
|
|
345
|
+
mapBorderColorE: '#444',
|
|
346
|
+
mapBorderWidth: 0.5,
|
|
347
|
+
mapBorderWidthE: 1,
|
|
348
|
+
mapAreaColor: '#eee',
|
|
349
|
+
mapAreaColorE: 'rgba(255,215,0,0.8)',
|
|
350
|
+
axes: [
|
|
351
|
+
{
|
|
352
|
+
type: 'all',
|
|
353
|
+
name: '通用坐标轴',
|
|
354
|
+
axisLineShow: true,
|
|
355
|
+
axisLineColor: 'rgba(255,255,255,0.3)',
|
|
356
|
+
axisTickShow: true,
|
|
357
|
+
axisTickColor: 'rgba(255,255,255,0.3)',
|
|
358
|
+
axisLabelShow: true,
|
|
359
|
+
axisLabelColor: 'rgba(255,255,255,0.85)',
|
|
360
|
+
splitLineShow: true,
|
|
361
|
+
splitLineColor: ['rgba(255,255,255,0.1)'],
|
|
362
|
+
splitAreaShow: false,
|
|
363
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
type: 'category',
|
|
367
|
+
name: '类目坐标轴',
|
|
368
|
+
axisLineShow: true,
|
|
369
|
+
axisLineColor: '#6E7079',
|
|
370
|
+
axisTickShow: true,
|
|
371
|
+
axisTickColor: '#6E7079',
|
|
372
|
+
axisLabelShow: true,
|
|
373
|
+
axisLabelColor: '#6E7079',
|
|
374
|
+
splitLineShow: false,
|
|
375
|
+
splitLineColor: ['#E0E6F1'],
|
|
376
|
+
splitAreaShow: false,
|
|
377
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
type: 'value',
|
|
381
|
+
name: '数值坐标轴',
|
|
382
|
+
axisLineShow: true,
|
|
383
|
+
axisLineColor: '#6E7079',
|
|
384
|
+
axisTickShow: false,
|
|
385
|
+
axisTickColor: '#6E7079',
|
|
386
|
+
axisLabelShow: true,
|
|
387
|
+
axisLabelColor: '#6E7079',
|
|
388
|
+
splitLineShow: true,
|
|
389
|
+
splitLineColor: ['#E0E6F1'],
|
|
390
|
+
splitAreaShow: false,
|
|
391
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
type: 'log',
|
|
395
|
+
name: '对数坐标轴',
|
|
396
|
+
axisLineShow: false,
|
|
397
|
+
axisLineColor: '#6E7079',
|
|
398
|
+
axisTickShow: false,
|
|
399
|
+
axisTickColor: '#6E7079',
|
|
400
|
+
axisLabelShow: true,
|
|
401
|
+
axisLabelColor: '#6E7079',
|
|
402
|
+
splitLineShow: false,
|
|
403
|
+
splitLineColor: ['#E0E6F1'],
|
|
404
|
+
splitAreaShow: true,
|
|
405
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
type: 'time',
|
|
409
|
+
name: '时间坐标轴',
|
|
410
|
+
axisLineShow: true,
|
|
411
|
+
axisLineColor: '#6E7079',
|
|
412
|
+
axisTickShow: true,
|
|
413
|
+
axisTickColor: '#6E7079',
|
|
414
|
+
axisLabelShow: true,
|
|
415
|
+
axisLabelColor: '#6E7079',
|
|
416
|
+
splitLineShow: false,
|
|
417
|
+
splitLineColor: ['#E0E6F1'],
|
|
418
|
+
splitAreaShow: false,
|
|
419
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
420
|
+
},
|
|
421
|
+
],
|
|
422
|
+
axisSeperateSetting: false,
|
|
423
|
+
toolboxColor: 'rgba(255,255,255,0.6)',
|
|
424
|
+
toolboxEmphasisColor: '#ffffff',
|
|
425
|
+
tooltipAxisColor: 'rgba(255,255,255,0.3)',
|
|
426
|
+
tooltipAxisWidth: '1',
|
|
427
|
+
timelineLineColor: 'rgba(0,0,0,0)',
|
|
428
|
+
timelineLineWidth: '1',
|
|
429
|
+
timelineItemColor: 'rgba(255,255,255,0.35)',
|
|
430
|
+
timelineItemColorE: 'rgba(255,255,255,0.6)',
|
|
431
|
+
timelineCheckColor: '#41aaaa',
|
|
432
|
+
timelineCheckBorderColor: 'rgba(0,0,0,0)',
|
|
433
|
+
timelineItemBorderWidth: '1',
|
|
434
|
+
timelineControlColor: '#41aaaa',
|
|
435
|
+
timelineControlBorderColor: '#41aaaa',
|
|
436
|
+
timelineControlBorderWidth: '1',
|
|
437
|
+
timelineLabelColor: 'rgba(255,255,255,0.3)',
|
|
438
|
+
},
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
/*
|
|
442
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
443
|
+
*
|
|
444
|
+
* SPDX-License-Identifier: MIT
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the MIT license found in the
|
|
447
|
+
* LICENSE file in the root directory of this source tree.
|
|
448
|
+
*/
|
|
449
|
+
var classicLightProject = {
|
|
450
|
+
version: 1,
|
|
451
|
+
themeName: 'classic-light',
|
|
452
|
+
theme: {
|
|
453
|
+
seriesCnt: 3,
|
|
454
|
+
backgroundColor: 'transparent',
|
|
455
|
+
titleColor: 'rgba(0,0,0,0.75)',
|
|
456
|
+
subtitleColor: 'rgba(0,0,0,0.75)',
|
|
457
|
+
textColorShow: false,
|
|
458
|
+
textColor: 'rgba(0,0,0,0.75)',
|
|
459
|
+
markTextColor: '#000000',
|
|
460
|
+
color: [
|
|
461
|
+
'#00b8a6',
|
|
462
|
+
'#1d86dc',
|
|
463
|
+
'#a207bd',
|
|
464
|
+
'#617d8c',
|
|
465
|
+
'#2351a4',
|
|
466
|
+
'#5581e7',
|
|
467
|
+
'#94947b',
|
|
468
|
+
'#007362',
|
|
469
|
+
'#dd886a',
|
|
470
|
+
'#909700',
|
|
471
|
+
],
|
|
472
|
+
borderColor: 'rgba(0,0,0,0.3)',
|
|
473
|
+
borderWidth: 0,
|
|
474
|
+
visualMapColor: ['#dc0031', '#ff8d00', '#f0b800'],
|
|
475
|
+
legendTextColor: 'rgba(0,0,0,0.75)',
|
|
476
|
+
kColor: '#dc0031',
|
|
477
|
+
kColor0: '#339b00',
|
|
478
|
+
kBorderColor: '#dc0031',
|
|
479
|
+
kBorderColor0: '#339b00',
|
|
480
|
+
kBorderWidth: 1,
|
|
481
|
+
lineWidth: 2,
|
|
482
|
+
symbolSize: 4,
|
|
483
|
+
symbol: 'circle',
|
|
484
|
+
symbolBorderWidth: 1,
|
|
485
|
+
lineSmooth: false,
|
|
486
|
+
graphLineWidth: '1',
|
|
487
|
+
graphLineColor: 'rgba(0,0,0,0.6)',
|
|
488
|
+
mapLabelColor: '#000',
|
|
489
|
+
mapLabelColorE: 'rgb(100,0,0)',
|
|
490
|
+
mapBorderColor: '#444',
|
|
491
|
+
mapBorderColorE: '#444',
|
|
492
|
+
mapBorderWidth: 0.5,
|
|
493
|
+
mapBorderWidthE: 1,
|
|
494
|
+
mapAreaColor: '#eee',
|
|
495
|
+
mapAreaColorE: 'rgba(255,215,0,0.8)',
|
|
496
|
+
axes: [
|
|
497
|
+
{
|
|
498
|
+
type: 'all',
|
|
499
|
+
name: '通用坐标轴',
|
|
500
|
+
axisLineShow: true,
|
|
501
|
+
axisLineColor: 'rgba(0,0,0,0.3)',
|
|
502
|
+
axisTickShow: true,
|
|
503
|
+
axisTickColor: 'rgba(0,0,0,0.3)',
|
|
504
|
+
axisLabelShow: true,
|
|
505
|
+
axisLabelColor: 'rgba(0,0,0,0.75)',
|
|
506
|
+
splitLineShow: true,
|
|
507
|
+
splitLineColor: ['rgba(0,0,0,0.1)'],
|
|
508
|
+
splitAreaShow: false,
|
|
509
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
type: 'category',
|
|
513
|
+
name: '类目坐标轴',
|
|
514
|
+
axisLineShow: true,
|
|
515
|
+
axisLineColor: '#6E7079',
|
|
516
|
+
axisTickShow: true,
|
|
517
|
+
axisTickColor: '#6E7079',
|
|
518
|
+
axisLabelShow: true,
|
|
519
|
+
axisLabelColor: '#6E7079',
|
|
520
|
+
splitLineShow: false,
|
|
521
|
+
splitLineColor: ['#E0E6F1'],
|
|
522
|
+
splitAreaShow: false,
|
|
523
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
type: 'value',
|
|
527
|
+
name: '数值坐标轴',
|
|
528
|
+
axisLineShow: true,
|
|
529
|
+
axisLineColor: '#6E7079',
|
|
530
|
+
axisTickShow: false,
|
|
531
|
+
axisTickColor: '#6E7079',
|
|
532
|
+
axisLabelShow: true,
|
|
533
|
+
axisLabelColor: '#6E7079',
|
|
534
|
+
splitLineShow: true,
|
|
535
|
+
splitLineColor: ['#E0E6F1'],
|
|
536
|
+
splitAreaShow: false,
|
|
537
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
type: 'log',
|
|
541
|
+
name: '对数坐标轴',
|
|
542
|
+
axisLineShow: false,
|
|
543
|
+
axisLineColor: '#6E7079',
|
|
544
|
+
axisTickShow: false,
|
|
545
|
+
axisTickColor: '#6E7079',
|
|
546
|
+
axisLabelShow: true,
|
|
547
|
+
axisLabelColor: '#6E7079',
|
|
548
|
+
splitLineShow: false,
|
|
549
|
+
splitLineColor: ['#E0E6F1'],
|
|
550
|
+
splitAreaShow: true,
|
|
551
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
type: 'time',
|
|
555
|
+
name: '时间坐标轴',
|
|
556
|
+
axisLineShow: true,
|
|
557
|
+
axisLineColor: '#6E7079',
|
|
558
|
+
axisTickShow: true,
|
|
559
|
+
axisTickColor: '#6E7079',
|
|
560
|
+
axisLabelShow: true,
|
|
561
|
+
axisLabelColor: '#6E7079',
|
|
562
|
+
splitLineShow: false,
|
|
563
|
+
splitLineColor: ['#E0E6F1'],
|
|
564
|
+
splitAreaShow: false,
|
|
565
|
+
splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)'],
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
axisSeperateSetting: false,
|
|
569
|
+
toolboxColor: 'rgba(0,0,0,0.3)',
|
|
570
|
+
toolboxEmphasisColor: 'rgba(0,0,0,0.75)',
|
|
571
|
+
tooltipAxisColor: 'rgba(0,0,0,0.3)',
|
|
572
|
+
tooltipAxisWidth: '1',
|
|
573
|
+
timelineLineColor: 'rgba(0,0,0,0)',
|
|
574
|
+
timelineLineWidth: '1',
|
|
575
|
+
timelineItemColor: 'rgba(0,0,0,0.3)',
|
|
576
|
+
timelineItemColorE: 'rgba(0,0,0,0.6)',
|
|
577
|
+
timelineCheckColor: '#0e777c',
|
|
578
|
+
timelineCheckBorderColor: '#ffffff',
|
|
579
|
+
timelineItemBorderWidth: '1',
|
|
580
|
+
timelineControlColor: '#0e777c',
|
|
581
|
+
timelineControlBorderColor: '#0e777c',
|
|
582
|
+
timelineControlBorderWidth: '1',
|
|
583
|
+
timelineLabelColor: 'rgba(0,0,0,0.3)',
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
/*
|
|
588
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
589
|
+
*
|
|
590
|
+
* SPDX-License-Identifier: MIT
|
|
591
|
+
*
|
|
592
|
+
* This source code is licensed under the MIT license found in the
|
|
593
|
+
* LICENSE file in the root directory of this source tree.
|
|
594
|
+
*/
|
|
595
|
+
function registerEChartsThemes() {
|
|
596
|
+
if (echarts === undefined) {
|
|
597
|
+
console.error('echarts not found!');
|
|
598
|
+
}
|
|
599
|
+
[
|
|
600
|
+
classicDarkProject,
|
|
601
|
+
classicLightProject,
|
|
602
|
+
brandDarkProject,
|
|
603
|
+
brandLightProject,
|
|
604
|
+
].forEach((themeBundle) => {
|
|
605
|
+
echarts.registerTheme(themeBundle.themeName, themeBundle.theme);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/*
|
|
610
|
+
* SPDX-FileCopyrightText: 2022 Siemens AG
|
|
611
|
+
*
|
|
612
|
+
* SPDX-License-Identifier: MIT
|
|
613
|
+
*
|
|
614
|
+
* This source code is licensed under the MIT license found in the
|
|
615
|
+
* LICENSE file in the root directory of this source tree.
|
|
616
|
+
*/
|
|
617
|
+
registerEChartsThemes();
|