testio-tailwind 3.2.0 → 3.4.0
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/package.json +1 -1
- package/src/_includes/header.njk +2 -2
- package/src/assets/images/assets_agenticqa/agenticqa_email_header.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black.svg +32 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black_1000px.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black_3000px.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white.svg +33 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white_1000px.png +0 -0
- package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white_3000px.png +0 -0
- package/src/assets/scripts/app.js +23 -17
- package/src/assets/scripts/modules/colors.js +10 -2
- package/src/assets/scripts/modules/echarts_area.js +10 -6
- package/src/assets/scripts/modules/echarts_donut.js +20 -4
- package/src/assets/scripts/modules/echarts_exampledata.js +2 -2
- package/src/assets/scripts/modules/echarts_gauge.js +5 -5
- package/src/assets/scripts/modules/echarts_horizontal.js +18 -3
- package/src/assets/scripts/modules/echarts_line.js +84 -0
- package/src/assets/scripts/modules/echarts_vertical.js +5 -3
- package/src/assets/stylesheets/components/customer/customer_productcards.css +2 -2
- package/src/assets/stylesheets/components/list_item.css +4 -0
- package/src/assets/stylesheets/tailwind_config.css +2 -2
- package/src/pages/agenticqa/assets.haml +10 -0
- package/src/pages/{testinator → agenticqa}/email.njk +3 -3
- package/src/pages/agenticqa/index.njk +7 -0
- package/src/pages/agenticqa/logo.haml +18 -0
- package/src/pages/charts/area.haml +21 -17
- package/src/pages/charts/bar_horizontal.haml +369 -220
- package/src/pages/charts/bar_vertical.haml +373 -367
- package/src/pages/charts/colors.haml +28 -0
- package/src/pages/charts/donut.haml +81 -16
- package/src/pages/charts/gauge.haml +40 -1
- package/src/pages/charts/legend.haml +22 -0
- package/src/pages/charts/line.haml +205 -0
- package/src/pages/colors.pug +2 -2
- package/src/pages/email-templates/{email_testinator.pug → email_agenticqa.pug} +14 -14
- package/src/static/app.bundled.js +19 -8
- package/index.html +0 -405
- package/src/assets/images/assets_testinator/testinator_email_header.png +0 -0
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black.png +0 -0
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black.svg +0 -33
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black_1000px.png +0 -0
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white.png +0 -0
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white.svg +0 -33
- package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white_1000px.png +0 -0
- package/src/pages/testinator/assets.haml +0 -10
- package/src/pages/testinator/index.njk +0 -7
- package/src/pages/testinator/logo.haml +0 -18
|
@@ -3,169 +3,12 @@ tags: charts
|
|
|
3
3
|
title: Bar chart vertical
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
.div
|
|
7
|
-
%details.listitem.mb-md
|
|
8
|
-
%summary.listitem-header
|
|
9
|
-
.listitem-title
|
|
10
|
-
%span.icon.icon-format-code.mr-xs
|
|
11
|
-
Initialize vertical bar chart
|
|
12
|
-
.listitem-metrics
|
|
13
|
-
.listitem-actions
|
|
14
|
-
.btn.collapse-btn
|
|
15
|
-
.listitem-content
|
|
16
|
-
.listitem-subheadline HTML
|
|
17
|
-
.listitem-card
|
|
18
|
-
%code .echarts-container#element-id
|
|
19
|
-
.listitem-subheadline app.js
|
|
20
|
-
.listitem-card
|
|
21
|
-
%pre.code.break-spaces
|
|
22
|
-
:plain
|
|
23
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
24
|
-
createChartVertical (target, targetDataY, targetDataX, itemWidth);
|
|
25
|
-
.listitem-subheadline echarts_vertical.js
|
|
26
|
-
.listitem-card
|
|
27
|
-
%pre.code.break-spaces
|
|
28
|
-
:plain
|
|
29
|
-
import * as echarts from 'echarts';
|
|
30
|
-
export function createChartVertical (target, targetDataY, targetDataX, itemWidth) {
|
|
31
|
-
var chartHeight = 200;
|
|
32
|
-
var labelHeight = 20;
|
|
33
|
-
var dom = document.getElementById(target);
|
|
34
|
-
var myChartVertical = echarts.init(dom, null, {
|
|
35
|
-
renderer: 'canvas',
|
|
36
|
-
useDirtyRect: false,
|
|
37
|
-
height: chartHeight + labelHeight
|
|
38
|
-
});
|
|
39
|
-
var itemWidthUser;
|
|
40
|
-
if (itemWidth) {
|
|
41
|
-
var itemWidthUser = itemWidth;
|
|
42
|
-
} else {
|
|
43
|
-
itemWidthUser = targetDataX.length -1
|
|
44
|
-
};
|
|
45
|
-
var optionVertical;
|
|
46
|
-
var optionVertical = {
|
|
47
|
-
tooltip: {
|
|
48
|
-
trigger: 'axis',
|
|
49
|
-
axisPointer: {
|
|
50
|
-
type: 'shadow'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
grid: {
|
|
54
|
-
height: chartHeight,
|
|
55
|
-
top: '15',
|
|
56
|
-
left: '0',
|
|
57
|
-
right: '10',
|
|
58
|
-
bottom: '0',
|
|
59
|
-
containLabel: true
|
|
60
|
-
},
|
|
61
|
-
xAxis: {
|
|
62
|
-
show: true,
|
|
63
|
-
type: 'category',
|
|
64
|
-
max: itemWidthUser,
|
|
65
|
-
data: targetDataX,
|
|
66
|
-
axisTick: {
|
|
67
|
-
show: false
|
|
68
|
-
},
|
|
69
|
-
axisLine: {
|
|
70
|
-
show: false
|
|
71
|
-
},
|
|
72
|
-
axisLabel: {
|
|
73
|
-
show: true,
|
|
74
|
-
width: 100,
|
|
75
|
-
overflow: "truncate",
|
|
76
|
-
ellipsis: '…',
|
|
77
|
-
hideOverlap: true,
|
|
78
|
-
interval: 0
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
yAxis: {
|
|
82
|
-
show: false,
|
|
83
|
-
type: 'value'
|
|
84
|
-
},
|
|
85
|
-
series: [
|
|
86
|
-
{
|
|
87
|
-
data: targetDataY,
|
|
88
|
-
type: 'bar',
|
|
89
|
-
barWidth: 15,
|
|
90
|
-
label: {
|
|
91
|
-
show: true,
|
|
92
|
-
position: 'center',
|
|
93
|
-
verticalAlign: 'top',
|
|
94
|
-
offset: [0, -15]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
};
|
|
99
|
-
if (optionVertical && typeof optionVertical === 'object') {
|
|
100
|
-
myChartVertical.setOption(optionVertical);
|
|
101
|
-
}
|
|
102
|
-
window.addEventListener('resize', myChartVertical.resize);
|
|
103
|
-
}
|
|
104
6
|
|
|
105
|
-
%p.mt-md.mb-xs With adaptive item width
|
|
106
|
-
.card.p-md.mb-xs
|
|
107
|
-
.echarts-container#echarts-bar-vertical-1
|
|
108
|
-
%details.listitem.mb-md
|
|
109
|
-
%summary.listitem-header
|
|
110
|
-
.listitem-title
|
|
111
|
-
%span.icon.icon-format-code.mr-xs
|
|
112
|
-
Create vertical bar chart with 6 items
|
|
113
|
-
.listitem-metrics
|
|
114
|
-
.listitem-actions
|
|
115
|
-
.btn.collapse-btn
|
|
116
|
-
.listitem-content
|
|
117
|
-
.listitem-subheadline HTML
|
|
118
|
-
.listitem-card
|
|
119
|
-
%code .echarts-container#element-id
|
|
120
|
-
.listitem-subheadline app.js
|
|
121
|
-
.listitem-card
|
|
122
|
-
%pre.code.break-spaces
|
|
123
|
-
:plain
|
|
124
|
-
import { createChartVertical } from './modules/echarts_vertical';
|
|
125
|
-
createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
|
|
126
|
-
.listitem-subheadline data.js
|
|
127
|
-
.listitem-card
|
|
128
|
-
%pre.code.break-spaces
|
|
129
|
-
:plain
|
|
130
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
131
|
-
export let dataBugs = [
|
|
132
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
133
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
134
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
135
|
-
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
136
|
-
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
137
|
-
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
138
|
-
];
|
|
139
|
-
export let dataBugsCategories = [
|
|
140
|
-
{ value:'Critical'},
|
|
141
|
-
{ value: 'High'},
|
|
142
|
-
{ value: 'Low'},
|
|
143
|
-
{ value: 'Visual'},
|
|
144
|
-
{ value: 'Content'},
|
|
145
|
-
{ value: 'UX'}
|
|
146
|
-
];
|
|
147
|
-
.listitem-subheadline colors.js
|
|
148
|
-
.listitem-card
|
|
149
|
-
%pre.code.break-spaces
|
|
150
|
-
:plain
|
|
151
|
-
export const colorCritical = '#FF3131';
|
|
152
|
-
export const colorHigh = '#d8ce0d';
|
|
153
|
-
export const colorLow = '#9fa2a8';
|
|
154
|
-
export const colorVisual = '#f48d21';
|
|
155
|
-
export const colorContent = '#326dd1';
|
|
156
|
-
export const colorUX = '#263340';
|
|
157
|
-
export const colorSuccess = '#8cbd24';
|
|
158
|
-
export const colorDanger = '#FF3131';
|
|
159
|
-
export const colorNeutral = '#e6e6e6';
|
|
160
|
-
export const colorInfo = '#326dd1';
|
|
161
|
-
export const colorBlueLight = '#21bef4';
|
|
162
|
-
.card.p-md.mb-xs
|
|
163
|
-
.echarts-container#echarts-bar-vertical-2
|
|
164
7
|
%details.listitem.mb-md
|
|
165
8
|
%summary.listitem-header
|
|
166
9
|
.listitem-title
|
|
167
10
|
%span.icon.icon-format-code.mr-xs
|
|
168
|
-
|
|
11
|
+
Initialize vertical bar chart
|
|
169
12
|
.listitem-metrics
|
|
170
13
|
.listitem-actions
|
|
171
14
|
.btn.collapse-btn
|
|
@@ -178,215 +21,378 @@ title: Bar chart vertical
|
|
|
178
21
|
%pre.code.break-spaces
|
|
179
22
|
:plain
|
|
180
23
|
import { createChartVertical } from './modules/echarts_vertical';
|
|
181
|
-
createChartVertical(
|
|
182
|
-
.listitem-subheadline
|
|
183
|
-
.listitem-card
|
|
184
|
-
%pre.code.break-spaces
|
|
185
|
-
:plain
|
|
186
|
-
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
187
|
-
export let dataBugsFew = [
|
|
188
|
-
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
189
|
-
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
190
|
-
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
191
|
-
];
|
|
192
|
-
export let dataBugsCategoriesFew = [
|
|
193
|
-
{ value:'Critical'},
|
|
194
|
-
{ value: 'High'},
|
|
195
|
-
{ value: 'Low'}
|
|
196
|
-
];
|
|
197
|
-
.listitem-subheadline colors.js
|
|
24
|
+
createChartVertical (target, targetDataY, targetDataX, itemWidth);
|
|
25
|
+
.listitem-subheadline echarts_vertical.js
|
|
198
26
|
.listitem-card
|
|
199
27
|
%pre.code.break-spaces
|
|
200
28
|
:plain
|
|
201
|
-
|
|
202
|
-
export
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
29
|
+
import * as echarts from 'echarts';
|
|
30
|
+
export function createChartVertical (target, targetDataY, targetDataX, itemWidth) {
|
|
31
|
+
var chartHeight = 200;
|
|
32
|
+
var labelHeight = 20;
|
|
33
|
+
var dom = document.getElementById(target);
|
|
34
|
+
var myChartVertical = echarts.init(dom, null, {
|
|
35
|
+
renderer: 'canvas',
|
|
36
|
+
useDirtyRect: false,
|
|
37
|
+
height: chartHeight + labelHeight
|
|
38
|
+
});
|
|
39
|
+
var itemWidthUser;
|
|
40
|
+
if (itemWidth) {
|
|
41
|
+
var itemWidthUser = itemWidth;
|
|
42
|
+
} else {
|
|
43
|
+
itemWidthUser = targetDataX.length -1
|
|
44
|
+
};
|
|
45
|
+
var optionVertical;
|
|
46
|
+
var optionVertical = {
|
|
47
|
+
tooltip: {
|
|
48
|
+
trigger: 'axis',
|
|
49
|
+
axisPointer: {
|
|
50
|
+
type: 'shadow'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
grid: {
|
|
54
|
+
height: chartHeight,
|
|
55
|
+
top: '15',
|
|
56
|
+
left: '0',
|
|
57
|
+
right: '10',
|
|
58
|
+
bottom: '0',
|
|
59
|
+
containLabel: true
|
|
60
|
+
},
|
|
61
|
+
xAxis: {
|
|
62
|
+
show: true,
|
|
63
|
+
type: 'category',
|
|
64
|
+
max: itemWidthUser,
|
|
65
|
+
data: targetDataX,
|
|
66
|
+
axisTick: {
|
|
67
|
+
show: false
|
|
68
|
+
},
|
|
69
|
+
axisLine: {
|
|
70
|
+
show: false
|
|
71
|
+
},
|
|
72
|
+
axisLabel: {
|
|
73
|
+
show: true,
|
|
74
|
+
width: 100,
|
|
75
|
+
overflow: "truncate",
|
|
76
|
+
ellipsis: '…',
|
|
77
|
+
hideOverlap: true,
|
|
78
|
+
interval: 0
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
yAxis: {
|
|
82
|
+
show: false,
|
|
83
|
+
type: 'value'
|
|
84
|
+
},
|
|
85
|
+
series: [
|
|
86
|
+
{
|
|
87
|
+
data: targetDataY,
|
|
88
|
+
type: 'bar',
|
|
89
|
+
barWidth: 15,
|
|
90
|
+
label: {
|
|
91
|
+
show: true,
|
|
92
|
+
position: 'center',
|
|
93
|
+
verticalAlign: 'top',
|
|
94
|
+
offset: [0, -15]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
if (optionVertical && typeof optionVertical === 'object') {
|
|
100
|
+
myChartVertical.setOption(optionVertical);
|
|
101
|
+
}
|
|
102
|
+
window.addEventListener('resize', myChartVertical.resize);
|
|
103
|
+
}
|
|
104
|
+
.grid.gap-spacing{class:"lg:grid-cols-2"}
|
|
105
|
+
.col
|
|
106
|
+
%p.mt-md.mb-xs With adaptive item width
|
|
107
|
+
.card.p-md.mb-xs
|
|
108
|
+
.echarts-container#echarts-bar-vertical-1
|
|
109
|
+
%details.listitem.mb-md
|
|
110
|
+
%summary.listitem-header
|
|
111
|
+
.listitem-title
|
|
112
|
+
%span.icon.icon-format-code.mr-xs
|
|
113
|
+
Create vertical bar chart with 6 items
|
|
114
|
+
.listitem-metrics
|
|
115
|
+
.listitem-actions
|
|
116
|
+
.btn.collapse-btn
|
|
117
|
+
.listitem-content
|
|
118
|
+
.listitem-subheadline HTML
|
|
119
|
+
.listitem-card
|
|
120
|
+
%code .echarts-container#element-id
|
|
121
|
+
.listitem-subheadline app.js
|
|
122
|
+
.listitem-card
|
|
123
|
+
%pre.code.break-spaces
|
|
124
|
+
:plain
|
|
125
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
126
|
+
createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
|
|
127
|
+
.listitem-subheadline data.js
|
|
128
|
+
.listitem-card
|
|
129
|
+
%pre.code.break-spaces
|
|
130
|
+
:plain
|
|
131
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
132
|
+
export let dataBugs = [
|
|
133
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
134
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
135
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
136
|
+
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
137
|
+
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
138
|
+
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
139
|
+
];
|
|
140
|
+
export let dataBugsCategories = [
|
|
141
|
+
{ value:'Critical'},
|
|
142
|
+
{ value: 'High'},
|
|
143
|
+
{ value: 'Low'},
|
|
144
|
+
{ value: 'Visual'},
|
|
145
|
+
{ value: 'Content'},
|
|
146
|
+
{ value: 'UX'}
|
|
147
|
+
];
|
|
148
|
+
.listitem-subheadline colors.js
|
|
149
|
+
.listitem-card
|
|
150
|
+
%pre.code.break-spaces
|
|
151
|
+
:plain
|
|
152
|
+
export const colorCritical = '#FF3131';
|
|
153
|
+
export const colorHigh = '#d8ce0d';
|
|
154
|
+
export const colorLow = '#9fa2a8';
|
|
155
|
+
export const colorVisual = '#f48d21';
|
|
156
|
+
export const colorContent = '#326dd1';
|
|
157
|
+
export const colorUX = '#263340';
|
|
158
|
+
export const colorSuccess = '#8cbd24';
|
|
159
|
+
export const colorDanger = '#FF3131';
|
|
160
|
+
export const colorNeutral = '#e6e6e6';
|
|
161
|
+
export const colorInfo = '#326dd1';
|
|
162
|
+
export const colorBlueLight = '#21bef4';
|
|
163
|
+
.col
|
|
164
|
+
%p.mt-md.mb-xs With adaptive item width
|
|
165
|
+
.card.p-md.mb-xs.bg-gray-800
|
|
166
|
+
.echarts-container#echarts-bar-vertical-1-dark
|
|
167
|
+
%details.listitem.mb-md
|
|
168
|
+
%summary.listitem-header
|
|
169
|
+
.listitem-title
|
|
170
|
+
%span.icon.icon-format-code.mr-xs
|
|
171
|
+
Create vertical bar chart with 6 items
|
|
172
|
+
.listitem-metrics
|
|
173
|
+
.listitem-actions
|
|
174
|
+
.btn.collapse-btn
|
|
175
|
+
.listitem-content
|
|
176
|
+
.listitem-subheadline HTML
|
|
177
|
+
.listitem-card
|
|
178
|
+
%code .echarts-container#element-id
|
|
179
|
+
.listitem-subheadline app.js
|
|
180
|
+
.listitem-card
|
|
181
|
+
%pre.code.break-spaces
|
|
182
|
+
:plain
|
|
183
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
184
|
+
createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
|
|
185
|
+
.listitem-subheadline data.js
|
|
186
|
+
.listitem-card
|
|
187
|
+
%pre.code.break-spaces
|
|
188
|
+
:plain
|
|
189
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
190
|
+
export let dataBugs = [
|
|
191
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
192
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
193
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}},
|
|
194
|
+
{ value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
|
|
195
|
+
{ value: 53, name: 'Content', itemStyle: {color: colorContent}},
|
|
196
|
+
{ value: 53, name: 'UX', itemStyle: {color: colorUX}},
|
|
197
|
+
];
|
|
198
|
+
export let dataBugsCategories = [
|
|
199
|
+
{ value:'Critical'},
|
|
200
|
+
{ value: 'High'},
|
|
201
|
+
{ value: 'Low'},
|
|
202
|
+
{ value: 'Visual'},
|
|
203
|
+
{ value: 'Content'},
|
|
204
|
+
{ value: 'UX'}
|
|
205
|
+
];
|
|
206
|
+
.listitem-subheadline colors.js
|
|
207
|
+
.listitem-card
|
|
208
|
+
%pre.code.break-spaces
|
|
209
|
+
:plain
|
|
210
|
+
export const colorCritical = '#FF3131';
|
|
211
|
+
export const colorHigh = '#d8ce0d';
|
|
212
|
+
export const colorLow = '#9fa2a8';
|
|
213
|
+
export const colorVisual = '#f48d21';
|
|
214
|
+
export const colorContent = '#326dd1';
|
|
215
|
+
export const colorUX = '#263340';
|
|
216
|
+
export const colorSuccess = '#8cbd24';
|
|
217
|
+
export const colorDanger = '#FF3131';
|
|
218
|
+
export const colorNeutral = '#e6e6e6';
|
|
219
|
+
export const colorInfo = '#326dd1';
|
|
220
|
+
export const colorBlueLight = '#21bef4';
|
|
221
|
+
.col
|
|
222
|
+
.card.p-md.mb-xs
|
|
223
|
+
.echarts-container#echarts-bar-vertical-2
|
|
224
|
+
%details.listitem.mb-md
|
|
225
|
+
%summary.listitem-header
|
|
226
|
+
.listitem-title
|
|
227
|
+
%span.icon.icon-format-code.mr-xs
|
|
228
|
+
Create vertical bar chart with 3 items
|
|
229
|
+
.listitem-metrics
|
|
230
|
+
.listitem-actions
|
|
231
|
+
.btn.collapse-btn
|
|
232
|
+
.listitem-content
|
|
233
|
+
.listitem-subheadline HTML
|
|
234
|
+
.listitem-card
|
|
235
|
+
%code .echarts-container#element-id
|
|
236
|
+
.listitem-subheadline app.js
|
|
237
|
+
.listitem-card
|
|
238
|
+
%pre.code.break-spaces
|
|
239
|
+
:plain
|
|
240
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
241
|
+
createChartVertical("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew);
|
|
242
|
+
.listitem-subheadline data.js
|
|
243
|
+
.listitem-card
|
|
244
|
+
%pre.code.break-spaces
|
|
245
|
+
:plain
|
|
246
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
247
|
+
export let dataBugsFew = [
|
|
248
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
249
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
250
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
251
|
+
];
|
|
252
|
+
export let dataBugsCategoriesFew = [
|
|
253
|
+
{ value:'Critical'},
|
|
254
|
+
{ value: 'High'},
|
|
255
|
+
{ value: 'Low'}
|
|
256
|
+
];
|
|
257
|
+
.listitem-subheadline colors.js
|
|
258
|
+
.listitem-card
|
|
259
|
+
%pre.code.break-spaces
|
|
260
|
+
:plain
|
|
261
|
+
export const colorCritical = '#FF3131';
|
|
262
|
+
export const colorHigh = '#d8ce0d';
|
|
263
|
+
export const colorLow = '#9fa2a8';
|
|
264
|
+
export const colorVisual = '#f48d21';
|
|
265
|
+
export const colorContent = '#326dd1';
|
|
266
|
+
export const colorUX = '#263340';
|
|
267
|
+
export const colorSuccess = '#8cbd24';
|
|
268
|
+
export const colorDanger = '#FF3131';
|
|
269
|
+
export const colorNeutral = '#e6e6e6';
|
|
270
|
+
export const colorInfo = '#326dd1';
|
|
271
|
+
export const colorBlueLight = '#21bef4';
|
|
272
|
+
.col
|
|
273
|
+
.card.p-md.mb-md
|
|
274
|
+
.echarts-container#echarts-bar-vertical-2-fixed
|
|
275
|
+
%details.listitem
|
|
276
|
+
%summary.listitem-header
|
|
277
|
+
.listitem-title
|
|
278
|
+
%span.icon.icon-format-code.mr-xs
|
|
279
|
+
Create vertical bar chart with 3 items and fixed width
|
|
280
|
+
.listitem-metrics
|
|
281
|
+
.listitem-actions
|
|
282
|
+
.btn.collapse-btn
|
|
283
|
+
.listitem-content
|
|
284
|
+
.listitem-subheadline HTML
|
|
285
|
+
.listitem-card
|
|
286
|
+
%code .echarts-container#element-id
|
|
287
|
+
.listitem-subheadline app.js
|
|
288
|
+
.listitem-card
|
|
289
|
+
%pre.code.break-spaces
|
|
290
|
+
:plain
|
|
291
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
292
|
+
createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, 10);
|
|
293
|
+
.listitem-subheadline data.js
|
|
294
|
+
.listitem-card
|
|
295
|
+
%pre.code.break-spaces
|
|
296
|
+
:plain
|
|
297
|
+
import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
|
|
298
|
+
export let dataBugsFew = [
|
|
299
|
+
{ value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
|
|
300
|
+
{ value: 37, name: 'High', itemStyle: {color: colorHigh}},
|
|
301
|
+
{ value: 19, name: 'Low', itemStyle: {color: colorLow}}
|
|
302
|
+
];
|
|
303
|
+
export let dataBugsCategoriesFew = [
|
|
304
|
+
{ value:'Critical'},
|
|
305
|
+
{ value: 'High'},
|
|
306
|
+
{ value: 'Low'}
|
|
307
|
+
];
|
|
308
|
+
.listitem-subheadline colors.js
|
|
309
|
+
.listitem-card
|
|
310
|
+
%pre.code.break-spaces
|
|
311
|
+
:plain
|
|
312
|
+
export const colorCritical = '#FF3131';
|
|
313
|
+
export const colorHigh = '#d8ce0d';
|
|
314
|
+
export const colorLow = '#9fa2a8';
|
|
315
|
+
export const colorVisual = '#f48d21';
|
|
316
|
+
export const colorContent = '#326dd1';
|
|
317
|
+
export const colorUX = '#263340';
|
|
318
|
+
export const colorSuccess = '#8cbd24';
|
|
319
|
+
export const colorDanger = '#FF3131';
|
|
320
|
+
export const colorNeutral = '#e6e6e6';
|
|
321
|
+
export const colorInfo = '#326dd1';
|
|
322
|
+
export const colorBlueLight = '#21bef4';
|
|
323
|
+
.col
|
|
324
|
+
.card.p-xs.mb-xs
|
|
325
|
+
.echarts-container#echarts-bar-vertical-3
|
|
326
|
+
%details.listitem.mb-md
|
|
327
|
+
%summary.listitem-header
|
|
328
|
+
.listitem-title
|
|
329
|
+
%span.icon.icon-format-code.mr-xs
|
|
330
|
+
Create vertical bar chart with longer item names
|
|
331
|
+
.listitem-metrics
|
|
332
|
+
.listitem-actions
|
|
333
|
+
.btn.collapse-btn
|
|
334
|
+
.listitem-content
|
|
335
|
+
.listitem-subheadline HTML
|
|
336
|
+
.listitem-card
|
|
337
|
+
%code .echarts-container#element-id
|
|
338
|
+
.listitem-subheadline app.js
|
|
339
|
+
.listitem-card
|
|
340
|
+
%pre.code.break-spaces
|
|
341
|
+
:plain
|
|
342
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
343
|
+
createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany);
|
|
344
|
+
.listitem-subheadline data.js
|
|
345
|
+
.listitem-card
|
|
346
|
+
%pre.code.break-spaces
|
|
347
|
+
:plain
|
|
348
|
+
export let dataFeaturesManyNumbers = [
|
|
349
|
+
8, 33, 64, 23, 55, 77, 39, 57
|
|
350
|
+
];
|
|
351
|
+
export let dataFeaturesMany = [
|
|
352
|
+
'Feature A',
|
|
353
|
+
'Feature B',
|
|
354
|
+
'Feature with a very long name',
|
|
355
|
+
'Feature with an even longer name',
|
|
356
|
+
'ABC',
|
|
357
|
+
'ZDF',
|
|
358
|
+
'WWW',
|
|
359
|
+
'Just another feature name'
|
|
360
|
+
];
|
|
361
|
+
.col
|
|
362
|
+
.card.p-md
|
|
363
|
+
.echarts-container#echarts-bar-vertical-3-fixed
|
|
364
|
+
%details.listitem.mb-md
|
|
365
|
+
%summary.listitem-header
|
|
366
|
+
.listitem-title
|
|
367
|
+
%span.icon.icon-format-code.mr-xs
|
|
368
|
+
Create vertical bar chart with longer item names and fixed width
|
|
369
|
+
.listitem-metrics
|
|
370
|
+
.listitem-actions
|
|
371
|
+
.btn.collapse-btn
|
|
372
|
+
.listitem-content
|
|
373
|
+
.listitem-subheadline HTML
|
|
374
|
+
.listitem-card
|
|
375
|
+
%code .echarts-container#element-id
|
|
376
|
+
.listitem-subheadline app.js
|
|
377
|
+
.listitem-card
|
|
378
|
+
%pre.code.break-spaces
|
|
379
|
+
:plain
|
|
380
|
+
import { createChartVertical } from './modules/echarts_vertical';
|
|
381
|
+
createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, 10);
|
|
382
|
+
.listitem-subheadline data.js
|
|
383
|
+
.listitem-card
|
|
384
|
+
%pre.code.break-spaces
|
|
385
|
+
:plain
|
|
386
|
+
export let dataFeaturesManyNumbers = [
|
|
387
|
+
8, 33, 64, 23, 55, 77, 39, 57
|
|
388
|
+
];
|
|
389
|
+
export let dataFeaturesMany = [
|
|
390
|
+
'Feature A',
|
|
391
|
+
'Feature B',
|
|
392
|
+
'Feature with a very long name',
|
|
393
|
+
'Feature with an even longer name',
|
|
394
|
+
'ABC',
|
|
395
|
+
'ZDF',
|
|
396
|
+
'WWW',
|
|
397
|
+
'Just another feature name'
|
|
398
|
+
];
|