@cgeui/utils 0.0.1 → 0.0.3

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.
Files changed (97) hide show
  1. package/dist/esm/charts/Chart/utils/complementData.js +714 -0
  2. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/chartsToEchartsConfig.js +99 -0
  3. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/index.js +2 -0
  4. package/dist/esm/charts/Chart/utils/convertToEchartsConfig/pieChartToEchartsConfig.js +140 -0
  5. package/dist/esm/charts/Chart/utils/getOption.js +365 -0
  6. package/dist/esm/charts/Chart/utils/handleChartConfig.js +279 -0
  7. package/dist/esm/charts/Chart/utils/index.js +5 -0
  8. package/dist/esm/charts/Chart/utils/preConfig/index.js +307 -0
  9. package/dist/esm/charts/Chart/utils/preConfig/type.js +1 -0
  10. package/dist/esm/charts/PieChart/interface.js +1 -0
  11. package/dist/esm/charts/PieChart/locales/en-US.js +9 -0
  12. package/dist/esm/charts/PieChart/locales/index.js +7 -0
  13. package/dist/esm/charts/PieChart/locales/zh-CN.js +9 -0
  14. package/dist/esm/charts/PieChart/util.js +434 -0
  15. package/dist/esm/charts/SuperChart/config/bar.js +39 -0
  16. package/dist/esm/charts/SuperChart/config/index.js +237 -0
  17. package/dist/esm/charts/SuperChart/configStyle/color.js +23 -0
  18. package/dist/esm/charts/SuperChart/configStyle/dataZoom.js +13 -0
  19. package/dist/esm/charts/SuperChart/configStyle/grid.js +20 -0
  20. package/dist/esm/charts/SuperChart/configStyle/index.js +10 -0
  21. package/dist/esm/charts/SuperChart/configStyle/legend.js +68 -0
  22. package/dist/esm/charts/SuperChart/configStyle/lineStyle.js +80 -0
  23. package/dist/esm/charts/SuperChart/configStyle/title.js +16 -0
  24. package/dist/esm/charts/SuperChart/configStyle/tooltip.js +38 -0
  25. package/dist/esm/charts/SuperChart/configStyle/visualMap.js +18 -0
  26. package/dist/esm/charts/SuperChart/configStyle/xAxis.js +19 -0
  27. package/dist/esm/charts/SuperChart/configStyle/yAxis.js +56 -0
  28. package/dist/esm/charts/SuperChart/interface.js +1 -0
  29. package/dist/esm/charts/chartTheme/colorUtil.js +22 -0
  30. package/dist/esm/charts/chartTheme/darkChart.js +508 -0
  31. package/dist/esm/charts/chartTheme/defaultChart.js +492 -0
  32. package/dist/esm/charts/chartTheme/index.js +4 -0
  33. package/dist/esm/charts/chartTheme/themeColor.js +168 -0
  34. package/dist/esm/charts/index.js +5 -0
  35. package/dist/esm/charts/utils/charts/hex2Rgb.js +32 -0
  36. package/dist/esm/charts/utils/constants/env.js +6 -0
  37. package/dist/esm/charts/utils/constants/helper.js +5 -0
  38. package/dist/esm/charts/utils/constants/index.js +3 -0
  39. package/dist/esm/charts/utils/constants/table.js +17 -0
  40. package/dist/esm/charts/utils/data.js +450 -0
  41. package/dist/esm/charts/utils/index.js +5 -0
  42. package/dist/esm/charts/utils/locale.js +7 -0
  43. package/dist/esm/charts/utils/time/index.js +14 -0
  44. package/dist/esm/charts/utils/types/action.d.ts +33 -0
  45. package/dist/esm/charts/utils/types/chart.d.ts +220 -0
  46. package/dist/esm/charts/utils/types/data.d.ts +51 -0
  47. package/dist/esm/charts/utils/types/index.d.ts +3 -0
  48. package/dist/esm/index.js +3 -0
  49. package/dist/lib/charts/Chart/utils/complementData.js +721 -0
  50. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/chartsToEchartsConfig.js +105 -0
  51. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/index.js +27 -0
  52. package/dist/lib/charts/Chart/utils/convertToEchartsConfig/pieChartToEchartsConfig.js +147 -0
  53. package/dist/lib/charts/Chart/utils/getOption.js +371 -0
  54. package/dist/lib/charts/Chart/utils/handleChartConfig.js +284 -0
  55. package/dist/lib/charts/Chart/utils/index.js +60 -0
  56. package/dist/lib/charts/Chart/utils/preConfig/index.js +313 -0
  57. package/dist/lib/charts/Chart/utils/preConfig/type.js +5 -0
  58. package/dist/lib/charts/PieChart/interface.js +5 -0
  59. package/dist/lib/charts/PieChart/locales/en-US.js +15 -0
  60. package/dist/lib/charts/PieChart/locales/index.js +14 -0
  61. package/dist/lib/charts/PieChart/locales/zh-CN.js +15 -0
  62. package/dist/lib/charts/PieChart/util.js +441 -0
  63. package/dist/lib/charts/SuperChart/config/bar.js +45 -0
  64. package/dist/lib/charts/SuperChart/config/index.js +243 -0
  65. package/dist/lib/charts/SuperChart/configStyle/color.js +29 -0
  66. package/dist/lib/charts/SuperChart/configStyle/dataZoom.js +19 -0
  67. package/dist/lib/charts/SuperChart/configStyle/grid.js +26 -0
  68. package/dist/lib/charts/SuperChart/configStyle/index.js +76 -0
  69. package/dist/lib/charts/SuperChart/configStyle/legend.js +74 -0
  70. package/dist/lib/charts/SuperChart/configStyle/lineStyle.js +86 -0
  71. package/dist/lib/charts/SuperChart/configStyle/title.js +22 -0
  72. package/dist/lib/charts/SuperChart/configStyle/tooltip.js +44 -0
  73. package/dist/lib/charts/SuperChart/configStyle/visualMap.js +24 -0
  74. package/dist/lib/charts/SuperChart/configStyle/xAxis.js +25 -0
  75. package/dist/lib/charts/SuperChart/configStyle/yAxis.js +62 -0
  76. package/dist/lib/charts/SuperChart/interface.js +5 -0
  77. package/dist/lib/charts/chartTheme/colorUtil.js +28 -0
  78. package/dist/lib/charts/chartTheme/darkChart.js +514 -0
  79. package/dist/lib/charts/chartTheme/defaultChart.js +498 -0
  80. package/dist/lib/charts/chartTheme/index.js +49 -0
  81. package/dist/lib/charts/chartTheme/themeColor.js +174 -0
  82. package/dist/lib/charts/index.js +60 -0
  83. package/dist/lib/charts/utils/charts/hex2Rgb.js +38 -0
  84. package/dist/lib/charts/utils/constants/env.js +12 -0
  85. package/dist/lib/charts/utils/constants/helper.js +11 -0
  86. package/dist/lib/charts/utils/constants/index.js +38 -0
  87. package/dist/lib/charts/utils/constants/table.js +23 -0
  88. package/dist/lib/charts/utils/data.js +454 -0
  89. package/dist/lib/charts/utils/index.js +60 -0
  90. package/dist/lib/charts/utils/locale.js +13 -0
  91. package/dist/lib/charts/utils/time/index.js +21 -0
  92. package/dist/lib/charts/utils/types/action.d.ts +33 -0
  93. package/dist/lib/charts/utils/types/chart.d.ts +220 -0
  94. package/dist/lib/charts/utils/types/data.d.ts +51 -0
  95. package/dist/lib/charts/utils/types/index.d.ts +3 -0
  96. package/dist/lib/index.js +25 -0
  97. package/package.json +10 -3
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var Y_AXIS_LIST = {
8
+ VALUE_UNIT: {
9
+ type: 'value',
10
+ axisLine: {
11
+ show: false
12
+ },
13
+ nameTextStyle: {
14
+ padding: [7, 15, 0, -23]
15
+ }
16
+ },
17
+ VALUE_SCALE: {
18
+ type: 'value',
19
+ scale: true,
20
+ axisLine: {
21
+ show: false
22
+ },
23
+ nameTextStyle: {
24
+ padding: [7, 15, 0, -23]
25
+ }
26
+ },
27
+ UNIT: {
28
+ type: 'value',
29
+ axisLine: {
30
+ show: false
31
+ }
32
+ },
33
+ DOUBLE_Y_AXIS: [{
34
+ type: 'value',
35
+ position: 'left',
36
+ alignTicks: true,
37
+ axisLine: {
38
+ show: false
39
+ },
40
+ nameTextStyle: {
41
+ padding: [0, 0, 0, -70]
42
+ },
43
+ //有两个y轴,所以需要隐藏一条分割线
44
+ splitLine: {
45
+ show: false
46
+ }
47
+ }, {
48
+ type: 'value',
49
+ position: 'right',
50
+ alignTicks: true,
51
+ nameTextStyle: {
52
+ padding: [7, -70, 0, 0]
53
+ },
54
+ axisLine: {
55
+ show: false
56
+ }
57
+ // splitLine: {
58
+ // show: false,
59
+ // },
60
+ }]
61
+ };
62
+ var _default = exports.default = Y_AXIS_LIST;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PIE_CHART_COLOR_LIST = exports.BATTERY_PACK_COLOR = exports.ANALYSIS_COLOR_LIST_NEW = exports.ANALYSIS_COLOR_LIST_LIGHT = exports.ANALYSIS_COLOR_LIST = void 0;
7
+ var color1 = ['#DBE8FF', '#DEFAE4', '#FEEEDA', '#E0E3FC', '#D9F9F1', '#FEF3D3', '#FCE0E2', '#DAf8fb', '#fee5dd', '#ede0fc', '#dbf1fc', '#fbe4f7'];
8
+ var color2 = ['#c2dbff', '#c4f5ce', '#fce4c5', '#cbd1f7', '#b6f0e1', '#feedbc', '#f7cdd0', '#bcf0f5', '#fcd8cc', '#e0cdf7', '#c3e6f7', '#f2d0ed'];
9
+ var color3 = ['#a3c3ff', '#aeebb8', '#fbdbb5', '#b9bff1', '#a4e9d8', '#ffe7a4', '#f3b7bb', '#a1e9ef', '#facbbc', '#d3b9f2', '#aedbf5', '#eec0e6'];
10
+ var color4 = ['#80b2ff', '#87e096', '#fad1a0', '#9fa7ec', '#82e0c9', '#ffe08c', '#ef9da2', '#80e0e8', '#f7b8a3', '#bf9beb', '#83c9f2', '#e7a9dd'];
11
+ var color5 = ['#5c9dff', '#67d679', '#f5c489', '#858fe7', '#56d6b7', '#ffd970', '#eb8188', '#5ad6e0', '#f59d7f', '#ab79eb', '#68bded', '#e191d3'];
12
+ var color6 = ['#3888ff', '#47d05d', '#f5ae59', '#626fe0', '#33cca7', '#ffd261', '#e55e66', '#2cccdb', '#f48a68', '#9d62e2'];
13
+ var color7 = ['#1467ff', '#30c147', '#f4a547', '#515fdd', '#1dc79e', '#ffcb47', '#d74851', '#14bdcc', '#e77754', '#9251df', '#34a5e5', '#c95db7', '#48aee7', '#d871c7'];
14
+ var color8 = ['#1a66f2', '#28b840', '#e5a85c', '#4d5ad2', '#1cbd96', '#ebb631', '#c04148', '#12a9b8', '#e06c48', '#864acc', '#2e93cc', '#bd57ac'];
15
+ var color9 = ['#1161d9', '#1ba832', '#cf8c3c', '#4551bc', '#19a886', '#cc9e2b', '#ad3a41', '#1096a3', '#b8583b', '#7843b8', '2a85b8', '#ab4f9c'];
16
+ var color10 = ['#0f52b8', '#1d8f30', '#b07733', '#3a449f', '#158a6e', '#9e7b21', '#993339', '#0e8894', '#a35137', '#6b2ba3', '#236e99', '#99478b'];
17
+ var ANALYSIS_COLOR_LIST = exports.ANALYSIS_COLOR_LIST = ['#0F52B8', '#B8583B', '#1CBD96', '#99478B', '#14BDCC', '#F48A68', '#AB79E8', '#83C9F2', '#EEC0E6', '#DBE8FF', '#A3C3FF', '#80B2FF', '#5C9DFF', '#3888FF', '#1467FF', '#1A66F2', '#1161D9', '#0C4191', '#093270', '#E0E3FC', '#CBD1F7', '#B9BFF1', '#9FA7EC', '#858FE7', '#626FE0', '#515FDD', '#4D5AD2', '#3A449F', '#2E367E', '#272D68', '#D9F9F1', '#B6F0E1', '#A4E9D8', '#82E0C9', '#56D6B7', '#33CCA7', '#1DC79E', '#19A886', '#158A6E', '#0A6650', '#0B4E3E', '#DAF8FB', '#BCF0F5', '#A1E9EF', '#80E0E8', '#5AD6E0', '#2CCCDB', '#12A9B8', '#1096A3', '#0E8894', '#0C717B', '#084E54', '#FEE5DD', '#FCD8CC', '#FACBBC', '#F7B8A3', '#F59D7F', '#E77754', '#E06C48', '#4551BC', '#A35137', '#8B4732', '#5F3122', '#EDE0FC', '#E0CDF7', '#D3B9F2', '#BF9BEB', '#9D62E2', '#9251DF', '#864ACC', '#7843B8', '#6B3BA3', '#532E7F', '#402461', '#DBF1FC', '#C3E6F7', '#AEDBF5', '#68BDED', '#48AEE7', '#34A5E5', '#2E93CC', '#2A85B8', '#236E99', '#1E5E83', '#174762', '#FBE4F7', '#F2D0ED', '#E7A9DD', '#E191D3', '#D871C7', '#C95DB7', '#BD57AC', '#AB4F9C', '#C2D8FF', '#79386E', '#53264B'];
18
+ var PIE_CHART_COLOR_LIST = exports.PIE_CHART_COLOR_LIST = ['#9251DF', '#515FDD', '#14BDCC', '#1467FF', '#FFCB47', '#C95DB7', '#1DC79E', '#F4A547', '#30C147', '#34A5E5'];
19
+ var ANALYSIS_COLOR_LIST_NEW = exports.ANALYSIS_COLOR_LIST_NEW = [].concat(color7, color9, color10, color1, color2, color8, color5, color6, color4, color3);
20
+ var ANALYSIS_COLOR_LIST_LIGHT = exports.ANALYSIS_COLOR_LIST_LIGHT = [].concat(color6, color8, color9, color10, color5, color3, color1, color7, color4, color2);
21
+ var BATTERY_PACK_COLOR = exports.BATTERY_PACK_COLOR = {
22
+ 0: '#19D56B',
23
+ 1: '#FFCB47',
24
+ 2: '#F4A547',
25
+ 3: '#D74851',
26
+ alarm: '#9740FF',
27
+ clear: '#14bdcc'
28
+ };
@@ -0,0 +1,514 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.darkPieChartTheme = exports.darkChartTheme = void 0;
7
+ var _themeColor = require("./themeColor");
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
+ var legend = {
15
+ itemWidth: 8,
16
+ itemHeight: 8,
17
+ textStyle: {
18
+ color: "rgba(255, 255, 255, 0.85)"
19
+ },
20
+ itemStyle: {
21
+ opacity: 0.85
22
+ },
23
+ icon: 'diamond',
24
+ right: 0,
25
+ pageIconSize: 10,
26
+ // 翻页按钮大小
27
+ pageIconColor: "rgba(255,255,255, 0.7)",
28
+ // 可以翻页
29
+ pageIconInactiveColor: "rgba(255,255,255, 0.3)",
30
+ // 不能翻页
31
+ pageTextStyle: {
32
+ color: "rgba(255, 255, 255, 0.85)"
33
+ }
34
+ };
35
+ var barBackground = {
36
+ showBackground: true,
37
+ backgroundStyle: {
38
+ color: _themeColor.themeColor.grey,
39
+ opacity: 0.0857
40
+ }
41
+ };
42
+ var tooltip = {
43
+ trigger: "axis",
44
+ axisPointer: {
45
+ type: "shadow",
46
+ shadowStyle: {
47
+ color: "rgba(12, 111, 242, 0.09)",
48
+ width: 40
49
+ }
50
+ },
51
+ backgroundColor: "rgba(255, 255, 255, 0.13)",
52
+ borderColor: "rgba(255, 255, 255, 0.13)",
53
+ textStyle: {
54
+ color: "#fff"
55
+ },
56
+ padding: 10,
57
+ className: "frosted-glass",
58
+ extraCssText: "max-height: 240px; max-width: 400px; overflow: auto;box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);",
59
+ appendToBody: true,
60
+ enterable: true,
61
+ confine: true
62
+ };
63
+ var colorArr = ["#00B42A", "#F4A547", "#525FDD", "#FFCB47", "#34A5E5", "#E67754", "#13BDCC", "#C85DB8", "#30C147", "#9251DE"];
64
+ var darkPieChartTheme = exports.darkPieChartTheme = {
65
+ color: colorArr,
66
+ backgroundColor: "transparent",
67
+ textStyle: {},
68
+ title: {
69
+ textStyle: {
70
+ color: _themeColor.themeColor.white
71
+ },
72
+ subtextStyle: {
73
+ color: _themeColor.themeColor["white-1"]
74
+ }
75
+ },
76
+ legend: {
77
+ itemWidth: 6,
78
+ itemHeight: 6,
79
+ textStyle: {
80
+ color: "rgba(255, 255, 255, 0.85)"
81
+ },
82
+ itemStyle: {
83
+ opacity: 0.85
84
+ },
85
+ icon: "circle",
86
+ right: 0,
87
+ pageIconSize: 10,
88
+ // 翻页按钮大小
89
+ pageIconColor: "rgba(255,255,255, 0.7)",
90
+ // 可以翻页
91
+ pageIconInactiveColor: "rgba(255,255,255, 0.3)",
92
+ // 不能翻页
93
+ pageTextStyle: {
94
+ color: "rgba(255, 255, 255, 0.85)"
95
+ }
96
+ },
97
+ tooltip: tooltip
98
+ };
99
+ var darkChartTheme = exports.darkChartTheme = {
100
+ color: colorArr,
101
+ backgroundColor: "transparent",
102
+ textStyle: {},
103
+ title: {
104
+ textStyle: {
105
+ color: _themeColor.themeColor.white
106
+ },
107
+ subtextStyle: {
108
+ color: _themeColor.themeColor["white-1"]
109
+ }
110
+ },
111
+ line: {
112
+ itemStyle: {
113
+ borderWidth: 1
114
+ },
115
+ lineStyle: {
116
+ width: 2
117
+ },
118
+ symbolSize: 4,
119
+ symbol: "emptyCircle"
120
+ // smooth: true,
121
+ },
122
+ radar: {
123
+ itemStyle: {
124
+ borderWidth: 1
125
+ },
126
+ lineStyle: {
127
+ width: 2
128
+ },
129
+ symbolSize: 4,
130
+ symbol: "emptyCircle",
131
+ smooth: false
132
+ },
133
+ bar: _objectSpread(_objectSpread({}, barBackground), {}, {
134
+ barWidth: 16,
135
+ itemStyle: {
136
+ barBorderWidth: 0,
137
+ barBorderColor: "#ccc"
138
+ },
139
+ label: {
140
+ color: "#fff",
141
+ fontWeight: 500,
142
+ fontSize: 14
143
+ }
144
+ }),
145
+ pie: {
146
+ itemStyle: {
147
+ borderWidth: 3,
148
+ borderColor: "#0B1227"
149
+ }
150
+ },
151
+ scatter: {
152
+ itemStyle: {
153
+ borderWidth: 0,
154
+ borderColor: "#ccc"
155
+ }
156
+ },
157
+ boxplot: {},
158
+ parallel: {
159
+ itemStyle: {
160
+ borderWidth: 0,
161
+ borderColor: "#ccc"
162
+ }
163
+ },
164
+ sankey: {
165
+ itemStyle: {
166
+ borderWidth: 0,
167
+ borderColor: "#ccc"
168
+ }
169
+ },
170
+ funnel: {
171
+ itemStyle: {
172
+ borderWidth: 0,
173
+ borderColor: "#ccc"
174
+ }
175
+ },
176
+ gauge: {
177
+ itemStyle: {
178
+ borderWidth: 0,
179
+ borderColor: "#ccc"
180
+ }
181
+ },
182
+ candlestick: {
183
+ itemStyle: {
184
+ color: "#c12e34",
185
+ color0: "#2b821d",
186
+ borderColor: "#c12e34",
187
+ borderColor0: "#2b821d",
188
+ borderWidth: 1
189
+ }
190
+ },
191
+ graph: {
192
+ itemStyle: {
193
+ borderWidth: 0,
194
+ borderColor: "#ccc"
195
+ },
196
+ lineStyle: {
197
+ width: 1,
198
+ color: "#aaaaaa"
199
+ },
200
+ symbolSize: 4,
201
+ symbol: "emptyCircle",
202
+ smooth: false,
203
+ color: ["#c12e34", "#e6b600", "#0098d9", "#2b821d", "#005eaa", "#339ca8", "#cda819", "#32a487"],
204
+ label: {
205
+ color: "#eeeeee"
206
+ }
207
+ },
208
+ map: {
209
+ itemStyle: {
210
+ areaColor: "#ddd",
211
+ borderColor: "#eee",
212
+ borderWidth: 0.5
213
+ },
214
+ label: {
215
+ color: "#c12e34"
216
+ },
217
+ emphasis: {
218
+ itemStyle: {
219
+ areaColor: "#e6b600",
220
+ borderColor: "#ddd",
221
+ borderWidth: 1
222
+ },
223
+ label: {
224
+ color: "#c12e34"
225
+ }
226
+ }
227
+ },
228
+ geo: {
229
+ itemStyle: {
230
+ areaColor: "#ddd",
231
+ borderColor: "#eee",
232
+ borderWidth: 0.5
233
+ },
234
+ label: {
235
+ color: "#c12e34"
236
+ },
237
+ emphasis: {
238
+ itemStyle: {
239
+ areaColor: "#e6b600",
240
+ borderColor: "#ddd",
241
+ borderWidth: 1
242
+ },
243
+ label: {
244
+ color: "#c12e34"
245
+ }
246
+ }
247
+ },
248
+ categoryAxis: {
249
+ axisLine: {
250
+ show: true,
251
+ lineStyle: {
252
+ type: "solid",
253
+ color: "#414961",
254
+ width: 1.5
255
+ }
256
+ },
257
+ axisTick: {
258
+ show: false,
259
+ lineStyle: {
260
+ color: "#414961"
261
+ }
262
+ },
263
+ nameTextStyle: {
264
+ color: _themeColor.themeColor.white,
265
+ opacity: 0.85
266
+ },
267
+ axisLabel: {
268
+ show: true,
269
+ color: _themeColor.themeColor["white-9"],
270
+ hideOverlap: true
271
+ },
272
+ splitLine: {
273
+ show: false,
274
+ lineStyle: {
275
+ type: "dashed",
276
+ color: _themeColor.themeColor["white-5"]
277
+ }
278
+ },
279
+ splitArea: {
280
+ show: false,
281
+ areaStyle: {
282
+ color: ["rgba(250,250,250,0.3)", "rgba(200,200,200,0.3)"]
283
+ }
284
+ }
285
+ },
286
+ valueAxis: {
287
+ scale: true,
288
+ axisLine: {
289
+ show: false,
290
+ lineStyle: {
291
+ type: "solid",
292
+ color: "#414961",
293
+ width: 1.5
294
+ }
295
+ },
296
+ axisTick: {
297
+ show: false,
298
+ lineStyle: {
299
+ color: "#414961"
300
+ }
301
+ },
302
+ axisLabel: {
303
+ show: true,
304
+ margin: 15,
305
+ color: _themeColor.themeColor["white-9"],
306
+ hideOverlap: true
307
+ },
308
+ splitLine: {
309
+ show: true,
310
+ lineStyle: {
311
+ type: "dashed",
312
+ color: _themeColor.themeColor["white-5"]
313
+ }
314
+ },
315
+ splitArea: {
316
+ show: false,
317
+ areaStyle: {
318
+ color: ["rgba(250,250,250,0.3)", "rgba(200,200,200,0.3)"]
319
+ }
320
+ },
321
+ nameTextStyle: {
322
+ color: _themeColor.themeColor.white,
323
+ opacity: 0.85
324
+ }
325
+ },
326
+ logAxis: {
327
+ axisLine: {
328
+ show: true,
329
+ lineStyle: {
330
+ color: "#414961"
331
+ }
332
+ },
333
+ axisTick: {
334
+ show: true,
335
+ lineStyle: {
336
+ color: "#414961"
337
+ }
338
+ },
339
+ axisLabel: {
340
+ show: true,
341
+ color: _themeColor.themeColor["white-9"],
342
+ hideOverlap: true
343
+ },
344
+ splitLine: {
345
+ show: true,
346
+ lineStyle: {
347
+ type: "dashed",
348
+ color: _themeColor.themeColor["white-5"]
349
+ }
350
+ },
351
+ splitArea: {
352
+ show: false,
353
+ areaStyle: {
354
+ color: ["rgba(250,250,250,0.3)", "rgba(200,200,200,0.3)"]
355
+ }
356
+ }
357
+ },
358
+ timeAxis: {
359
+ axisLine: {
360
+ show: true,
361
+ lineStyle: {
362
+ type: "solid",
363
+ color: "#414961",
364
+ width: 1.5
365
+ }
366
+ },
367
+ axisTick: {
368
+ show: false,
369
+ lineStyle: {
370
+ color: "#414961"
371
+ }
372
+ },
373
+ axisLabel: {
374
+ show: true,
375
+ color: _themeColor.themeColor["white-9"],
376
+ formatter: {
377
+ year: "{yyyy}",
378
+ month: "{MMM}",
379
+ day: "{d}",
380
+ hour: "{HH}:{mm}",
381
+ minute: "{HH}:{mm}",
382
+ second: "{HH}:{mm}:{ss}"
383
+ },
384
+ hideOverlap: true
385
+ },
386
+ splitLine: {
387
+ show: false,
388
+ lineStyle: {
389
+ type: "dashed",
390
+ color: _themeColor.themeColor["white-5"]
391
+ }
392
+ },
393
+ splitArea: {
394
+ show: false
395
+ },
396
+ nameTextStyle: {
397
+ color: _themeColor.themeColor.white,
398
+ opacity: 0.85
399
+ }
400
+ },
401
+ toolbox: {
402
+ iconStyle: {
403
+ borderColor: "#06467c"
404
+ },
405
+ emphasis: {
406
+ iconStyle: {
407
+ borderColor: "#4187c2"
408
+ }
409
+ }
410
+ },
411
+ legend: legend,
412
+ tooltip: tooltip,
413
+ timeline: {
414
+ lineStyle: {
415
+ color: "#005eaa",
416
+ width: 1
417
+ },
418
+ itemStyle: {
419
+ color: "#005eaa",
420
+ borderWidth: 1
421
+ },
422
+ controlStyle: {
423
+ color: "#005eaa",
424
+ borderColor: "#005eaa",
425
+ borderWidth: 0.5
426
+ },
427
+ checkpointStyle: {
428
+ color: "#005eaa",
429
+ borderColor: "#316bc2"
430
+ },
431
+ label: {
432
+ color: "#005eaa"
433
+ },
434
+ emphasis: {
435
+ itemStyle: {
436
+ color: "#005eaa"
437
+ },
438
+ controlStyle: {
439
+ color: "#005eaa",
440
+ borderColor: "#005eaa",
441
+ borderWidth: 0.5
442
+ },
443
+ label: {
444
+ color: "#005eaa"
445
+ }
446
+ }
447
+ },
448
+ visualMap: {
449
+ color: ["#1790cf", "#a2d4e6"],
450
+ textStyle: {
451
+ color: "#fff"
452
+ }
453
+ },
454
+ dataZoom: {
455
+ backgroundColor: "rgba(47,69,84,0)",
456
+ dataBackgroundColor: "rgba(47,69,84,0.3)",
457
+ fillerColor: "rgba(167,183,204,0.4)",
458
+ handleColor: "#a7b7cc",
459
+ handleSize: "100%",
460
+ textStyle: {
461
+ color: "#333333"
462
+ }
463
+ },
464
+ markPoint: {
465
+ label: {
466
+ color: "#eeeeee"
467
+ },
468
+ emphasis: {
469
+ label: {
470
+ color: "#eeeeee"
471
+ }
472
+ }
473
+ },
474
+ categoryAxis3D: {
475
+ axisLabel: {
476
+ color: "rgba(255, 255, 255, 0.5)",
477
+ hideOverlap: true
478
+ },
479
+ axisLine: {
480
+ lineStyle: {
481
+ type: "solid",
482
+ color: "#414961",
483
+ width: 1.5
484
+ }
485
+ },
486
+ splitLine: {
487
+ show: true,
488
+ lineStyle: {
489
+ type: "dashed",
490
+ color: "rgba(255, 255, 255, 0.2)"
491
+ }
492
+ }
493
+ },
494
+ valueAxis3D: {
495
+ axisLabel: {
496
+ color: "rgba(255, 255, 255, 0.5)",
497
+ hideOverlap: true
498
+ },
499
+ axisLine: {
500
+ lineStyle: {
501
+ type: "solid",
502
+ color: "#414961",
503
+ width: 1.5
504
+ }
505
+ },
506
+ splitLine: {
507
+ show: true,
508
+ lineStyle: {
509
+ type: "dashed",
510
+ color: "rgba(255, 255, 255, 0.2)"
511
+ }
512
+ }
513
+ }
514
+ };