@react-magma/charts 12.0.0 → 12.0.1-next.1

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 (72) hide show
  1. package/dist/charts.js +2450 -1
  2. package/dist/charts.js.map +1 -1
  3. package/dist/charts.modern.module.js +2428 -1
  4. package/dist/charts.modern.module.js.map +1 -1
  5. package/dist/charts.umd.js +48555 -1
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +42 -41
  8. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -12
  9. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -7
  10. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -12
  11. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -6
  12. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -13
  13. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -14
  14. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -5
  15. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -9
  16. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -4
  17. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -15
  18. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -8
  19. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -5
  20. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -6
  21. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -20
  22. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -5
  23. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -8
  24. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -8
  25. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -7
  26. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -9
  27. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -4
  28. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -4
  29. package/dist/components/CarbonChart/index.d.ts +1 -1
  30. package/dist/components/LineChart/Chart.d.ts +27 -27
  31. package/dist/components/LineChart/ChartDataTable.d.ts +17 -17
  32. package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -3
  33. package/dist/components/LineChart/CustomPointComponent.d.ts +17 -17
  34. package/dist/components/LineChart/DataTable.d.ts +5 -5
  35. package/dist/components/LineChart/GraphTooltip.d.ts +3 -3
  36. package/dist/components/LineChart/LegendButton.d.ts +6 -6
  37. package/dist/components/LineChart/LineChart.d.ts +67 -67
  38. package/dist/components/LineChart/LineChart.stories.d.ts +113 -23
  39. package/dist/components/LineChart/index.d.ts +1 -1
  40. package/dist/components/LineChart/magma-charts.d.ts +1 -1
  41. package/dist/index.d.ts +2 -2
  42. package/package.json +11 -6
  43. package/src/components/CarbonChart/CarbonChart.tsx +12 -16
  44. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +674 -649
  45. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +424 -414
  46. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +352 -325
  47. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +127 -116
  48. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +872 -843
  49. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +913 -879
  50. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +238 -232
  51. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +565 -547
  52. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +59 -56
  53. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1335 -1299
  54. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +170 -153
  55. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +50 -44
  56. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +733 -724
  57. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1656 -1605
  58. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +81 -76
  59. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +177 -162
  60. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +154 -139
  61. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +445 -433
  62. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +427 -409
  63. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +191 -188
  64. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +145 -142
  65. package/src/components/CarbonChart/carbon-charts.css +7303 -0
  66. package/src/components/LineChart/LineChart.stories.tsx +91 -104
  67. package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
  68. package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
  69. package/dist/components/LineChart/ChartDataTable.test.d.ts +0 -1
  70. package/dist/components/LineChart/LineChart.test.d.ts +0 -1
  71. package/dist/components/LineChart/test/exampleChartData.d.ts +0 -40
  72. package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { Story, Meta } from '@storybook/react/types-6-0';
3
+ import { StoryFn, Meta } from '@storybook/react/types-6-0';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
6
  import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
@@ -23,378 +23,405 @@ export default {
23
23
  },
24
24
  } as Meta;
25
25
 
26
- const Template: Story<CarbonChartProps> = args => (
26
+ const Template: StoryFn<CarbonChartProps> = args => (
27
27
  <Card isInverse={args.isInverse} style={{ padding: '12px' }}>
28
28
  <CarbonChart {...args} />
29
29
  </Card>
30
30
  );
31
31
 
32
- export const VerticalSimpleBarDiscrete = Template.bind({});
33
- VerticalSimpleBarDiscrete.args = {
34
- isInverse: false,
35
- type: CarbonChartType.bar,
36
- dataSet: [
37
- {
38
- group: 'Qty',
39
- value: 65000,
40
- },
41
- {
42
- group: 'More',
43
- value: 29123,
44
- },
45
- {
46
- group: 'Sold',
47
- value: 35213,
48
- },
49
- {
50
- group: 'Restocking',
51
- value: 51213,
52
- },
53
- {
54
- group: 'Misc',
55
- value: 16932,
56
- },
57
- ],
58
- options: {
59
- title: 'Vertical simple bar (discrete)',
60
- axes: {
61
- left: {
62
- mapsTo: 'value',
32
+ export const VerticalSimpleBarDiscrete = {
33
+ render: Template,
34
+
35
+ args: {
36
+ isInverse: false,
37
+ type: CarbonChartType.bar,
38
+ dataSet: [
39
+ {
40
+ group: 'Qty',
41
+ value: 65000,
63
42
  },
64
- bottom: {
65
- mapsTo: 'group',
66
- scaleType: 'labels',
43
+ {
44
+ group: 'More',
45
+ value: 29123,
46
+ },
47
+ {
48
+ group: 'Sold',
49
+ value: 35213,
50
+ },
51
+ {
52
+ group: 'Restocking',
53
+ value: 51213,
54
+ },
55
+ {
56
+ group: 'Misc',
57
+ value: 16932,
58
+ },
59
+ ],
60
+ options: {
61
+ title: 'Vertical simple bar (discrete)',
62
+ axes: {
63
+ left: {
64
+ mapsTo: 'value',
65
+ },
66
+ bottom: {
67
+ mapsTo: 'group',
68
+ scaleType: 'labels',
69
+ },
70
+ },
71
+ height: '400px',
72
+ tooltip: {
73
+ valueFormatter: (value /*, label */) =>
74
+ typeof value === 'number'
75
+ ? value.toLocaleString(undefined, {
76
+ minimumFractionDigits: 20,
77
+ maximumFractionDigits: 20,
78
+ })
79
+ : String(value),
80
+ enabled: false,
67
81
  },
68
- },
69
- height: '400px',
70
- tooltip: {
71
- valueFormatter: (value /*, label */) =>
72
- typeof value === 'number'
73
- ? value.toLocaleString(undefined, {
74
- minimumFractionDigits: 20,
75
- maximumFractionDigits: 20,
76
- })
77
- : String(value),
78
- enabled: false,
79
82
  },
80
83
  },
81
84
  };
82
85
 
83
- export const VerticalSimpleBarTimeSeries = Template.bind({});
84
- VerticalSimpleBarTimeSeries.args = {
85
- isInverse: false,
86
- type: CarbonChartType.bar,
87
- dataSet: [
88
- {
89
- group: 'Qty',
90
- date: new Date(2019, 0, 1),
91
- value: 10000,
92
- },
93
- {
94
- group: 'More',
95
- date: new Date(2019, 0, 2),
96
- value: 65000,
97
- },
98
- {
99
- group: 'Sold',
100
- date: new Date(2019, 0, 3),
101
- value: 30000,
102
- },
103
- {
104
- group: 'Restocking',
105
- date: new Date(2019, 0, 6),
106
- value: 49213,
107
- },
108
- {
109
- group: 'Misc',
110
- date: new Date(2019, 0, 7),
111
- value: 51213,
112
- },
113
- ],
114
- options: {
115
- title: 'Vertical simple bar (time series)',
116
- axes: {
117
- left: {
118
- mapsTo: 'value',
86
+ export const VerticalSimpleBarTimeSeries = {
87
+ render: Template,
88
+
89
+ args: {
90
+ isInverse: false,
91
+ type: CarbonChartType.bar,
92
+ dataSet: [
93
+ {
94
+ group: 'Qty',
95
+ date: new Date(2019, 0, 1),
96
+ value: 10000,
119
97
  },
120
- bottom: {
121
- mapsTo: 'date',
122
- scaleType: 'time',
98
+ {
99
+ group: 'More',
100
+ date: new Date(2019, 0, 2),
101
+ value: 65000,
123
102
  },
103
+ {
104
+ group: 'Sold',
105
+ date: new Date(2019, 0, 3),
106
+ value: 30000,
107
+ },
108
+ {
109
+ group: 'Restocking',
110
+ date: new Date(2019, 0, 6),
111
+ value: 49213,
112
+ },
113
+ {
114
+ group: 'Misc',
115
+ date: new Date(2019, 0, 7),
116
+ value: 51213,
117
+ },
118
+ ],
119
+ options: {
120
+ title: 'Vertical simple bar (time series)',
121
+ axes: {
122
+ left: {
123
+ mapsTo: 'value',
124
+ },
125
+ bottom: {
126
+ mapsTo: 'date',
127
+ scaleType: 'time',
128
+ },
129
+ },
130
+ height: '400px',
124
131
  },
125
- height: '400px',
126
132
  },
127
133
  };
128
134
 
129
- export const VerticalSimpleBarTimeSeriesDenseDataTurkish = Template.bind({});
130
- VerticalSimpleBarTimeSeriesDenseDataTurkish.args = {
131
- isInverse: false,
132
- type: CarbonChartType.bar,
133
- dataSet: [
134
- {
135
- group: 'data',
136
- date: new Date(2019, 1, 1),
137
- value: 10000,
138
- },
139
- {
140
- group: 'data',
141
- date: new Date(2019, 1, 1),
142
- value: 20001,
143
- },
144
- {
145
- group: 'data',
146
- date: new Date(2019, 1, 1),
147
- value: 10002,
148
- },
149
- {
150
- group: 'data',
151
- date: new Date(2019, 1, 1),
152
- value: 10062,
153
- },
154
- {
155
- group: 'data',
156
- date: new Date(2019, 1, 1),
157
- value: 30003,
158
- },
159
- {
160
- group: 'data',
161
- date: new Date(2019, 1, 1),
162
- value: 20004,
163
- },
164
- {
165
- group: 'data',
166
- date: new Date(2019, 1, 1),
167
- value: 10005,
168
- },
169
- {
170
- group: 'data',
171
- date: new Date(2019, 1, 1),
172
- value: 50006,
173
- },
174
- {
175
- group: 'data',
176
- date: new Date(2019, 1, 1),
177
- value: 20006,
178
- },
179
- {
180
- group: 'data',
181
- date: new Date(2019, 1, 1),
182
- value: 40007,
183
- },
184
- {
185
- group: 'data',
186
- date: new Date(2019, 1, 1),
187
- value: 30008,
188
- },
189
- {
190
- group: 'data',
191
- date: new Date(2019, 1, 1),
192
- value: 10000,
193
- },
194
- {
195
- group: 'data',
196
- date: new Date(2019, 1, 1),
197
- value: 10000,
198
- },
199
- {
200
- group: 'data',
201
- date: new Date(2019, 1, 1),
202
- value: 20000,
203
- },
204
- {
205
- group: 'data',
206
- date: new Date(2019, 1, 1),
207
- value: 10000,
208
- },
209
- {
210
- group: 'data',
211
- date: new Date(2019, 1, 1),
212
- value: 30000,
213
- },
214
- {
215
- group: 'data',
216
- date: new Date(2019, 1, 1),
217
- value: 10000,
218
- },
219
- ],
220
- options: {
221
- title: 'Vertical simple bar (time series - dense data, Turkish)',
222
- axes: {
223
- left: {
224
- mapsTo: 'value',
225
- ticks: {},
226
- },
227
- bottom: {
228
- mapsTo: 'date',
229
- scaleType: 'time',
230
- ticks: {},
135
+ export const VerticalSimpleBarTimeSeriesDenseDataTurkish = {
136
+ render: Template,
137
+
138
+ args: {
139
+ isInverse: false,
140
+ type: CarbonChartType.bar,
141
+ dataSet: [
142
+ {
143
+ group: 'data',
144
+ date: new Date(2019, 1, 1),
145
+ value: 10000,
231
146
  },
147
+ {
148
+ group: 'data',
149
+ date: new Date(2019, 1, 1),
150
+ value: 20001,
151
+ },
152
+ {
153
+ group: 'data',
154
+ date: new Date(2019, 1, 1),
155
+ value: 10002,
156
+ },
157
+ {
158
+ group: 'data',
159
+ date: new Date(2019, 1, 1),
160
+ value: 10062,
161
+ },
162
+ {
163
+ group: 'data',
164
+ date: new Date(2019, 1, 1),
165
+ value: 30003,
166
+ },
167
+ {
168
+ group: 'data',
169
+ date: new Date(2019, 1, 1),
170
+ value: 20004,
171
+ },
172
+ {
173
+ group: 'data',
174
+ date: new Date(2019, 1, 1),
175
+ value: 10005,
176
+ },
177
+ {
178
+ group: 'data',
179
+ date: new Date(2019, 1, 1),
180
+ value: 50006,
181
+ },
182
+ {
183
+ group: 'data',
184
+ date: new Date(2019, 1, 1),
185
+ value: 20006,
186
+ },
187
+ {
188
+ group: 'data',
189
+ date: new Date(2019, 1, 1),
190
+ value: 40007,
191
+ },
192
+ {
193
+ group: 'data',
194
+ date: new Date(2019, 1, 1),
195
+ value: 30008,
196
+ },
197
+ {
198
+ group: 'data',
199
+ date: new Date(2019, 1, 1),
200
+ value: 10000,
201
+ },
202
+ {
203
+ group: 'data',
204
+ date: new Date(2019, 1, 1),
205
+ value: 10000,
206
+ },
207
+ {
208
+ group: 'data',
209
+ date: new Date(2019, 1, 1),
210
+ value: 20000,
211
+ },
212
+ {
213
+ group: 'data',
214
+ date: new Date(2019, 1, 1),
215
+ value: 10000,
216
+ },
217
+ {
218
+ group: 'data',
219
+ date: new Date(2019, 1, 1),
220
+ value: 30000,
221
+ },
222
+ {
223
+ group: 'data',
224
+ date: new Date(2019, 1, 1),
225
+ value: 10000,
226
+ },
227
+ ],
228
+ options: {
229
+ title: 'Vertical simple bar (time series - dense data, Turkish)',
230
+ axes: {
231
+ left: {
232
+ mapsTo: 'value',
233
+ ticks: {},
234
+ },
235
+ bottom: {
236
+ mapsTo: 'date',
237
+ scaleType: 'time',
238
+ ticks: {},
239
+ },
240
+ },
241
+ tooltip: {},
242
+ bars: {
243
+ maxWidth: 200,
244
+ },
245
+ height: '400px',
232
246
  },
233
- tooltip: {},
234
- bars: {
235
- maxWidth: 200,
236
- },
237
- height: '400px',
238
247
  },
239
248
  };
240
249
 
241
- export const VerticalSimpleBarEmptyState = Template.bind({});
242
- VerticalSimpleBarEmptyState.args = {
243
- isInverse: false,
244
- type: CarbonChartType.bar,
245
- dataSet: [],
246
- options: {
247
- title: 'Vertical simple bar (empty state)',
248
- axes: {
249
- left: {},
250
- bottom: {
251
- scaleType: 'labels',
250
+ export const VerticalSimpleBarEmptyState = {
251
+ render: Template,
252
+
253
+ args: {
254
+ isInverse: false,
255
+ type: CarbonChartType.bar,
256
+ dataSet: [],
257
+ options: {
258
+ title: 'Vertical simple bar (empty state)',
259
+ axes: {
260
+ left: {},
261
+ bottom: {
262
+ scaleType: 'labels',
263
+ },
252
264
  },
265
+ height: '400px',
253
266
  },
254
- height: '400px',
255
267
  },
256
268
  };
257
269
 
258
- export const VerticalSimpleBarSkeleton = Template.bind({});
259
- VerticalSimpleBarSkeleton.args = {
260
- isInverse: false,
261
- type: CarbonChartType.bar,
262
- dataSet: [],
263
- options: {
264
- title: 'Vertical simple bar (skeleton)',
265
- axes: {
266
- left: {},
267
- bottom: {
268
- scaleType: 'labels',
270
+ export const VerticalSimpleBarSkeleton = {
271
+ render: Template,
272
+
273
+ args: {
274
+ isInverse: false,
275
+ type: CarbonChartType.bar,
276
+ dataSet: [],
277
+ options: {
278
+ title: 'Vertical simple bar (skeleton)',
279
+ axes: {
280
+ left: {},
281
+ bottom: {
282
+ scaleType: 'labels',
283
+ },
269
284
  },
285
+ data: {
286
+ loading: true,
287
+ },
288
+ height: '400px',
270
289
  },
271
- data: {
272
- loading: true,
273
- },
274
- height: '400px',
275
290
  },
276
291
  };
277
292
 
278
- export const HorizontalSimpleBarTimeSeries = Template.bind({});
279
- HorizontalSimpleBarTimeSeries.args = {
280
- isInverse: false,
281
- type: CarbonChartType.bar,
282
- dataSet: [
283
- {
284
- group: 'Qty',
285
- date: new Date(2019, 0, 1),
286
- value: 10000,
287
- },
288
- {
289
- group: 'More',
290
- date: new Date(2019, 0, 2),
291
- value: 65000,
292
- },
293
- {
294
- group: 'Sold',
295
- date: new Date(2019, 0, 3),
296
- value: 30000,
297
- },
298
- {
299
- group: 'Restocking',
300
- date: new Date(2019, 0, 6),
301
- value: 49213,
302
- },
303
- {
304
- group: 'Misc',
305
- date: new Date(2019, 0, 7),
306
- value: 51213,
307
- },
308
- ],
309
- options: {
310
- title: 'Horizontal simple bar (time series)',
311
- axes: {
312
- left: {
313
- mapsTo: 'date',
314
- scaleType: 'time',
293
+ export const HorizontalSimpleBarTimeSeries = {
294
+ render: Template,
295
+
296
+ args: {
297
+ isInverse: false,
298
+ type: CarbonChartType.bar,
299
+ dataSet: [
300
+ {
301
+ group: 'Qty',
302
+ date: new Date(2019, 0, 1),
303
+ value: 10000,
304
+ },
305
+ {
306
+ group: 'More',
307
+ date: new Date(2019, 0, 2),
308
+ value: 65000,
309
+ },
310
+ {
311
+ group: 'Sold',
312
+ date: new Date(2019, 0, 3),
313
+ value: 30000,
314
+ },
315
+ {
316
+ group: 'Restocking',
317
+ date: new Date(2019, 0, 6),
318
+ value: 49213,
319
+ },
320
+ {
321
+ group: 'Misc',
322
+ date: new Date(2019, 0, 7),
323
+ value: 51213,
315
324
  },
316
- bottom: {
317
- mapsTo: 'value',
325
+ ],
326
+ options: {
327
+ title: 'Horizontal simple bar (time series)',
328
+ axes: {
329
+ left: {
330
+ mapsTo: 'date',
331
+ scaleType: 'time',
332
+ },
333
+ bottom: {
334
+ mapsTo: 'value',
335
+ },
318
336
  },
337
+ height: '400px',
319
338
  },
320
- height: '400px',
321
339
  },
322
340
  };
323
341
 
324
- export const HorizontalSimpleBarDiscrete = Template.bind({});
325
- HorizontalSimpleBarDiscrete.args = {
326
- isInverse: false,
327
- type: CarbonChartType.bar,
328
- dataSet: [
329
- {
330
- group: 'Qty',
331
- value: 65000,
332
- },
333
- {
334
- group: 'More',
335
- value: 29123,
336
- },
337
- {
338
- group: 'Sold',
339
- value: 35213,
340
- },
341
- {
342
- group: 'Restocking',
343
- value: 51213,
344
- },
345
- {
346
- group: 'Misc',
347
- value: 16932,
348
- },
349
- ],
350
- options: {
351
- title: 'Horizontal simple bar (discrete)',
352
- axes: {
353
- left: {
354
- mapsTo: 'group',
355
- scaleType: 'labels',
342
+ export const HorizontalSimpleBarDiscrete = {
343
+ render: Template,
344
+
345
+ args: {
346
+ isInverse: false,
347
+ type: CarbonChartType.bar,
348
+ dataSet: [
349
+ {
350
+ group: 'Qty',
351
+ value: 65000,
352
+ },
353
+ {
354
+ group: 'More',
355
+ value: 29123,
356
+ },
357
+ {
358
+ group: 'Sold',
359
+ value: 35213,
356
360
  },
357
- bottom: {
358
- mapsTo: 'value',
361
+ {
362
+ group: 'Restocking',
363
+ value: 51213,
359
364
  },
365
+ {
366
+ group: 'Misc',
367
+ value: 16932,
368
+ },
369
+ ],
370
+ options: {
371
+ title: 'Horizontal simple bar (discrete)',
372
+ axes: {
373
+ left: {
374
+ mapsTo: 'group',
375
+ scaleType: 'labels',
376
+ },
377
+ bottom: {
378
+ mapsTo: 'value',
379
+ },
380
+ },
381
+ height: '400px',
360
382
  },
361
- height: '400px',
362
383
  },
363
384
  };
364
385
 
365
- export const HorizontalSimpleBarSkeleton = Template.bind({});
366
- HorizontalSimpleBarSkeleton.args = {
367
- isInverse: false,
368
- type: CarbonChartType.bar,
369
- dataSet: [],
370
- options: {
371
- title: 'Horizontal simple bar (skeleton)',
372
- axes: {
373
- left: {
374
- scaleType: 'labels',
375
- },
376
- bottom: {},
377
- },
378
- data: {
379
- loading: true,
386
+ export const HorizontalSimpleBarSkeleton = {
387
+ render: Template,
388
+
389
+ args: {
390
+ isInverse: false,
391
+ type: CarbonChartType.bar,
392
+ dataSet: [],
393
+ options: {
394
+ title: 'Horizontal simple bar (skeleton)',
395
+ axes: {
396
+ left: {
397
+ scaleType: 'labels',
398
+ },
399
+ bottom: {},
400
+ },
401
+ data: {
402
+ loading: true,
403
+ },
404
+ height: '400px',
380
405
  },
381
- height: '400px',
382
406
  },
383
407
  };
384
408
 
385
- export const HorizontalSimpleBarEmptyState = Template.bind({});
386
- HorizontalSimpleBarEmptyState.args = {
387
- isInverse: false,
388
- type: CarbonChartType.bar,
389
- dataSet: [],
390
- options: {
391
- title: 'Horizontal simple bar (empty state)',
392
- axes: {
393
- left: {
394
- scaleType: 'labels',
395
- },
396
- bottom: {},
409
+ export const HorizontalSimpleBarEmptyState = {
410
+ render: Template,
411
+
412
+ args: {
413
+ isInverse: false,
414
+ type: CarbonChartType.bar,
415
+ dataSet: [],
416
+ options: {
417
+ title: 'Horizontal simple bar (empty state)',
418
+ axes: {
419
+ left: {
420
+ scaleType: 'labels',
421
+ },
422
+ bottom: {},
423
+ },
424
+ height: '400px',
397
425
  },
398
- height: '400px',
399
426
  },
400
427
  };