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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/src/_includes/header.njk +2 -2
  3. package/src/assets/images/assets_agenticqa/agenticqa_email_header.png +0 -0
  4. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black.png +0 -0
  5. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black.svg +32 -0
  6. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black_1000px.png +0 -0
  7. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_black_3000px.png +0 -0
  8. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white.png +0 -0
  9. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white.svg +33 -0
  10. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white_1000px.png +0 -0
  11. package/src/assets/images/logo_agenticqa/agenticqa_logo_purpleteal_white_3000px.png +0 -0
  12. package/src/assets/scripts/app.js +23 -17
  13. package/src/assets/scripts/modules/colors.js +10 -2
  14. package/src/assets/scripts/modules/echarts_area.js +10 -6
  15. package/src/assets/scripts/modules/echarts_donut.js +20 -4
  16. package/src/assets/scripts/modules/echarts_exampledata.js +2 -2
  17. package/src/assets/scripts/modules/echarts_gauge.js +5 -5
  18. package/src/assets/scripts/modules/echarts_horizontal.js +18 -3
  19. package/src/assets/scripts/modules/echarts_line.js +84 -0
  20. package/src/assets/scripts/modules/echarts_vertical.js +5 -3
  21. package/src/assets/stylesheets/components/customer/customer_productcards.css +2 -2
  22. package/src/assets/stylesheets/components/list_item.css +4 -0
  23. package/src/assets/stylesheets/tailwind_config.css +2 -2
  24. package/src/pages/agenticqa/assets.haml +10 -0
  25. package/src/pages/{testinator → agenticqa}/email.njk +3 -3
  26. package/src/pages/agenticqa/index.njk +7 -0
  27. package/src/pages/agenticqa/logo.haml +18 -0
  28. package/src/pages/charts/area.haml +21 -17
  29. package/src/pages/charts/bar_horizontal.haml +369 -220
  30. package/src/pages/charts/bar_vertical.haml +373 -367
  31. package/src/pages/charts/colors.haml +28 -0
  32. package/src/pages/charts/donut.haml +81 -16
  33. package/src/pages/charts/gauge.haml +40 -1
  34. package/src/pages/charts/legend.haml +22 -0
  35. package/src/pages/charts/line.haml +205 -0
  36. package/src/pages/colors.pug +2 -2
  37. package/src/pages/email-templates/{email_testinator.pug → email_agenticqa.pug} +14 -14
  38. package/src/static/app.bundled.js +19 -8
  39. package/index.html +0 -405
  40. package/src/assets/images/assets_testinator/testinator_email_header.png +0 -0
  41. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black.png +0 -0
  42. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black.svg +0 -33
  43. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_black_1000px.png +0 -0
  44. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white.png +0 -0
  45. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white.svg +0 -33
  46. package/src/assets/images/logo_testinator/testinator_logo_purpleteal_white_1000px.png +0 -0
  47. package/src/pages/testinator/assets.haml +0 -10
  48. package/src/pages/testinator/index.njk +0 -7
  49. 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
- Create vertical bar chart with 3 items
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("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew);
182
- .listitem-subheadline data.js
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
- export const colorCritical = '#FF3131';
202
- export const colorHigh = '#d8ce0d';
203
- export const colorLow = '#9fa2a8';
204
- export const colorVisual = '#f48d21';
205
- export const colorContent = '#326dd1';
206
- export const colorUX = '#263340';
207
- export const colorSuccess = '#8cbd24';
208
- export const colorDanger = '#FF3131';
209
- export const colorNeutral = '#e6e6e6';
210
- export const colorInfo = '#326dd1';
211
- export const colorBlueLight = '#21bef4';
212
- .card.p-xs.mb-xs
213
- .echarts-container#echarts-bar-vertical-3
214
- %details.listitem.mb-md
215
- %summary.listitem-header
216
- .listitem-title
217
- %span.icon.icon-format-code.mr-xs
218
- Create vertical bar chart with longer item names
219
- .listitem-metrics
220
- .listitem-actions
221
- .btn.collapse-btn
222
- .listitem-content
223
- .listitem-subheadline HTML
224
- .listitem-card
225
- %code .echarts-container#element-id
226
- .listitem-subheadline app.js
227
- .listitem-card
228
- %pre.code.break-spaces
229
- :plain
230
- import { createChartVertical } from './modules/echarts_vertical';
231
- createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany);
232
- .listitem-subheadline data.js
233
- .listitem-card
234
- %pre.code.break-spaces
235
- :plain
236
- export let dataFeaturesManyNumbers = [
237
- 8, 33, 64, 23, 55, 77, 39, 57
238
- ];
239
- export let dataFeaturesMany = [
240
- 'Feature A',
241
- 'Feature B',
242
- 'Feature with a very long name',
243
- 'Feature with an even longer name',
244
- 'ABC',
245
- 'ZDF',
246
- 'WWW',
247
- 'Just another feature name'
248
- ];
249
- %p.mt-md.mb-xs With fixed item width
250
- .card.p-md.mb-md
251
- .echarts-container#echarts-bar-vertical-1-fixed
252
- %details.listitem.mb-md
253
- %summary.listitem-header
254
- .listitem-title
255
- %span.icon.icon-format-code.mr-xs
256
- Create vertical bar chart with 6 items and fixed width
257
- .listitem-metrics
258
- .listitem-actions
259
- .btn.collapse-btn
260
- .listitem-content
261
- .listitem-subheadline HTML
262
- .listitem-card
263
- %code .echarts-container#element-id
264
- .listitem-subheadline app.js
265
- .listitem-card
266
- %pre.code.break-spaces
267
- :plain
268
- import { createChartVertical } from './modules/echarts_vertical';
269
- createChartVertical("echarts-bar-vertical-1-fixed", dataBugs, dataBugsCategories, 10);
270
- .listitem-subheadline data.js
271
- .listitem-card
272
- %pre.code.break-spaces
273
- :plain
274
- import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
275
- export let dataBugs = [
276
- { value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
277
- { value: 37, name: 'High', itemStyle: {color: colorHigh}},
278
- { value: 19, name: 'Low', itemStyle: {color: colorLow}},
279
- { value: 99, name: 'Visual', itemStyle: {color: colorVisual}},
280
- { value: 53, name: 'Content', itemStyle: {color: colorContent}},
281
- { value: 53, name: 'UX', itemStyle: {color: colorUX}},
282
- ];
283
- export let dataBugsCategories = [
284
- { value:'Critical'},
285
- { value: 'High'},
286
- { value: 'Low'},
287
- { value: 'Visual'},
288
- { value: 'Content'},
289
- { value: 'UX'}
290
- ];
291
- .listitem-subheadline colors.js
292
- .listitem-card
293
- %pre.code.break-spaces
294
- :plain
295
- export const colorCritical = '#FF3131';
296
- export const colorHigh = '#d8ce0d';
297
- export const colorLow = '#9fa2a8';
298
- export const colorVisual = '#f48d21';
299
- export const colorContent = '#326dd1';
300
- export const colorUX = '#263340';
301
- export const colorSuccess = '#8cbd24';
302
- export const colorDanger = '#FF3131';
303
- export const colorNeutral = '#e6e6e6';
304
- export const colorInfo = '#326dd1';
305
- export const colorBlueLight = '#21bef4';
306
- .card.p-md.mb-md
307
- .echarts-container#echarts-bar-vertical-2-fixed
308
- %details.listitem.mb-md
309
- %summary.listitem-header
310
- .listitem-title
311
- %span.icon.icon-format-code.mr-xs
312
- Create vertical bar chart with 3 items and fixed width
313
- .listitem-metrics
314
- .listitem-actions
315
- .btn.collapse-btn
316
- .listitem-content
317
- .listitem-subheadline HTML
318
- .listitem-card
319
- %code .echarts-container#element-id
320
- .listitem-subheadline app.js
321
- .listitem-card
322
- %pre.code.break-spaces
323
- :plain
324
- import { createChartVertical } from './modules/echarts_vertical';
325
- createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, 10);
326
- .listitem-subheadline data.js
327
- .listitem-card
328
- %pre.code.break-spaces
329
- :plain
330
- import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
331
- export let dataBugsFew = [
332
- { value: 79, name: 'Critical', itemStyle: {color: colorCritical}},
333
- { value: 37, name: 'High', itemStyle: {color: colorHigh}},
334
- { value: 19, name: 'Low', itemStyle: {color: colorLow}}
335
- ];
336
- export let dataBugsCategoriesFew = [
337
- { value:'Critical'},
338
- { value: 'High'},
339
- { value: 'Low'}
340
- ];
341
- .listitem-subheadline colors.js
342
- .listitem-card
343
- %pre.code.break-spaces
344
- :plain
345
- export const colorCritical = '#FF3131';
346
- export const colorHigh = '#d8ce0d';
347
- export const colorLow = '#9fa2a8';
348
- export const colorVisual = '#f48d21';
349
- export const colorContent = '#326dd1';
350
- export const colorUX = '#263340';
351
- export const colorSuccess = '#8cbd24';
352
- export const colorDanger = '#FF3131';
353
- export const colorNeutral = '#e6e6e6';
354
- export const colorInfo = '#326dd1';
355
- export const colorBlueLight = '#21bef4';
356
- .card.p-md
357
- .echarts-container#echarts-bar-vertical-3-fixed
358
- %details.listitem.mb-md
359
- %summary.listitem-header
360
- .listitem-title
361
- %span.icon.icon-format-code.mr-xs
362
- Create vertical bar chart with longer item names and fixed width
363
- .listitem-metrics
364
- .listitem-actions
365
- .btn.collapse-btn
366
- .listitem-content
367
- .listitem-subheadline HTML
368
- .listitem-card
369
- %code .echarts-container#element-id
370
- .listitem-subheadline app.js
371
- .listitem-card
372
- %pre.code.break-spaces
373
- :plain
374
- import { createChartVertical } from './modules/echarts_vertical';
375
- createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, 10);
376
- .listitem-subheadline data.js
377
- .listitem-card
378
- %pre.code.break-spaces
379
- :plain
380
- export let dataFeaturesManyNumbers = [
381
- 8, 33, 64, 23, 55, 77, 39, 57
382
- ];
383
- export let dataFeaturesMany = [
384
- 'Feature A',
385
- 'Feature B',
386
- 'Feature with a very long name',
387
- 'Feature with an even longer name',
388
- 'ABC',
389
- 'ZDF',
390
- 'WWW',
391
- 'Just another feature name'
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
+ ];