@scality/core-ui 0.162.0 → 0.163.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 (68) hide show
  1. package/dist/components/barchartv2/Barchart.component.d.ts +0 -2
  2. package/dist/components/barchartv2/Barchart.component.d.ts.map +1 -1
  3. package/dist/components/barchartv2/Barchart.component.js +11 -1
  4. package/dist/components/barchartv2/utils.d.ts +25 -2
  5. package/dist/components/barchartv2/utils.d.ts.map +1 -1
  6. package/dist/components/barchartv2/utils.js +35 -3
  7. package/dist/components/chartlegend/ChartLegend.d.ts +8 -0
  8. package/dist/components/chartlegend/ChartLegend.d.ts.map +1 -0
  9. package/dist/components/chartlegend/ChartLegend.js +65 -0
  10. package/dist/components/chartlegend/ChartLegendWrapper.d.ts +17 -0
  11. package/dist/components/chartlegend/ChartLegendWrapper.d.ts.map +1 -0
  12. package/dist/components/chartlegend/ChartLegendWrapper.js +50 -0
  13. package/dist/components/date/FormattedDateTime.d.ts +3 -1
  14. package/dist/components/date/FormattedDateTime.d.ts.map +1 -1
  15. package/dist/components/date/FormattedDateTime.js +19 -1
  16. package/dist/components/date/FormattedDateTime.spec.js +12 -0
  17. package/dist/components/icon/Icon.component.d.ts +5 -5
  18. package/dist/components/icon/Icon.component.d.ts.map +1 -1
  19. package/dist/components/icon/Icon.component.js +33 -31
  20. package/dist/components/linetimeseriechart/linetimeseriechart.component.d.ts +33 -0
  21. package/dist/components/linetimeseriechart/linetimeseriechart.component.d.ts.map +1 -0
  22. package/dist/components/linetimeseriechart/linetimeseriechart.component.js +249 -0
  23. package/dist/components/selectv2/Selectv2.component.d.ts.map +1 -1
  24. package/dist/components/selectv2/Selectv2.component.js +11 -6
  25. package/dist/components/steppers/Stepper.component.d.ts.map +1 -1
  26. package/dist/components/steppers/Stepper.component.js +9 -8
  27. package/dist/components/toast/ToastProvider.d.ts.map +1 -1
  28. package/dist/components/toast/ToastProvider.js +4 -5
  29. package/dist/components/vegachartv2/SyncedCursorCharts.d.ts.map +1 -1
  30. package/dist/components/vegachartv2/SyncedCursorCharts.js +3 -5
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +1 -0
  34. package/dist/next.d.ts +1 -0
  35. package/dist/next.d.ts.map +1 -1
  36. package/dist/next.js +1 -0
  37. package/dist/style/theme.d.ts +1 -0
  38. package/dist/style/theme.d.ts.map +1 -1
  39. package/dist/style/theme.js +28 -0
  40. package/package.json +2 -2
  41. package/src/lib/components/accordion/Accordion.test.tsx +7 -15
  42. package/src/lib/components/barchartv2/Barchart.component.test.tsx +82 -101
  43. package/src/lib/components/barchartv2/Barchart.component.tsx +14 -2
  44. package/src/lib/components/barchartv2/utils.test.ts +117 -0
  45. package/src/lib/components/barchartv2/utils.ts +54 -6
  46. package/src/lib/components/chartlegend/ChartLegend.tsx +113 -0
  47. package/src/lib/components/chartlegend/ChartLegendWrapper.tsx +85 -0
  48. package/src/lib/components/date/FormattedDateTime.spec.tsx +24 -0
  49. package/src/lib/components/date/FormattedDateTime.tsx +36 -2
  50. package/src/lib/components/healthselectorv2/HealthSelector.component.test.tsx +3 -3
  51. package/src/lib/components/icon/Icon.component.tsx +48 -60
  52. package/src/lib/components/inlineinput/InlineInput.test.tsx +22 -19
  53. package/src/lib/components/inputlist/InputList.test.tsx +21 -19
  54. package/src/lib/components/linetimeseriechart/linetimeseriechart.component.tsx +502 -0
  55. package/src/lib/components/searchinput/SearchInput.test.tsx +3 -7
  56. package/src/lib/components/selectv2/Selectv2.component.tsx +13 -5
  57. package/src/lib/components/selectv2/selectv2.test.tsx +62 -57
  58. package/src/lib/components/steppers/Stepper.component.tsx +10 -8
  59. package/src/lib/components/tablev2/TableSync.test.tsx +8 -11
  60. package/src/lib/components/tablev2/Tablev2.test.tsx +36 -37
  61. package/src/lib/components/toast/ToastProvider.tsx +14 -6
  62. package/src/lib/components/vegachartv2/SyncedCursorCharts.tsx +5 -7
  63. package/src/lib/index.ts +1 -0
  64. package/src/lib/next.ts +1 -0
  65. package/src/lib/style/theme.ts +29 -0
  66. package/stories/BarChart/barchart.stories.tsx +292 -125
  67. package/stories/format.mdx +4 -2
  68. package/stories/linetimeseriechart.stories.tsx +485 -0
@@ -0,0 +1,485 @@
1
+ import React from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ import { MetricsTimeSpanProvider } from '../src/lib/components/linetemporalchart/MetricTimespanProvider';
4
+ import { LineTimeSerieChart } from '../src/lib/components/linetimeseriechart/linetimeseriechart.component';
5
+ import { ChartLegendWrapper } from '../src/lib/components/chartlegend/ChartLegendWrapper';
6
+ import { lineTimeSeriesColorRange } from '../src/lib/style/theme';
7
+ import { ChartLegend } from '../src/lib/components/chartlegend/ChartLegend';
8
+
9
+ const ChartWithProviders = (props) => {
10
+ return (
11
+ <MetricsTimeSpanProvider>
12
+ <ChartLegendWrapper
13
+ colorSet={{
14
+ 'ip-10-160-122-207.eu-north-1.compute.internal':
15
+ lineTimeSeriesColorRange[0],
16
+ }}
17
+ >
18
+ <LineTimeSerieChart {...props} />
19
+ <ChartLegend shape="line" />
20
+ </ChartLegendWrapper>
21
+ </MetricsTimeSpanProvider>
22
+ );
23
+ };
24
+
25
+ const ChartWithProviders2 = (props) => {
26
+ return (
27
+ <MetricsTimeSpanProvider>
28
+ <ChartLegendWrapper
29
+ colorSet={{
30
+ 'ip-10-160-122-207.eu-north-1.compute.internal':
31
+ lineTimeSeriesColorRange[0],
32
+ 'ip-10-160-122-207.eu-north-2.compute.internal':
33
+ lineTimeSeriesColorRange[1],
34
+ }}
35
+ >
36
+ <LineTimeSerieChart {...props} />
37
+ <ChartLegend shape="line" direction="vertical" />
38
+ </ChartLegendWrapper>
39
+ </MetricsTimeSpanProvider>
40
+ );
41
+ };
42
+ const meta: Meta<typeof LineTimeSerieChart> = {
43
+ title: 'Components/Data Display/Charts/LineTimeSerieChart',
44
+ component: ChartWithProviders,
45
+ decorators: [
46
+ (Story) => (
47
+ <div>
48
+ <Story />
49
+ </div>
50
+ ),
51
+ ],
52
+ parameters: {
53
+ layout: 'fullscreen',
54
+ },
55
+ tags: ['autodocs'],
56
+ argTypes: {
57
+ series: { control: 'object' },
58
+ title: { control: 'text' },
59
+ height: { control: 'number' },
60
+ startingTimeStamp: { control: 'number' },
61
+ unitRange: { control: 'object' },
62
+ isLoading: { control: 'boolean' },
63
+ yAxisType: {
64
+ control: 'select',
65
+ options: ['default', 'percentage', 'symmetrical'],
66
+ },
67
+ yAxisTitle: { control: 'text' },
68
+ },
69
+ };
70
+
71
+ export default meta;
72
+ type Story = StoryObj<typeof ChartWithProviders>;
73
+
74
+ const prometheusData = [
75
+ [1740405600, '47.554166666666674'],
76
+ [1740406320, '53.00833333333337'],
77
+ [1740407760, '40.18750000000011'],
78
+ [1740408480, '59.187499999999886'],
79
+ [1740409200, '62.49583333333344'],
80
+ [1740409920, '57.449999999999854'],
81
+ [1740410640, '45.187500000000114'],
82
+ [1740411360, '58.620833333332975'],
83
+ [1740412080, '53.0786411974533'],
84
+ [1740412800, '64.90833333333342'],
85
+ [1740413520, '81.23333333333335'],
86
+ [1740414240, '64.81614215228686'],
87
+ [1740415680, '67.17291666666674'],
88
+ [1740416400, '55.233333333333405'],
89
+ [1740417120, '47.91666666666667'],
90
+ [1740417840, '72.1083333333335'],
91
+ [1740418560, '61.90904847636171'],
92
+ [1740419280, '51.06666666666646'],
93
+ [1740420000, '39.50416666666664'],
94
+ [1740420720, '46.91666666666682'],
95
+ [1740421440, '35.0541666666669'],
96
+ [1740422160, '46.666666666666856'],
97
+ [1740422880, '43.57083333333397'],
98
+ [1740423600, '36.795833333333114'],
99
+ [1740467520, '42.81249999999962'],
100
+ [1740468240, '53.44272951530158'],
101
+ [1740468960, '55.69583333333337'],
102
+ [1740469680, '46.09583333333338'],
103
+ [1740470400, '43.020833333333705'],
104
+ [1740471120, '55.395833333333634'],
105
+ [1740471840, '46.56249999999999'],
106
+ [1740472560, '47.16249999999983'],
107
+ [1740473280, '44.69166666666676'],
108
+ [1740474000, '55.29583333333411'],
109
+ [1740474720, '42.25833333333412'],
110
+ [1740475440, '61.570833333332764'],
111
+ [1740476160, '42.86666666666633'],
112
+ [1740476880, '38.03750000000036'],
113
+ [1740477600, '41.32916666666612'],
114
+ [1740478320, '52.22499999999779'],
115
+ [1740479040, '42.13333333333368'],
116
+ [1740479760, '34.791666666665904'],
117
+ [1740480480, '36.58333333333227'],
118
+ [1740481200, '37.20833333333226'],
119
+ [1740481920, '49.19583333333246'],
120
+ [1740482640, '41.016666666666126'],
121
+ [1740483360, '37.54166666666834'],
122
+ [1740484080, '35.38750000000013'],
123
+ [1740484800, '39.02500000000069'],
124
+ [1740485520, '47.14054738807047'],
125
+ [1740486240, '46.79166666666787'],
126
+ [1740486960, '42.950363357557244'],
127
+ [1740487680, '35.22916666666637'],
128
+ [1740488400, '34.94583333333519'],
129
+ [1740489120, '41.044577067983646'],
130
+ [1740489840, '58.17083333333282'],
131
+ [1740490560, '40.00000000000304'],
132
+ [1740491280, '45.57500000000194'],
133
+ [1740492000, '45.741666666666184'],
134
+ ];
135
+
136
+ const prometheusData2 = [
137
+ [1740405600, '45.23'],
138
+ [1740406320, '120.45'],
139
+ [1740407760, '35.88'],
140
+ [1740408480, '42.98'],
141
+ [1740409200, '88.29'],
142
+ [1740409920, '25.84'],
143
+ [1740410640, '95.38'],
144
+ [1740411360, '30.22'],
145
+ [1740412080, '78.17'],
146
+ [1740412800, '110.40'],
147
+ [1740413520, '45.83'],
148
+ [1740414240, '92.21'],
149
+ [1740415680, '28.57'],
150
+ [1740416400, '75.43'],
151
+ [1740417120, '115.31'],
152
+ [1740417840, '38.50'],
153
+ [1740418560, '82.40'],
154
+ [1740419280, '27.86'],
155
+ [1740420000, '98.90'],
156
+ [1740420720, '31.21'],
157
+ [1740421440, '85.25'],
158
+ [1740422160, '105.86'],
159
+ [1740422880, '42.97'],
160
+ [1740423600, '71.19'],
161
+ [1740467520, '95.41'],
162
+ [1740468240, '36.84'],
163
+ [1740468960, '88.89'],
164
+ [1740469680, '29.39'],
165
+ [1740470400, '96.42'],
166
+ [1740471120, '33.79'],
167
+ [1740471840, '108.96'],
168
+ [1740472560, '45.56'],
169
+ [1740473280, '77.89'],
170
+ [1740474000, '102.49'],
171
+ [1740474720, '35.65'],
172
+ [1740475440, '88.97'],
173
+ [1740476160, '25.26'],
174
+ [1740476880, '91.43'],
175
+ [1740477600, '104.72'],
176
+ [1740478320, '39.62'],
177
+ [1740479040, '85.53'],
178
+ [1740479760, '28.19'],
179
+ [1740480480, '99.98'],
180
+ [1740481200, '41.60'],
181
+ [1740481920, '76.59'],
182
+ [1740482640, '113.41'],
183
+ [1740483360, '30.94'],
184
+ [1740484080, '88.78'],
185
+ [1740484800, '32.42'],
186
+ [1740485520, '95.54'],
187
+ [1740486240, '29.19'],
188
+ [1740486960, '86.35'],
189
+ [1740487680, '118.62'],
190
+ [1740488400, '37.34'],
191
+ [1740489120, '84.44'],
192
+ [1740489840, '34.57'],
193
+ [1740490560, '93.40'],
194
+ [1740491280, '28.97'],
195
+ [1740492000, '107.14'],
196
+ ];
197
+
198
+ const prometheusData3 = [
199
+ [1740405600, '65.32'],
200
+ [1740406320, '145.78'],
201
+ [1740407760, '42.91'],
202
+ [1740408480, '88.45'],
203
+ [1740409200, '132.67'],
204
+ [1740409920, '35.89'],
205
+ [1740410640, '128.45'],
206
+ [1740411360, '48.23'],
207
+ [1740412080, '95.34'],
208
+ [1740412800, '155.67'],
209
+ [1740413520, '52.45'],
210
+ [1740414240, '115.89'],
211
+ [1740415680, '38.92'],
212
+ [1740416400, '92.45'],
213
+ [1740417120, '142.34'],
214
+ [1740417840, '45.67'],
215
+ [1740418560, '108.90'],
216
+ [1740419280, '32.45'],
217
+ [1740420000, '125.67'],
218
+ [1740420720, '41.23'],
219
+ [1740421440, '98.45'],
220
+ [1740422160, '138.90'],
221
+ [1740422880, '55.67'],
222
+ [1740423600, '85.34'],
223
+ [1740467520, '122.45'],
224
+ [1740468240, '44.56'],
225
+ [1740468960, '105.78'],
226
+ [1740469680, '36.89'],
227
+ [1740470400, '118.90'],
228
+ [1740471120, '48.23'],
229
+ [1740471840, '148.67'],
230
+ [1740472560, '58.90'],
231
+ [1740473280, '92.45'],
232
+ [1740474000, '135.67'],
233
+ [1740474720, '42.34'],
234
+ [1740475440, '108.90'],
235
+ [1740476160, '38.45'],
236
+ [1740476880, '115.67'],
237
+ [1740477600, '142.34'],
238
+ [1740478320, '52.45'],
239
+ [1740479040, '102.34'],
240
+ [1740479760, '35.67'],
241
+ [1740480480, '128.90'],
242
+ [1740481200, '45.67'],
243
+ [1740481920, '95.34'],
244
+ [1740482640, '152.45'],
245
+ [1740483360, '42.34'],
246
+ [1740484080, '112.45'],
247
+ [1740484800, '38.90'],
248
+ [1740485520, '122.34'],
249
+ [1740486240, '35.67'],
250
+ [1740486960, '105.78'],
251
+ [1740487680, '158.90'],
252
+ [1740488400, '48.23'],
253
+ [1740489120, '98.45'],
254
+ [1740489840, '42.34'],
255
+ [1740490560, '118.90'],
256
+ [1740491280, '35.67'],
257
+ [1740492000, '145.78'],
258
+ ];
259
+
260
+ const prometheusData4 = [
261
+ [1740405600, '85.45'],
262
+ [1740406320, '178.92'],
263
+ [1740407760, '32.15'],
264
+ [1740408480, '142.78'],
265
+ [1740409200, '195.34'],
266
+ [1740409920, '28.67'],
267
+ [1740410640, '165.89'],
268
+ [1740411360, '45.23'],
269
+ [1740412080, '138.56'],
270
+ [1740412800, '188.90'],
271
+ [1740413520, '35.67'],
272
+ [1740414240, '155.45'],
273
+ [1740415680, '25.89'],
274
+ [1740416400, '128.90'],
275
+ [1740417120, '182.34'],
276
+ [1740417840, '42.56'],
277
+ [1740418560, '145.78'],
278
+ [1740419280, '22.34'],
279
+ [1740420000, '168.90'],
280
+ [1740420720, '38.45'],
281
+ [1740421440, '135.67'],
282
+ [1740422160, '192.45'],
283
+ [1740422880, '48.23'],
284
+ [1740423600, '158.90'],
285
+ [1740467520, '28.45'],
286
+ [1740468240, '175.67'],
287
+ [1740468960, '42.34'],
288
+ [1740469680, '148.90'],
289
+ [1740470400, '185.67'],
290
+ [1740471120, '32.45'],
291
+ [1740471840, '172.34'],
292
+ [1740472560, '45.67'],
293
+ [1740473280, '152.89'],
294
+ [1740474000, '198.45'],
295
+ [1740474720, '25.67'],
296
+ [1740475440, '162.34'],
297
+ [1740476160, '35.89'],
298
+ [1740476880, '145.67'],
299
+ [1740477600, '188.90'],
300
+ [1740478320, '42.34'],
301
+ [1740479040, '158.90'],
302
+ [1740479760, '28.45'],
303
+ [1740480480, '175.67'],
304
+ [1740481200, '38.90'],
305
+ [1740481920, '142.34'],
306
+ [1740482640, '192.45'],
307
+ [1740483360, '32.67'],
308
+ [1740484080, '165.89'],
309
+ [1740484800, '45.23'],
310
+ [1740485520, '155.67'],
311
+ [1740486240, '25.89'],
312
+ [1740486960, '168.90'],
313
+ [1740487680, '195.34'],
314
+ [1740488400, '35.67'],
315
+ [1740489120, '148.90'],
316
+ [1740489840, '42.34'],
317
+ [1740490560, '172.45'],
318
+ [1740491280, '28.67'],
319
+ [1740492000, '185.90'],
320
+ ];
321
+
322
+ const prometheusData5 = [
323
+ [1740405600, '12850.45'],
324
+ [1740406320, '21780.92'],
325
+ [1740407760, '8320.15'],
326
+ [1740408480, '16420.78'],
327
+ [1740409200, '21950.34'],
328
+ [1740409920, '9280.67'],
329
+ [1740410640, '18605.89'],
330
+ [1740411360, '12450.23'],
331
+ [1740412080, '21308.56'],
332
+ [1740412800, '18808.90'],
333
+ [1740413520, '15305.67'],
334
+ [1740414240, '24550.45'],
335
+ [1740415680, '10205.89'],
336
+ [1740416400, '19208.90'],
337
+ [1740417120, '24802.34'],
338
+ [1740417840, '13402.56'],
339
+ [1740418560, '21450.78'],
340
+ [1740419280, '18220.34'],
341
+ [1740420000, '26608.90'],
342
+ [1740420720, '19380.45'],
343
+ [1740421440, '23350.67'],
344
+ [1740422160, '19920.45'],
345
+ [1740422880, '15480.23'],
346
+ [1740423600, '28580.90'],
347
+ [1740467520, '17280.45'],
348
+ [1740468240, '24750.67'],
349
+ [1740468960, '18420.34'],
350
+ [1740469680, '23480.90'],
351
+ [1740470400, '19850.67'],
352
+ [1740471120, '27320.45'],
353
+ [1740471840, '19720.34'],
354
+ [1740472560, '24405.67'],
355
+ [1740473280, '18502.89'],
356
+ [1740474000, '27908.45'],
357
+ [1740474720, '16205.67'],
358
+ [1740475440, '23602.34'],
359
+ [1740476160, '19305.89'],
360
+ [1740476880, '24450.67'],
361
+ [1740477600, '18858.90'],
362
+ [1740478320, '26492.34'],
363
+ [1740479040, '19588.90'],
364
+ [1740479760, '28288.45'],
365
+ [1740480480, '19765.67'],
366
+ [1740481200, '23398.90'],
367
+ [1740481920, '19492.34'],
368
+ [1740482640, '25929.45'],
369
+ [1740483360, '18329.67'],
370
+ [1740484080, '24659.89'],
371
+ [1740484800, '19459.23'],
372
+ [1740485520, '27559.67'],
373
+ [1740486240, '18259.89'],
374
+ [1740486960, '25689.90'],
375
+ [1740487680, '19959.34'],
376
+ [1740488400, '28359.67'],
377
+ [1740489120, '19489.90'],
378
+ [1740489840, '26429.34'],
379
+ [1740490560, '19729.45'],
380
+ [1740491280, '28289.67'],
381
+ [1740492000, '19859.90'],
382
+ ];
383
+
384
+ export const PercentageChartExample: Story = {
385
+ args: {
386
+ series: [
387
+ {
388
+ data: prometheusData,
389
+ resource: 'ip-10-160-122-207.eu-north-1.compute.internal',
390
+ metricPrefix: 'instance:10.160.122.207:9100',
391
+ getTooltipLabel: (prefix, resource) => `${resource}`,
392
+ },
393
+ ],
394
+ title: 'CPU Usage',
395
+ height: 200,
396
+ startingTimeStamp: prometheusData[0][0],
397
+ isLoading: false,
398
+ isLegendHidden: false,
399
+ helpText: 'This is the help text',
400
+ yAxisType: 'percentage',
401
+ yAxisTitle: '',
402
+ },
403
+ };
404
+ const UNIT_RANGE_BS = [
405
+ {
406
+ threshold: 1,
407
+ label: 'B/s',
408
+ },
409
+ {
410
+ threshold: 1024,
411
+ label: 'KiB/s',
412
+ },
413
+ {
414
+ threshold: 1024 * 1024,
415
+ label: 'MiB/s',
416
+ },
417
+ {
418
+ threshold: 1024 * 1024 * 1024,
419
+ label: 'GiB/s',
420
+ },
421
+ {
422
+ threshold: 1024 * 1024 * 1024 * 1024,
423
+ label: 'TiB/s',
424
+ },
425
+ ];
426
+ export const SymmetricalAxisExample: Story = {
427
+ render: (args) => <ChartWithProviders2 {...args} />,
428
+ args: {
429
+ series: {
430
+ above: [
431
+ {
432
+ data: prometheusData,
433
+ resource: 'ip-10-160-122-207.eu-north-1.compute.internal',
434
+ metricPrefix: 'in',
435
+ getTooltipLabel: (prefix, resource) => `${resource}-${prefix}`,
436
+ },
437
+ {
438
+ data: prometheusData2,
439
+ resource: 'ip-10-160-122-207.eu-north-2.compute.internal',
440
+ metricPrefix: 'in',
441
+ getTooltipLabel: (prefix, resource) => `${resource}-${prefix}`,
442
+ },
443
+ ],
444
+ below: [
445
+ {
446
+ data: prometheusData3,
447
+ resource: 'ip-10-160-122-207.eu-north-1.compute.internal',
448
+ metricPrefix: 'out',
449
+ getTooltipLabel: (prefix, resource) => `${resource}-${prefix}`,
450
+ },
451
+ {
452
+ data: prometheusData4,
453
+ resource: 'ip-10-160-122-207.eu-north-2.compute.internal',
454
+ metricPrefix: 'out',
455
+ getTooltipLabel: (prefix, resource) => `${resource}-${prefix}`,
456
+ },
457
+ ],
458
+ },
459
+ title: 'ControlPlane Bandwidth',
460
+ height: 200,
461
+ startingTimeStamp: prometheusData[0][0],
462
+ unitRange: UNIT_RANGE_BS,
463
+ isLoading: false,
464
+ isLegendHidden: false,
465
+ yAxisType: 'symmetrical',
466
+ yAxisTitle: 'in(+)/out(-)',
467
+ },
468
+ };
469
+ export const AutoUnitChartExample: Story = {
470
+ args: {
471
+ series: [
472
+ {
473
+ data: prometheusData5,
474
+ resource: 'ip-10-160-122-207.eu-north-1.compute.internal',
475
+ metricPrefix: 'instance:10.160.122.207:9100',
476
+ getTooltipLabel: (prefix, resource) => `${resource}`,
477
+ },
478
+ ],
479
+ title: 'Disk Throughput',
480
+ startingTimeStamp: prometheusData5[0][0],
481
+ height: 200,
482
+ unitRange: UNIT_RANGE_BS,
483
+ yAxisType: 'default',
484
+ },
485
+ };