@react-magma/charts 12.0.0-next.6 → 12.0.1-next.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 (45) hide show
  1. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +308 -10
  2. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +134 -5
  3. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +212 -10
  4. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +80 -4
  5. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +232 -11
  6. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +264 -12
  7. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +51 -3
  8. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +194 -7
  9. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +33 -2
  10. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +578 -13
  11. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +118 -6
  12. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +41 -3
  13. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +87 -4
  14. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +575 -18
  15. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +53 -3
  16. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +125 -6
  17. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +99 -6
  18. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +96 -5
  19. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +171 -7
  20. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +49 -2
  21. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +36 -2
  22. package/dist/components/LineChart/LineChart.stories.d.ts +132 -21
  23. package/package.json +3 -3
  24. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +674 -649
  25. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +424 -414
  26. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +352 -325
  27. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +127 -116
  28. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +872 -843
  29. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +913 -879
  30. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +238 -232
  31. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +565 -547
  32. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +59 -56
  33. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1335 -1299
  34. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +170 -153
  35. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +50 -44
  36. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +733 -724
  37. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1656 -1605
  38. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +81 -76
  39. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +177 -162
  40. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +154 -139
  41. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +445 -433
  42. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +427 -409
  43. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +191 -188
  44. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +145 -142
  45. package/src/components/LineChart/LineChart.stories.tsx +91 -104
@@ -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,457 +23,469 @@ 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 Radar = Template.bind({});
33
- Radar.args = {
34
- isInverse: false,
35
- type: CarbonChartType.radar,
36
- dataSet: [
37
- {
38
- product: 'Product 1',
39
- feature: 'Price',
40
- score: 60,
41
- },
42
- {
43
- product: 'Product 1',
44
- feature: 'Usability',
45
- score: 92,
46
- },
47
- {
48
- product: 'Product 1',
49
- feature: 'Availability',
50
- score: 5,
51
- },
52
- {
53
- product: 'Product 1',
54
- feature: 'Performance',
55
- score: 85,
56
- },
57
- {
58
- product: 'Product 1',
59
- feature: 'Quality',
60
- score: 60,
61
- },
62
- {
63
- product: 'Product 2',
64
- feature: 'Price',
65
- score: 70,
66
- },
67
- {
68
- product: 'Product 2',
69
- feature: 'Usability',
70
- score: 63,
71
- },
72
- {
73
- product: 'Product 2',
74
- feature: 'Availability',
75
- score: 78,
76
- },
77
- {
78
- product: 'Product 2',
79
- feature: 'Performance',
80
- score: 50,
81
- },
82
- {
83
- product: 'Product 2',
84
- feature: 'Quality',
85
- score: 30,
86
- },
87
- ],
88
- options: {
89
- title: 'Radar',
90
- radar: {
91
- axes: {
92
- angle: 'feature',
93
- value: 'score',
32
+ export const Radar = {
33
+ render: Template,
34
+
35
+ args: {
36
+ isInverse: false,
37
+ type: CarbonChartType.radar,
38
+ dataSet: [
39
+ {
40
+ product: 'Product 1',
41
+ feature: 'Price',
42
+ score: 60,
94
43
  },
44
+ {
45
+ product: 'Product 1',
46
+ feature: 'Usability',
47
+ score: 92,
48
+ },
49
+ {
50
+ product: 'Product 1',
51
+ feature: 'Availability',
52
+ score: 5,
53
+ },
54
+ {
55
+ product: 'Product 1',
56
+ feature: 'Performance',
57
+ score: 85,
58
+ },
59
+ {
60
+ product: 'Product 1',
61
+ feature: 'Quality',
62
+ score: 60,
63
+ },
64
+ {
65
+ product: 'Product 2',
66
+ feature: 'Price',
67
+ score: 70,
68
+ },
69
+ {
70
+ product: 'Product 2',
71
+ feature: 'Usability',
72
+ score: 63,
73
+ },
74
+ {
75
+ product: 'Product 2',
76
+ feature: 'Availability',
77
+ score: 78,
78
+ },
79
+ {
80
+ product: 'Product 2',
81
+ feature: 'Performance',
82
+ score: 50,
83
+ },
84
+ {
85
+ product: 'Product 2',
86
+ feature: 'Quality',
87
+ score: 30,
88
+ },
89
+ ],
90
+ options: {
91
+ title: 'Radar',
92
+ radar: {
93
+ axes: {
94
+ angle: 'feature',
95
+ value: 'score',
96
+ },
97
+ },
98
+ data: {
99
+ groupMapsTo: 'product',
100
+ },
101
+ height: '400px',
95
102
  },
96
- data: {
97
- groupMapsTo: 'product',
98
- },
99
- height: '400px',
100
103
  },
101
104
  };
102
105
 
103
- export const RadarCentered = Template.bind({});
104
- RadarCentered.args = {
105
- isInverse: false,
106
- type: CarbonChartType.radar,
107
- dataSet: [
108
- {
109
- product: 'Product 1',
110
- feature: 'Price',
111
- score: 60,
112
- },
113
- {
114
- product: 'Product 1',
115
- feature: 'Usability',
116
- score: 92,
117
- },
118
- {
119
- product: 'Product 1',
120
- feature: 'Availability',
121
- score: 5,
122
- },
123
- {
124
- product: 'Product 1',
125
- feature: 'Performance',
126
- score: 85,
127
- },
128
- {
129
- product: 'Product 1',
130
- feature: 'Quality',
131
- score: 60,
132
- },
133
- {
134
- product: 'Product 2',
135
- feature: 'Price',
136
- score: 70,
137
- },
138
- {
139
- product: 'Product 2',
140
- feature: 'Usability',
141
- score: 63,
142
- },
143
- {
144
- product: 'Product 2',
145
- feature: 'Availability',
146
- score: 78,
147
- },
148
- {
149
- product: 'Product 2',
150
- feature: 'Performance',
151
- score: 50,
152
- },
153
- {
154
- product: 'Product 2',
155
- feature: 'Quality',
156
- score: 30,
157
- },
158
- ],
159
- options: {
160
- title: 'Radar (centered)',
161
- radar: {
162
- axes: {
163
- angle: 'feature',
164
- value: 'score',
165
- },
166
- alignment: 'center',
167
- },
168
- data: {
169
- groupMapsTo: 'product',
170
- },
171
- legend: {
172
- alignment: 'center',
106
+ export const RadarCentered = {
107
+ render: Template,
108
+
109
+ args: {
110
+ isInverse: false,
111
+ type: CarbonChartType.radar,
112
+ dataSet: [
113
+ {
114
+ product: 'Product 1',
115
+ feature: 'Price',
116
+ score: 60,
117
+ },
118
+ {
119
+ product: 'Product 1',
120
+ feature: 'Usability',
121
+ score: 92,
122
+ },
123
+ {
124
+ product: 'Product 1',
125
+ feature: 'Availability',
126
+ score: 5,
127
+ },
128
+ {
129
+ product: 'Product 1',
130
+ feature: 'Performance',
131
+ score: 85,
132
+ },
133
+ {
134
+ product: 'Product 1',
135
+ feature: 'Quality',
136
+ score: 60,
137
+ },
138
+ {
139
+ product: 'Product 2',
140
+ feature: 'Price',
141
+ score: 70,
142
+ },
143
+ {
144
+ product: 'Product 2',
145
+ feature: 'Usability',
146
+ score: 63,
147
+ },
148
+ {
149
+ product: 'Product 2',
150
+ feature: 'Availability',
151
+ score: 78,
152
+ },
153
+ {
154
+ product: 'Product 2',
155
+ feature: 'Performance',
156
+ score: 50,
157
+ },
158
+ {
159
+ product: 'Product 2',
160
+ feature: 'Quality',
161
+ score: 30,
162
+ },
163
+ ],
164
+ options: {
165
+ title: 'Radar (centered)',
166
+ radar: {
167
+ axes: {
168
+ angle: 'feature',
169
+ value: 'score',
170
+ },
171
+ alignment: 'center',
172
+ },
173
+ data: {
174
+ groupMapsTo: 'product',
175
+ },
176
+ legend: {
177
+ alignment: 'center',
178
+ },
179
+ height: '400px',
173
180
  },
174
- height: '400px',
175
181
  },
176
182
  };
177
183
 
178
- export const RadarMissingDatapoints = Template.bind({});
179
- RadarMissingDatapoints.args = {
180
- isInverse: false,
181
- type: CarbonChartType.radar,
182
- dataSet: [
183
- {
184
- group: 'Sugar',
185
- key: 'London',
186
- value: 25,
187
- },
188
- {
189
- group: 'Oil',
190
- key: 'London',
191
- value: 6,
192
- },
193
- {
194
- group: 'Water',
195
- key: 'London',
196
- value: 12,
197
- },
198
- {
199
- group: 'Sugar',
200
- key: 'Milan',
201
- value: 13,
202
- },
203
- {
204
- group: 'Oil',
205
- key: 'Milan',
206
- value: 6,
207
- },
208
- {
209
- group: 'Water',
210
- key: 'Milan',
211
- value: 28,
212
- },
213
- {
214
- group: 'Sugar',
215
- key: 'Paris',
216
- value: 19,
217
- },
218
- {
219
- group: 'Oil',
220
- key: 'Paris',
221
- value: 16,
222
- },
223
- {
224
- group: 'Water',
225
- key: 'Paris',
226
- value: 10,
227
- },
228
- {
229
- group: 'Sugar',
230
- key: 'New York',
231
- value: 11,
232
- },
233
- {
234
- group: 'Oil',
235
- key: 'New York',
236
- value: 18,
237
- },
238
- {
239
- group: 'Water',
240
- key: 'New York',
241
- value: 8,
242
- },
243
- {
244
- group: 'Sugar',
245
- key: 'Sydney',
246
- value: 12,
247
- },
248
- {
249
- group: 'Oil',
250
- key: 'Sydney',
251
- value: 16,
184
+ export const RadarMissingDatapoints = {
185
+ render: Template,
186
+
187
+ args: {
188
+ isInverse: false,
189
+ type: CarbonChartType.radar,
190
+ dataSet: [
191
+ {
192
+ group: 'Sugar',
193
+ key: 'London',
194
+ value: 25,
195
+ },
196
+ {
197
+ group: 'Oil',
198
+ key: 'London',
199
+ value: 6,
200
+ },
201
+ {
202
+ group: 'Water',
203
+ key: 'London',
204
+ value: 12,
205
+ },
206
+ {
207
+ group: 'Sugar',
208
+ key: 'Milan',
209
+ value: 13,
210
+ },
211
+ {
212
+ group: 'Oil',
213
+ key: 'Milan',
214
+ value: 6,
215
+ },
216
+ {
217
+ group: 'Water',
218
+ key: 'Milan',
219
+ value: 28,
220
+ },
221
+ {
222
+ group: 'Sugar',
223
+ key: 'Paris',
224
+ value: 19,
225
+ },
226
+ {
227
+ group: 'Oil',
228
+ key: 'Paris',
229
+ value: 16,
230
+ },
231
+ {
232
+ group: 'Water',
233
+ key: 'Paris',
234
+ value: 10,
235
+ },
236
+ {
237
+ group: 'Sugar',
238
+ key: 'New York',
239
+ value: 11,
240
+ },
241
+ {
242
+ group: 'Oil',
243
+ key: 'New York',
244
+ value: 18,
245
+ },
246
+ {
247
+ group: 'Water',
248
+ key: 'New York',
249
+ value: 8,
250
+ },
251
+ {
252
+ group: 'Sugar',
253
+ key: 'Sydney',
254
+ value: 12,
255
+ },
256
+ {
257
+ group: 'Oil',
258
+ key: 'Sydney',
259
+ value: 16,
260
+ },
261
+ ],
262
+ options: {
263
+ title: 'Radar - Missing datapoints',
264
+ height: '400px',
252
265
  },
253
- ],
254
- options: {
255
- title: 'Radar - Missing datapoints',
256
- height: '400px',
257
266
  },
258
267
  };
259
268
 
260
- export const RadarDense = Template.bind({});
261
- RadarDense.args = {
262
- isInverse: false,
263
- type: CarbonChartType.radar,
264
- dataSet: [
265
- {
266
- month: 'January',
267
- activity: 'Eating',
268
- hoursAvg: 2,
269
- },
270
- {
271
- month: 'January',
272
- activity: 'Drinking',
273
- hoursAvg: 6,
274
- },
275
- {
276
- month: 'January',
277
- activity: 'Sleeping',
278
- hoursAvg: 6,
279
- },
280
- {
281
- month: 'January',
282
- activity: 'Working',
283
- hoursAvg: 8,
284
- },
285
- {
286
- month: 'January',
287
- activity: 'Walking',
288
- hoursAvg: 1,
289
- },
290
- {
291
- month: 'January',
292
- activity: 'Running',
293
- hoursAvg: 0.5,
294
- },
295
- {
296
- month: 'January',
297
- activity: 'Cycling',
298
- hoursAvg: 1,
299
- },
300
- {
301
- month: 'January',
302
- activity: 'Swimming',
303
- hoursAvg: 0,
304
- },
305
- {
306
- month: 'February',
307
- activity: 'Eating',
308
- hoursAvg: 1.5,
309
- },
310
- {
311
- month: 'February',
312
- activity: 'Drinking',
313
- hoursAvg: 9,
314
- },
315
- {
316
- month: 'February',
317
- activity: 'Sleeping',
318
- hoursAvg: 7,
319
- },
320
- {
321
- month: 'February',
322
- activity: 'Working',
323
- hoursAvg: 9,
324
- },
325
- {
326
- month: 'February',
327
- activity: 'Walking',
328
- hoursAvg: 2,
329
- },
330
- {
331
- month: 'February',
332
- activity: 'Running',
333
- hoursAvg: 2,
334
- },
335
- {
336
- month: 'February',
337
- activity: 'Cycling',
338
- hoursAvg: 0,
339
- },
340
- {
341
- month: 'February',
342
- activity: 'Swimming',
343
- hoursAvg: 1.5,
344
- },
345
- {
346
- month: 'March',
347
- activity: 'Eating',
348
- hoursAvg: 3,
349
- },
350
- {
351
- month: 'March',
352
- activity: 'Drinking',
353
- hoursAvg: 5,
354
- },
355
- {
356
- month: 'March',
357
- activity: 'Sleeping',
358
- hoursAvg: 5,
359
- },
360
- {
361
- month: 'March',
362
- activity: 'Working',
363
- hoursAvg: 6,
364
- },
365
- {
366
- month: 'March',
367
- activity: 'Walking',
368
- hoursAvg: 3,
369
- },
370
- {
371
- month: 'March',
372
- activity: 'Running',
373
- hoursAvg: 9,
374
- },
375
- {
376
- month: 'March',
377
- activity: 'Cycling',
378
- hoursAvg: 1,
379
- },
380
- {
381
- month: 'March',
382
- activity: 'Swimming',
383
- hoursAvg: 7,
384
- },
385
- {
386
- month: 'April',
387
- activity: 'Eating',
388
- hoursAvg: 5,
389
- },
390
- {
391
- month: 'April',
392
- activity: 'Drinking',
393
- hoursAvg: 1,
394
- },
395
- {
396
- month: 'April',
397
- activity: 'Sleeping',
398
- hoursAvg: 4,
399
- },
400
- {
401
- month: 'April',
402
- activity: 'Working',
403
- hoursAvg: 2,
404
- },
405
- {
406
- month: 'April',
407
- activity: 'Walking',
408
- hoursAvg: 5,
409
- },
410
- {
411
- month: 'April',
412
- activity: 'Running',
413
- hoursAvg: 4,
414
- },
415
- {
416
- month: 'April',
417
- activity: 'Cycling',
418
- hoursAvg: 6,
419
- },
420
- {
421
- month: 'April',
422
- activity: 'Swimming',
423
- hoursAvg: 3,
424
- },
425
- {
426
- month: 'May',
427
- activity: 'Eating',
428
- hoursAvg: 7,
429
- },
430
- {
431
- month: 'May',
432
- activity: 'Drinking',
433
- hoursAvg: 0,
434
- },
435
- {
436
- month: 'May',
437
- activity: 'Sleeping',
438
- hoursAvg: 5,
439
- },
440
- {
441
- month: 'May',
442
- activity: 'Working',
443
- hoursAvg: 4,
444
- },
445
- {
446
- month: 'May',
447
- activity: 'Walking',
448
- hoursAvg: 8,
449
- },
450
- {
451
- month: 'May',
452
- activity: 'Running',
453
- hoursAvg: 2,
454
- },
455
- {
456
- month: 'May',
457
- activity: 'Cycling',
458
- hoursAvg: 3,
459
- },
460
- {
461
- month: 'May',
462
- activity: 'Swimming',
463
- hoursAvg: 1,
464
- },
465
- ],
466
- options: {
467
- title: 'Radar - Dense',
468
- radar: {
469
- axes: {
470
- angle: 'activity',
471
- value: 'hoursAvg',
269
+ export const RadarDense = {
270
+ render: Template,
271
+
272
+ args: {
273
+ isInverse: false,
274
+ type: CarbonChartType.radar,
275
+ dataSet: [
276
+ {
277
+ month: 'January',
278
+ activity: 'Eating',
279
+ hoursAvg: 2,
472
280
  },
281
+ {
282
+ month: 'January',
283
+ activity: 'Drinking',
284
+ hoursAvg: 6,
285
+ },
286
+ {
287
+ month: 'January',
288
+ activity: 'Sleeping',
289
+ hoursAvg: 6,
290
+ },
291
+ {
292
+ month: 'January',
293
+ activity: 'Working',
294
+ hoursAvg: 8,
295
+ },
296
+ {
297
+ month: 'January',
298
+ activity: 'Walking',
299
+ hoursAvg: 1,
300
+ },
301
+ {
302
+ month: 'January',
303
+ activity: 'Running',
304
+ hoursAvg: 0.5,
305
+ },
306
+ {
307
+ month: 'January',
308
+ activity: 'Cycling',
309
+ hoursAvg: 1,
310
+ },
311
+ {
312
+ month: 'January',
313
+ activity: 'Swimming',
314
+ hoursAvg: 0,
315
+ },
316
+ {
317
+ month: 'February',
318
+ activity: 'Eating',
319
+ hoursAvg: 1.5,
320
+ },
321
+ {
322
+ month: 'February',
323
+ activity: 'Drinking',
324
+ hoursAvg: 9,
325
+ },
326
+ {
327
+ month: 'February',
328
+ activity: 'Sleeping',
329
+ hoursAvg: 7,
330
+ },
331
+ {
332
+ month: 'February',
333
+ activity: 'Working',
334
+ hoursAvg: 9,
335
+ },
336
+ {
337
+ month: 'February',
338
+ activity: 'Walking',
339
+ hoursAvg: 2,
340
+ },
341
+ {
342
+ month: 'February',
343
+ activity: 'Running',
344
+ hoursAvg: 2,
345
+ },
346
+ {
347
+ month: 'February',
348
+ activity: 'Cycling',
349
+ hoursAvg: 0,
350
+ },
351
+ {
352
+ month: 'February',
353
+ activity: 'Swimming',
354
+ hoursAvg: 1.5,
355
+ },
356
+ {
357
+ month: 'March',
358
+ activity: 'Eating',
359
+ hoursAvg: 3,
360
+ },
361
+ {
362
+ month: 'March',
363
+ activity: 'Drinking',
364
+ hoursAvg: 5,
365
+ },
366
+ {
367
+ month: 'March',
368
+ activity: 'Sleeping',
369
+ hoursAvg: 5,
370
+ },
371
+ {
372
+ month: 'March',
373
+ activity: 'Working',
374
+ hoursAvg: 6,
375
+ },
376
+ {
377
+ month: 'March',
378
+ activity: 'Walking',
379
+ hoursAvg: 3,
380
+ },
381
+ {
382
+ month: 'March',
383
+ activity: 'Running',
384
+ hoursAvg: 9,
385
+ },
386
+ {
387
+ month: 'March',
388
+ activity: 'Cycling',
389
+ hoursAvg: 1,
390
+ },
391
+ {
392
+ month: 'March',
393
+ activity: 'Swimming',
394
+ hoursAvg: 7,
395
+ },
396
+ {
397
+ month: 'April',
398
+ activity: 'Eating',
399
+ hoursAvg: 5,
400
+ },
401
+ {
402
+ month: 'April',
403
+ activity: 'Drinking',
404
+ hoursAvg: 1,
405
+ },
406
+ {
407
+ month: 'April',
408
+ activity: 'Sleeping',
409
+ hoursAvg: 4,
410
+ },
411
+ {
412
+ month: 'April',
413
+ activity: 'Working',
414
+ hoursAvg: 2,
415
+ },
416
+ {
417
+ month: 'April',
418
+ activity: 'Walking',
419
+ hoursAvg: 5,
420
+ },
421
+ {
422
+ month: 'April',
423
+ activity: 'Running',
424
+ hoursAvg: 4,
425
+ },
426
+ {
427
+ month: 'April',
428
+ activity: 'Cycling',
429
+ hoursAvg: 6,
430
+ },
431
+ {
432
+ month: 'April',
433
+ activity: 'Swimming',
434
+ hoursAvg: 3,
435
+ },
436
+ {
437
+ month: 'May',
438
+ activity: 'Eating',
439
+ hoursAvg: 7,
440
+ },
441
+ {
442
+ month: 'May',
443
+ activity: 'Drinking',
444
+ hoursAvg: 0,
445
+ },
446
+ {
447
+ month: 'May',
448
+ activity: 'Sleeping',
449
+ hoursAvg: 5,
450
+ },
451
+ {
452
+ month: 'May',
453
+ activity: 'Working',
454
+ hoursAvg: 4,
455
+ },
456
+ {
457
+ month: 'May',
458
+ activity: 'Walking',
459
+ hoursAvg: 8,
460
+ },
461
+ {
462
+ month: 'May',
463
+ activity: 'Running',
464
+ hoursAvg: 2,
465
+ },
466
+ {
467
+ month: 'May',
468
+ activity: 'Cycling',
469
+ hoursAvg: 3,
470
+ },
471
+ {
472
+ month: 'May',
473
+ activity: 'Swimming',
474
+ hoursAvg: 1,
475
+ },
476
+ ],
477
+ options: {
478
+ title: 'Radar - Dense',
479
+ radar: {
480
+ axes: {
481
+ angle: 'activity',
482
+ value: 'hoursAvg',
483
+ },
484
+ },
485
+ data: {
486
+ groupMapsTo: 'month',
487
+ },
488
+ height: '400px',
473
489
  },
474
- data: {
475
- groupMapsTo: 'month',
476
- },
477
- height: '400px',
478
490
  },
479
491
  };