@cdc/dashboard 4.24.2 → 4.24.4

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 (52) hide show
  1. package/dist/cdcdashboard.js +128512 -99417
  2. package/examples/chart-data.json +5409 -0
  3. package/examples/full-dash-test.json +14643 -0
  4. package/examples/full-dashboard.json +10036 -0
  5. package/examples/sankey.json +5218 -0
  6. package/index.html +4 -3
  7. package/package.json +11 -10
  8. package/src/CdcDashboard.tsx +129 -124
  9. package/src/CdcDashboardComponent.tsx +316 -441
  10. package/src/DashboardContext.tsx +4 -1
  11. package/src/_stories/Dashboard.stories.tsx +79 -36
  12. package/src/_stories/_mock/api-filter-chart.json +11 -35
  13. package/src/_stories/_mock/api-filter-map.json +17 -31
  14. package/src/_stories/_mock/dashboard-gallery.json +523 -534
  15. package/src/_stories/_mock/multi-viz.json +378 -0
  16. package/src/_stories/_mock/pivot-filter.json +161 -0
  17. package/src/_stories/_mock/standalone-table.json +122 -0
  18. package/src/_stories/_mock/toggle-example.json +4035 -0
  19. package/src/components/DataDesignerModal.tsx +145 -0
  20. package/src/components/EditorWrapper/EditorWrapper.tsx +52 -0
  21. package/src/components/EditorWrapper/editor-wrapper.style.css +13 -0
  22. package/src/components/Filters.tsx +88 -0
  23. package/src/components/Grid.tsx +3 -1
  24. package/src/components/Header/FilterModal.tsx +506 -0
  25. package/src/components/Header/Header.tsx +25 -465
  26. package/src/components/Row.tsx +65 -29
  27. package/src/components/Toggle/Toggle.tsx +36 -0
  28. package/src/components/Toggle/index.tsx +1 -0
  29. package/src/components/Toggle/toggle-style.css +34 -0
  30. package/src/components/VisualizationRow.tsx +174 -0
  31. package/src/components/VisualizationsPanel.tsx +13 -3
  32. package/src/components/Widget.tsx +28 -126
  33. package/src/helpers/filterData.ts +75 -50
  34. package/src/helpers/generateValuesForFilter.ts +2 -12
  35. package/src/helpers/getApiFilterKey.ts +5 -0
  36. package/src/helpers/getFilteredData.ts +39 -0
  37. package/src/helpers/getUpdateConfig.ts +39 -22
  38. package/src/helpers/getVizConfig.ts +31 -0
  39. package/src/helpers/getVizRowColumnLocator.ts +9 -0
  40. package/src/helpers/iconHash.tsx +34 -0
  41. package/src/helpers/tests/filterData.test.ts +149 -0
  42. package/src/images/icon-toggle.svg +1 -0
  43. package/src/scss/grid.scss +10 -3
  44. package/src/scss/main.scss +11 -0
  45. package/src/store/dashboard.actions.ts +35 -3
  46. package/src/store/dashboard.reducer.ts +33 -2
  47. package/src/types/APIFilter.ts +4 -5
  48. package/src/types/ConfigRow.ts +13 -2
  49. package/src/types/DataSet.ts +11 -8
  50. package/src/types/InitialState.ts +2 -1
  51. package/src/types/SharedFilter.ts +6 -3
  52. package/src/types/Tab.ts +1 -0
@@ -1,551 +1,540 @@
1
1
  {
2
- "dashboard": {
3
- "theme": "theme-blue",
4
- "filters": [
5
- {
6
- "values": [
7
- "Alaska",
8
- "Alabama",
9
- "Arkansas",
10
- "American Samoa",
11
- "Arizona"
12
- ],
13
- "active": "Alaska",
14
- "columnName": "Location"
15
- },
16
- {
17
- "values": [
18
- "Federal",
19
- "Local",
20
- "State"
21
- ],
22
- "active": "Federal",
23
- "columnName": "Type"
24
- }
25
- ],
26
- "title": "Amount Filtered by Location and Type "
27
- },
28
- "rows": [
29
- [
30
- {
31
- "width": 6,
32
- "widget": "data-bite1628875468150"
33
- },
34
- {
35
- "width": 6,
36
- "widget": "chart1628875631849"
37
- },
38
- {
39
- "width": null
40
- }
41
- ],
42
- [
43
- {
44
- "width": 6,
45
- "widget": "data-bite1628877031319"
46
- },
47
- {
48
- "width": 6,
49
- "widget": "data-bite1628876561387"
50
- },
51
- {
52
- "width": null
53
- }
54
- ]
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "filters": [
5
+ {
6
+ "values": ["Alaska", "Alabama", "Arkansas", "American Samoa", "Arizona"],
7
+ "active": "Alaska",
8
+ "columnName": "Location"
9
+ },
10
+ {
11
+ "values": ["Federal", "Local", "State"],
12
+ "active": "Federal",
13
+ "columnName": "Type"
14
+ }
55
15
  ],
56
- "visualizations": {
57
- "data-bite1628875468150": {
58
- "type": "data-bite",
59
- "data": [
60
- {
61
- "Location": "Alaska",
62
- "Year": "2019",
63
- "Type": "Federal",
64
- "Amount": "1377"
65
- },
66
- {
67
- "Location": "Alaska",
68
- "Year": "2020",
69
- "Type": "Federal",
70
- "Amount": "1377"
71
- },
72
- {
73
- "Location": "Alaska",
74
- "Year": "2021",
75
- "Type": "Federal",
76
- "Amount": "1436"
77
- }
78
- ],
79
- "dataBite": "",
80
- "dataFunction": "Mean (Average)",
81
- "dataColumn": "Amount",
82
- "bitePosition": "Left",
83
- "biteFontSize": 24,
84
- "fontSize": "medium",
85
- "imageUrl": "",
86
- "biteBody": "<span style=\"font-size: 20px;\">Average Amount 2019-2021</span> <br>Reflects the average of the dashboard level filter selections within the timeframe available in the data. In this case 2019-2021. \n This number is calculated within the Data Bite module.\n",
87
- "prefix": "",
88
- "suffix": "",
89
- "dataFormat": {
90
- "roundToPlace": 0,
91
- "commas": true,
92
- "prefix": "",
93
- "suffix": ""
94
- },
95
- "biteStyle": "graphic",
96
- "filters": [],
97
- "subtext": "Citation for Source ",
98
- "title": "",
99
- "theme": "theme-orange",
100
- "shadow": true,
101
- "uid": "data-bite1628875468150",
102
- "visualizationType": "data-bite",
103
- "editing": true
104
- },
105
- "chart1628875631849": {
106
- "type": "chart",
107
- "title": "",
108
- "theme": "theme-blue",
109
- "fontSize": "large",
110
- "height": "200",
111
- "padding": {
112
- "left": 5,
113
- "right": 5
114
- },
115
- "yAxis": {
116
- "size": "80",
117
- "gridLines": false,
118
- "label": "Amount",
119
- "numTicks": "4"
120
- },
121
- "barThickness": 0.35,
122
- "xAxis": {
123
- "size": "0",
124
- "tickRotation": 0,
125
- "dataKey": "Year",
126
- "label": ""
127
- },
128
- "table": {
129
- "label": "Data Table",
130
- "expanded": false,
131
- "show": false
132
- },
133
- "legend": {
134
- "behavior": "isolate",
135
- "position": "right",
136
- "hide": true
137
- },
138
- "palette": "qualitative-bold",
139
- "labels": true,
140
- "dataFormat": {},
141
- "confidenceKeys": {},
142
- "uid": "chart1628875631849",
143
- "visualizationType": "Bar",
144
- "data": [
145
- {
146
- "Location": "Alaska",
147
- "Year": "2019",
148
- "Type": "Federal",
149
- "Amount": "1377"
150
- },
151
- {
152
- "Location": "Alaska",
153
- "Year": "2020",
154
- "Type": "Federal",
155
- "Amount": "1377"
156
- },
157
- {
158
- "Location": "Alaska",
159
- "Year": "2021",
160
- "Type": "Federal",
161
- "Amount": "1436"
162
- }
163
- ],
164
- "series": [
165
- {
166
- "dataKey": "Amount",
167
- "type": "Bar"
168
- }
169
- ]
170
- },
171
- "data-bite1628876561387": {
172
- "type": "data-bite",
173
- "data": [
174
- {
175
- "Location": "Alaska",
176
- "Year": "2019",
177
- "Type": "Federal",
178
- "Amount": "1377"
179
- },
180
- {
181
- "Location": "Alaska",
182
- "Year": "2020",
183
- "Type": "Federal",
184
- "Amount": "1377"
185
- },
186
- {
187
- "Location": "Alaska",
188
- "Year": "2021",
189
- "Type": "Federal",
190
- "Amount": "1436"
191
- }
192
- ],
193
- "dataBite": "",
194
- "dataFunction": "Max",
195
- "dataColumn": "Amount",
196
- "bitePosition": "Right",
197
- "biteFontSize": "58",
198
- "fontSize": "medium",
199
- "imageUrl": "",
200
- "biteBody": "<span style=\"font-size: 24px;\"> Peak Amount</span> <br>Reflects the maximum point of data within the dashboard level filter selections within the timeframe set in the data. In this case 2019-2021. \nThis number is calculated within the Data Bite module.\n",
201
- "prefix": "",
202
- "suffix": "",
203
- "dataFormat": {
204
- "roundToPlace": 0,
205
- "commas": true,
206
- "prefix": "",
207
- "suffix": ""
208
- },
209
- "biteStyle": "title",
210
- "filters": [],
211
- "subtext": "Source",
212
- "title": "",
213
- "theme": "theme-blue",
214
- "shadow": true,
215
- "uid": "data-bite1628876561387",
216
- "visualizationType": "data-bite"
217
- },
218
- "data-bite1628877031319": {
219
- "type": "data-bite",
220
- "data": [
221
- {
222
- "Location": "Alaska",
223
- "Year": "2019",
224
- "Type": "Federal",
225
- "Amount": "1377"
226
- },
227
- {
228
- "Location": "Alaska",
229
- "Year": "2020",
230
- "Type": "Federal",
231
- "Amount": "1377"
232
- },
233
- {
234
- "Location": "Alaska",
235
- "Year": "2021",
236
- "Type": "Federal",
237
- "Amount": "1436"
238
- }
239
- ],
240
- "dataBite": "",
241
- "dataFunction": "Sum",
242
- "dataColumn": "Amount",
243
- "bitePosition": "Right",
244
- "biteFontSize": "58",
245
- "fontSize": "medium",
246
- "imageUrl": "",
247
- "biteBody": "<span style=\"font-size: 24px;\">State Total</span> <br>Reflects the Sum total of the dashboard level filter selections within the timeframe set in the data. In this case 2019-2021. \n This number is calculated within the Data Bite module.\n",
248
- "prefix": "",
249
- "suffix": "",
250
- "dataFormat": {
251
- "roundToPlace": 0,
252
- "commas": true,
253
- "prefix": "",
254
- "suffix": ""
255
- },
256
- "biteStyle": "title",
257
- "filters": [
258
- {
259
- "values": []
260
- }
261
- ],
262
- "subtext": "Source ",
263
- "title": "",
264
- "theme": "theme-amber",
265
- "shadow": true,
266
- "uid": "data-bite1628877031319",
267
- "visualizationType": "data-bite"
16
+ "title": "Amount Filtered by Location and Type "
17
+ },
18
+ "rows": [
19
+ [
20
+ {
21
+ "width": 6,
22
+ "widget": "data-bite1628875468150"
23
+ },
24
+ {
25
+ "width": 6,
26
+ "widget": "chart1628875631849"
27
+ },
28
+ {
29
+ "width": null
30
+ }
31
+ ],
32
+ [
33
+ {
34
+ "width": 6,
35
+ "widget": "data-bite1628877031319"
36
+ },
37
+ {
38
+ "width": 6,
39
+ "widget": "data-bite1628876561387"
40
+ },
41
+ {
42
+ "width": null
43
+ }
44
+ ]
45
+ ],
46
+ "visualizations": {
47
+ "data-bite1628875468150": {
48
+ "type": "data-bite",
49
+ "data": [
50
+ {
51
+ "Location": "Alaska",
52
+ "Year": "2019",
53
+ "Type": "Federal",
54
+ "Amount": "1377"
55
+ },
56
+ {
57
+ "Location": "Alaska",
58
+ "Year": "2020",
59
+ "Type": "Federal",
60
+ "Amount": "1377"
61
+ },
62
+ {
63
+ "Location": "Alaska",
64
+ "Year": "2021",
65
+ "Type": "Federal",
66
+ "Amount": "1436"
268
67
  }
68
+ ],
69
+ "dataBite": "",
70
+ "dataFunction": "Mean (Average)",
71
+ "dataColumn": "Amount",
72
+ "bitePosition": "Left",
73
+ "biteFontSize": 24,
74
+ "fontSize": "medium",
75
+ "imageUrl": "",
76
+ "biteBody": "<span style=\"font-size: 20px;\">Average Amount 2019-2021</span> <br>Reflects the average of the dashboard level filter selections within the timeframe available in the data. In this case 2019-2021. \n This number is calculated within the Data Bite module.\n",
77
+ "prefix": "",
78
+ "suffix": "",
79
+ "dataFormat": {
80
+ "roundToPlace": 0,
81
+ "commas": true,
82
+ "prefix": "",
83
+ "suffix": ""
84
+ },
85
+ "biteStyle": "graphic",
86
+ "filters": [],
87
+ "subtext": "Citation for Source ",
88
+ "title": "",
89
+ "theme": "theme-orange",
90
+ "shadow": true,
91
+ "uid": "data-bite1628875468150",
92
+ "visualizationType": "data-bite",
93
+ "editing": true
269
94
  },
270
- "table": {
95
+ "chart1628875631849": {
96
+ "type": "chart",
97
+ "title": "",
98
+ "theme": "theme-blue",
99
+ "fontSize": "large",
100
+ "height": "200",
101
+ "padding": {
102
+ "left": 5,
103
+ "right": 5
104
+ },
105
+ "yAxis": {
106
+ "size": "80",
107
+ "gridLines": false,
108
+ "label": "Amount",
109
+ "numTicks": "4"
110
+ },
111
+ "barThickness": 0.35,
112
+ "xAxis": {
113
+ "size": "0",
114
+ "tickRotation": 0,
115
+ "dataKey": "Year",
116
+ "label": ""
117
+ },
118
+ "table": {
271
119
  "label": "Data Table",
272
- "show": true
273
- },
274
- "data": [
275
- {
276
- "Location": "Alaska",
277
- "Year": "2019",
278
- "Type": "Federal",
279
- "Amount": "1377"
280
- },
281
- {
282
- "Location": "Alaska",
283
- "Year": "2019",
284
- "Type": "Local",
285
- "Amount": "1613"
286
- },
287
- {
288
- "Location": "Alaska",
289
- "Year": "2019",
290
- "Type": "State",
291
- "Amount": "1495"
292
- },
293
- {
294
- "Location": "Alaska",
295
- "Year": "2020",
296
- "Type": "Federal",
297
- "Amount": "1377"
298
- },
299
- {
300
- "Location": "Alaska",
301
- "Year": "2020",
302
- "Type": "Local",
303
- "Amount": "1613"
304
- },
305
- {
306
- "Location": "Alaska",
307
- "Year": "2020",
308
- "Type": "State",
309
- "Amount": "1495"
310
- },
311
- {
312
- "Location": "Alaska",
313
- "Year": "2021",
314
- "Type": "Federal",
315
- "Amount": "1436"
316
- },
317
- {
318
- "Location": "Alaska",
319
- "Year": "2021",
320
- "Type": "Local",
321
- "Amount": "1672"
322
- },
323
- {
324
- "Location": "Alaska",
325
- "Year": "2021",
326
- "Type": "State",
327
- "Amount": "1554"
328
- },
329
- {
330
- "Location": "Alabama",
331
- "Year": "2019",
332
- "Type": "Federal",
333
- "Amount": "1375"
334
- },
335
- {
336
- "Location": "Alabama",
337
- "Year": "2019",
338
- "Type": "Local",
339
- "Amount": "1611"
340
- },
341
- {
342
- "Location": "Alabama",
343
- "Year": "2019",
344
- "Type": "State",
345
- "Amount": "1493"
346
- },
347
- {
348
- "Location": "Alabama",
349
- "Year": "2020",
350
- "Type": "Federal",
351
- "Amount": "1375"
352
- },
353
- {
354
- "Location": "Alabama",
355
- "Year": "2020",
356
- "Type": "Local",
357
- "Amount": "1611"
358
- },
359
- {
360
- "Location": "Alabama",
361
- "Year": "2020",
362
- "Type": "State",
363
- "Amount": "1493"
364
- },
365
- {
366
- "Location": "Alabama",
367
- "Year": "2021",
368
- "Type": "Federal",
369
- "Amount": "1434"
370
- },
371
- {
372
- "Location": "Alabama",
373
- "Year": "2021",
374
- "Type": "Local",
375
- "Amount": "1670"
376
- },
377
- {
378
- "Location": "Alabama",
379
- "Year": "2021",
380
- "Type": "State",
381
- "Amount": "1552"
382
- },
383
- {
384
- "Location": "Arkansas",
385
- "Year": "2019",
386
- "Type": "Federal",
387
- "Amount": "1398"
388
- },
389
- {
390
- "Location": "Arkansas",
391
- "Year": "2019",
392
- "Type": "Local",
393
- "Amount": "1634"
394
- },
395
- {
396
- "Location": "Arkansas",
397
- "Year": "2019",
398
- "Type": "State",
399
- "Amount": "1516"
400
- },
401
- {
402
- "Location": "Arkansas",
403
- "Year": "2020",
404
- "Type": "Federal",
405
- "Amount": "1398"
406
- },
407
- {
408
- "Location": "Arkansas",
409
- "Year": "2020",
410
- "Type": "Local",
411
- "Amount": "1634"
412
- },
413
- {
414
- "Location": "Arkansas",
415
- "Year": "2020",
416
- "Type": "State",
417
- "Amount": "1516"
418
- },
419
- {
420
- "Location": "Arkansas",
421
- "Year": "2021",
422
- "Type": "Federal",
423
- "Amount": "1457"
424
- },
425
- {
426
- "Location": "Arkansas",
427
- "Year": "2021",
428
- "Type": "Local",
429
- "Amount": "1693"
430
- },
431
- {
432
- "Location": "Arkansas",
433
- "Year": "2021",
434
- "Type": "State",
435
- "Amount": "1575"
436
- },
437
- {
438
- "Location": "American Samoa",
439
- "Year": "2019",
440
- "Type": "Federal",
441
- "Amount": "1388"
442
- },
443
- {
444
- "Location": "American Samoa",
445
- "Year": "2019",
446
- "Type": "Local",
447
- "Amount": "1624"
448
- },
449
- {
450
- "Location": "American Samoa",
451
- "Year": "2019",
452
- "Type": "State",
453
- "Amount": "1506"
454
- },
455
- {
456
- "Location": "American Samoa",
457
- "Year": "2020",
458
- "Type": "Federal",
459
- "Amount": "1388"
460
- },
461
- {
462
- "Location": "American Samoa",
463
- "Year": "2020",
464
- "Type": "Local",
465
- "Amount": "1624"
466
- },
467
- {
468
- "Location": "American Samoa",
469
- "Year": "2020",
470
- "Type": "State",
471
- "Amount": "1506"
472
- },
473
- {
474
- "Location": "American Samoa",
475
- "Year": "2021",
476
- "Type": "Federal",
477
- "Amount": "1447"
478
- },
479
- {
480
- "Location": "American Samoa",
481
- "Year": "2021",
482
- "Type": "Local",
483
- "Amount": "1683"
484
- },
485
- {
486
- "Location": "American Samoa",
487
- "Year": "2021",
488
- "Type": "State",
489
- "Amount": "1565"
490
- },
491
- {
492
- "Location": "Arizona",
493
- "Year": "2019",
494
- "Type": "Federal",
495
- "Amount": "1401"
496
- },
497
- {
498
- "Location": "Arizona",
499
- "Year": "2019",
500
- "Type": "Local",
501
- "Amount": "1637"
502
- },
120
+ "expanded": false,
121
+ "show": false
122
+ },
123
+ "legend": {
124
+ "behavior": "isolate",
125
+ "position": "right",
126
+ "hide": true
127
+ },
128
+ "palette": "qualitative-bold",
129
+ "labels": true,
130
+ "dataFormat": {},
131
+ "confidenceKeys": {},
132
+ "uid": "chart1628875631849",
133
+ "visualizationType": "Bar",
134
+ "data": [
135
+ {
136
+ "Location": "Alaska",
137
+ "Year": "2019",
138
+ "Type": "Federal",
139
+ "Amount": "1377"
140
+ },
141
+ {
142
+ "Location": "Alaska",
143
+ "Year": "2020",
144
+ "Type": "Federal",
145
+ "Amount": "1377"
146
+ },
147
+ {
148
+ "Location": "Alaska",
149
+ "Year": "2021",
150
+ "Type": "Federal",
151
+ "Amount": "1436"
152
+ }
153
+ ],
154
+ "series": [
503
155
  {
504
- "Location": "Arizona",
505
- "Year": "2019",
506
- "Type": "State",
507
- "Amount": "1519"
508
- },
156
+ "dataKey": "Amount",
157
+ "type": "Bar"
158
+ }
159
+ ]
160
+ },
161
+ "data-bite1628876561387": {
162
+ "type": "data-bite",
163
+ "data": [
509
164
  {
510
- "Location": "Arizona",
511
- "Year": "2020",
512
- "Type": "Federal",
513
- "Amount": "1401"
165
+ "Location": "Alaska",
166
+ "Year": "2019",
167
+ "Type": "Federal",
168
+ "Amount": "1377"
514
169
  },
515
170
  {
516
- "Location": "Arizona",
517
- "Year": "2020",
518
- "Type": "Local",
519
- "Amount": "1637"
171
+ "Location": "Alaska",
172
+ "Year": "2020",
173
+ "Type": "Federal",
174
+ "Amount": "1377"
520
175
  },
521
176
  {
522
- "Location": "Arizona",
523
- "Year": "2020",
524
- "Type": "State",
525
- "Amount": "1519"
526
- },
177
+ "Location": "Alaska",
178
+ "Year": "2021",
179
+ "Type": "Federal",
180
+ "Amount": "1436"
181
+ }
182
+ ],
183
+ "dataBite": "",
184
+ "dataFunction": "Max",
185
+ "dataColumn": "Amount",
186
+ "bitePosition": "Right",
187
+ "biteFontSize": "58",
188
+ "fontSize": "medium",
189
+ "imageUrl": "",
190
+ "biteBody": "<span style=\"font-size: 24px;\"> Peak Amount</span> <br>Reflects the maximum point of data within the dashboard level filter selections within the timeframe set in the data. In this case 2019-2021. \nThis number is calculated within the Data Bite module.\n",
191
+ "prefix": "",
192
+ "suffix": "",
193
+ "dataFormat": {
194
+ "roundToPlace": 0,
195
+ "commas": true,
196
+ "prefix": "",
197
+ "suffix": ""
198
+ },
199
+ "biteStyle": "title",
200
+ "filters": [],
201
+ "subtext": "Source",
202
+ "title": "",
203
+ "theme": "theme-blue",
204
+ "shadow": true,
205
+ "uid": "data-bite1628876561387",
206
+ "visualizationType": "data-bite"
207
+ },
208
+ "data-bite1628877031319": {
209
+ "type": "data-bite",
210
+ "data": [
527
211
  {
528
- "Location": "Arizona",
529
- "Year": "2021",
530
- "Type": "Federal",
531
- "Amount": "1460"
212
+ "Location": "Alaska",
213
+ "Year": "2019",
214
+ "Type": "Federal",
215
+ "Amount": "1377"
532
216
  },
533
217
  {
534
- "Location": "Arizona",
535
- "Year": "2021",
536
- "Type": "Local",
537
- "Amount": "1696"
218
+ "Location": "Alaska",
219
+ "Year": "2020",
220
+ "Type": "Federal",
221
+ "Amount": "1377"
538
222
  },
539
223
  {
540
- "Location": "Arizona",
541
- "Year": "2021",
542
- "Type": "State",
543
- "Amount": "1578"
224
+ "Location": "Alaska",
225
+ "Year": "2021",
226
+ "Type": "Federal",
227
+ "Amount": "1436"
544
228
  }
545
- ],
546
- "dataFileName": "dashboard_aggregate_example_no_add_fullname.csv",
547
- "dataFileSourceType": "file",
548
- "type": "dashboard",
549
- "uuid": 1628875999137,
550
- "runtime": {}
551
- }
229
+ ],
230
+ "dataBite": "",
231
+ "dataFunction": "Sum",
232
+ "dataColumn": "Amount",
233
+ "bitePosition": "Right",
234
+ "biteFontSize": "58",
235
+ "fontSize": "medium",
236
+ "imageUrl": "",
237
+ "biteBody": "<span style=\"font-size: 24px;\">State Total</span> <br>Reflects the Sum total of the dashboard level filter selections within the timeframe set in the data. In this case 2019-2021. \n This number is calculated within the Data Bite module.\n",
238
+ "prefix": "",
239
+ "suffix": "",
240
+ "dataFormat": {
241
+ "roundToPlace": 0,
242
+ "commas": true,
243
+ "prefix": "",
244
+ "suffix": ""
245
+ },
246
+ "biteStyle": "title",
247
+ "filters": [
248
+ {
249
+ "values": []
250
+ }
251
+ ],
252
+ "subtext": "Source ",
253
+ "title": "",
254
+ "theme": "theme-amber",
255
+ "shadow": true,
256
+ "uid": "data-bite1628877031319",
257
+ "visualizationType": "data-bite"
258
+ }
259
+ },
260
+ "table": {
261
+ "label": "Data Table",
262
+ "show": true
263
+ },
264
+ "data": [
265
+ {
266
+ "Location": "Alaska",
267
+ "Year": "2019",
268
+ "Type": "Federal",
269
+ "Amount": "1377"
270
+ },
271
+ {
272
+ "Location": "Alaska",
273
+ "Year": "2019",
274
+ "Type": "Local",
275
+ "Amount": "1613"
276
+ },
277
+ {
278
+ "Location": "Alaska",
279
+ "Year": "2019",
280
+ "Type": "State",
281
+ "Amount": "1495"
282
+ },
283
+ {
284
+ "Location": "Alaska",
285
+ "Year": "2020",
286
+ "Type": "Federal",
287
+ "Amount": "1377"
288
+ },
289
+ {
290
+ "Location": "Alaska",
291
+ "Year": "2020",
292
+ "Type": "Local",
293
+ "Amount": "1613"
294
+ },
295
+ {
296
+ "Location": "Alaska",
297
+ "Year": "2020",
298
+ "Type": "State",
299
+ "Amount": "1495"
300
+ },
301
+ {
302
+ "Location": "Alaska",
303
+ "Year": "2021",
304
+ "Type": "Federal",
305
+ "Amount": "1436"
306
+ },
307
+ {
308
+ "Location": "Alaska",
309
+ "Year": "2021",
310
+ "Type": "Local",
311
+ "Amount": "1672"
312
+ },
313
+ {
314
+ "Location": "Alaska",
315
+ "Year": "2021",
316
+ "Type": "State",
317
+ "Amount": "1554"
318
+ },
319
+ {
320
+ "Location": "Alabama",
321
+ "Year": "2019",
322
+ "Type": "Federal",
323
+ "Amount": "1375"
324
+ },
325
+ {
326
+ "Location": "Alabama",
327
+ "Year": "2019",
328
+ "Type": "Local",
329
+ "Amount": "1611"
330
+ },
331
+ {
332
+ "Location": "Alabama",
333
+ "Year": "2019",
334
+ "Type": "State",
335
+ "Amount": "1493"
336
+ },
337
+ {
338
+ "Location": "Alabama",
339
+ "Year": "2020",
340
+ "Type": "Federal",
341
+ "Amount": "1375"
342
+ },
343
+ {
344
+ "Location": "Alabama",
345
+ "Year": "2020",
346
+ "Type": "Local",
347
+ "Amount": "1611"
348
+ },
349
+ {
350
+ "Location": "Alabama",
351
+ "Year": "2020",
352
+ "Type": "State",
353
+ "Amount": "1493"
354
+ },
355
+ {
356
+ "Location": "Alabama",
357
+ "Year": "2021",
358
+ "Type": "Federal",
359
+ "Amount": "1434"
360
+ },
361
+ {
362
+ "Location": "Alabama",
363
+ "Year": "2021",
364
+ "Type": "Local",
365
+ "Amount": "1670"
366
+ },
367
+ {
368
+ "Location": "Alabama",
369
+ "Year": "2021",
370
+ "Type": "State",
371
+ "Amount": "1552"
372
+ },
373
+ {
374
+ "Location": "Arkansas",
375
+ "Year": "2019",
376
+ "Type": "Federal",
377
+ "Amount": "1398"
378
+ },
379
+ {
380
+ "Location": "Arkansas",
381
+ "Year": "2019",
382
+ "Type": "Local",
383
+ "Amount": "1634"
384
+ },
385
+ {
386
+ "Location": "Arkansas",
387
+ "Year": "2019",
388
+ "Type": "State",
389
+ "Amount": "1516"
390
+ },
391
+ {
392
+ "Location": "Arkansas",
393
+ "Year": "2020",
394
+ "Type": "Federal",
395
+ "Amount": "1398"
396
+ },
397
+ {
398
+ "Location": "Arkansas",
399
+ "Year": "2020",
400
+ "Type": "Local",
401
+ "Amount": "1634"
402
+ },
403
+ {
404
+ "Location": "Arkansas",
405
+ "Year": "2020",
406
+ "Type": "State",
407
+ "Amount": "1516"
408
+ },
409
+ {
410
+ "Location": "Arkansas",
411
+ "Year": "2021",
412
+ "Type": "Federal",
413
+ "Amount": "1457"
414
+ },
415
+ {
416
+ "Location": "Arkansas",
417
+ "Year": "2021",
418
+ "Type": "Local",
419
+ "Amount": "1693"
420
+ },
421
+ {
422
+ "Location": "Arkansas",
423
+ "Year": "2021",
424
+ "Type": "State",
425
+ "Amount": "1575"
426
+ },
427
+ {
428
+ "Location": "American Samoa",
429
+ "Year": "2019",
430
+ "Type": "Federal",
431
+ "Amount": "1388"
432
+ },
433
+ {
434
+ "Location": "American Samoa",
435
+ "Year": "2019",
436
+ "Type": "Local",
437
+ "Amount": "1624"
438
+ },
439
+ {
440
+ "Location": "American Samoa",
441
+ "Year": "2019",
442
+ "Type": "State",
443
+ "Amount": "1506"
444
+ },
445
+ {
446
+ "Location": "American Samoa",
447
+ "Year": "2020",
448
+ "Type": "Federal",
449
+ "Amount": "1388"
450
+ },
451
+ {
452
+ "Location": "American Samoa",
453
+ "Year": "2020",
454
+ "Type": "Local",
455
+ "Amount": "1624"
456
+ },
457
+ {
458
+ "Location": "American Samoa",
459
+ "Year": "2020",
460
+ "Type": "State",
461
+ "Amount": "1506"
462
+ },
463
+ {
464
+ "Location": "American Samoa",
465
+ "Year": "2021",
466
+ "Type": "Federal",
467
+ "Amount": "1447"
468
+ },
469
+ {
470
+ "Location": "American Samoa",
471
+ "Year": "2021",
472
+ "Type": "Local",
473
+ "Amount": "1683"
474
+ },
475
+ {
476
+ "Location": "American Samoa",
477
+ "Year": "2021",
478
+ "Type": "State",
479
+ "Amount": "1565"
480
+ },
481
+ {
482
+ "Location": "Arizona",
483
+ "Year": "2019",
484
+ "Type": "Federal",
485
+ "Amount": "1401"
486
+ },
487
+ {
488
+ "Location": "Arizona",
489
+ "Year": "2019",
490
+ "Type": "Local",
491
+ "Amount": "1637"
492
+ },
493
+ {
494
+ "Location": "Arizona",
495
+ "Year": "2019",
496
+ "Type": "State",
497
+ "Amount": "1519"
498
+ },
499
+ {
500
+ "Location": "Arizona",
501
+ "Year": "2020",
502
+ "Type": "Federal",
503
+ "Amount": "1401"
504
+ },
505
+ {
506
+ "Location": "Arizona",
507
+ "Year": "2020",
508
+ "Type": "Local",
509
+ "Amount": "1637"
510
+ },
511
+ {
512
+ "Location": "Arizona",
513
+ "Year": "2020",
514
+ "Type": "State",
515
+ "Amount": "1519"
516
+ },
517
+ {
518
+ "Location": "Arizona",
519
+ "Year": "2021",
520
+ "Type": "Federal",
521
+ "Amount": "1460"
522
+ },
523
+ {
524
+ "Location": "Arizona",
525
+ "Year": "2021",
526
+ "Type": "Local",
527
+ "Amount": "1696"
528
+ },
529
+ {
530
+ "Location": "Arizona",
531
+ "Year": "2021",
532
+ "Type": "State",
533
+ "Amount": "1578"
534
+ }
535
+ ],
536
+ "dataFileName": "dashboard_aggregate_example_no_add_fullname.csv",
537
+ "dataFileSourceType": "file",
538
+ "type": "dashboard",
539
+ "uuid": 1628875999137
540
+ }