@cdc/dashboard 1.1.1 → 1.1.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.
- package/dist/cdcdashboard.js +378 -0
- package/examples/default-data.json +368 -0
- package/examples/default.json +156 -0
- package/examples/test-example.json +1 -0
- package/package.json +13 -11
- package/src/CdcDashboard.js +491 -0
- package/src/components/Column.js +46 -0
- package/src/components/DataTable.tsx +172 -0
- package/src/components/EditorPanel.js +354 -0
- package/src/components/Grid.js +28 -0
- package/src/components/Header.js +15 -0
- package/src/components/Row.js +137 -0
- package/src/components/Widget.js +112 -0
- package/src/context.tsx +5 -0
- package/src/data/initial-state.js +17 -0
- package/src/images/icon-close.svg +1 -0
- package/src/images/icon-code.svg +3 -0
- package/src/images/icon-col-12.svg +3 -0
- package/src/images/icon-col-4-8.svg +3 -0
- package/src/images/icon-col-4.svg +3 -0
- package/src/images/icon-col-6.svg +3 -0
- package/src/images/icon-col-8-4.svg +3 -0
- package/src/images/icon-down.svg +1 -0
- package/src/images/icon-edit.svg +3 -0
- package/src/images/icon-grid.svg +4 -0
- package/src/images/icon-move.svg +8 -0
- package/src/images/icon-up.svg +1 -0
- package/src/images/warning.svg +1 -0
- package/src/index.html +27 -0
- package/src/index.js +17 -0
- package/src/scss/editor-panel.scss +652 -0
- package/src/scss/grid.scss +321 -0
- package/src/scss/main.scss +214 -0
- package/src/scss/mixins.scss +0 -0
- package/src/scss/variables.scss +1 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"filter1": "option1",
|
|
4
|
+
"filter2": "sub option 1",
|
|
5
|
+
"Insured Rate": "43",
|
|
6
|
+
"state": "Alabama"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"filter1": "option1",
|
|
10
|
+
"filter2": "sub option 2",
|
|
11
|
+
"Insured Rate": "75",
|
|
12
|
+
"state": "Alabama"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"filter1": "option1",
|
|
16
|
+
"filter2": "sub option 1",
|
|
17
|
+
"Insured Rate": "0",
|
|
18
|
+
"state": "Alaska"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"filter1": "option1",
|
|
22
|
+
"filter2": "sub option 1",
|
|
23
|
+
"Insured Rate": "72.7",
|
|
24
|
+
"state": "Arizona"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"filter1": "option1",
|
|
28
|
+
"filter2": "sub option 1",
|
|
29
|
+
"Insured Rate": "78.7",
|
|
30
|
+
"state": "Arkansas"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"filter1": "option1",
|
|
34
|
+
"filter2": "sub option 1",
|
|
35
|
+
"Insured Rate": "37.2",
|
|
36
|
+
"state": "California"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"filter1": "option1",
|
|
40
|
+
"filter2": "sub option 1",
|
|
41
|
+
"Insured Rate": "50.6",
|
|
42
|
+
"state": "Colorado"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"filter1": "option1",
|
|
46
|
+
"filter2": "sub option 1",
|
|
47
|
+
"Insured Rate": "83.2",
|
|
48
|
+
"state": "Connecticut"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"filter1": "option1",
|
|
52
|
+
"filter2": "sub option 1",
|
|
53
|
+
"Insured Rate": "90",
|
|
54
|
+
"state": "Delaware"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"filter1": "option1",
|
|
58
|
+
"filter2": "sub option 1",
|
|
59
|
+
"Insured Rate": "77",
|
|
60
|
+
"state": "District of Columbia"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"filter1": "option1",
|
|
64
|
+
"filter2": "sub option 1",
|
|
65
|
+
"Insured Rate": "83",
|
|
66
|
+
"state": "Florida"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"filter1": "option2",
|
|
70
|
+
"filter2": "sub option 1",
|
|
71
|
+
"Insured Rate": "100",
|
|
72
|
+
"state": "Alabama"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"filter1": "option2",
|
|
76
|
+
"filter2": "sub option 1",
|
|
77
|
+
"Insured Rate": "0",
|
|
78
|
+
"state": "Alaska"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"filter1": "option2",
|
|
82
|
+
"filter2": "sub option 1",
|
|
83
|
+
"Insured Rate": "72.7",
|
|
84
|
+
"state": "Arizona"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"filter1": "option2",
|
|
88
|
+
"filter2": "sub option 1",
|
|
89
|
+
"Insured Rate": "78.7",
|
|
90
|
+
"state": "Arkansas"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"filter1": "option2",
|
|
94
|
+
"filter2": "sub option 1",
|
|
95
|
+
"Insured Rate": "37.2",
|
|
96
|
+
"state": "California"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"filter1": "option2",
|
|
100
|
+
"filter2": "sub option 1",
|
|
101
|
+
"Insured Rate": "50.6",
|
|
102
|
+
"state": "Colorado"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"filter1": "option2",
|
|
106
|
+
"filter2": "sub option 1",
|
|
107
|
+
"Insured Rate": "83.2",
|
|
108
|
+
"state": "Connecticut"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"filter1": "option2",
|
|
112
|
+
"filter2": "sub option 1",
|
|
113
|
+
"Insured Rate": "90",
|
|
114
|
+
"state": "Delaware"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"filter1": "option2",
|
|
118
|
+
"filter2": "sub option 1",
|
|
119
|
+
"Insured Rate": "77",
|
|
120
|
+
"state": "District of Columbia"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"filter1": "option2",
|
|
124
|
+
"filter2": "sub option 1",
|
|
125
|
+
"Insured Rate": "83",
|
|
126
|
+
"state": "Florida"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"filter1": "option3",
|
|
130
|
+
"filter2": "sub option 1",
|
|
131
|
+
"Insured Rate": "0",
|
|
132
|
+
"state": "Alabama"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"filter1": "option3",
|
|
136
|
+
"filter2": "sub option 1",
|
|
137
|
+
"Insured Rate": "0",
|
|
138
|
+
"state": "Alaska"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"filter1": "option3",
|
|
142
|
+
"filter2": "sub option 1",
|
|
143
|
+
"Insured Rate": "72.7",
|
|
144
|
+
"state": "Arizona"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"filter1": "option3",
|
|
148
|
+
"filter2": "sub option 1",
|
|
149
|
+
"Insured Rate": "78.7",
|
|
150
|
+
"state": "Arkansas"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"filter1": "option3",
|
|
154
|
+
"filter2": "sub option 1",
|
|
155
|
+
"Insured Rate": "37.2",
|
|
156
|
+
"state": "California"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"filter1": "option3",
|
|
160
|
+
"filter2": "sub option 1",
|
|
161
|
+
"Insured Rate": "50.6",
|
|
162
|
+
"state": "Colorado"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"filter1": "option3",
|
|
166
|
+
"filter2": "sub option 1",
|
|
167
|
+
"Insured Rate": "83.2",
|
|
168
|
+
"state": "Connecticut"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"filter1": "option3",
|
|
172
|
+
"filter2": "sub option 1",
|
|
173
|
+
"Insured Rate": "90",
|
|
174
|
+
"state": "Delaware"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"filter1": "option3",
|
|
178
|
+
"filter2": "sub option 1",
|
|
179
|
+
"Insured Rate": "77",
|
|
180
|
+
"state": "District of Columbia"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"filter1": "option3",
|
|
184
|
+
"filter2": "sub option 1",
|
|
185
|
+
"Insured Rate": "83",
|
|
186
|
+
"state": "Florida"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"filter1": "option1",
|
|
190
|
+
"filter2": "sub option 2",
|
|
191
|
+
"Insured Rate": "43",
|
|
192
|
+
"state": "Alabama"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"filter1": "option1",
|
|
196
|
+
"filter2": "sub option 2",
|
|
197
|
+
"Insured Rate": "0",
|
|
198
|
+
"state": "Alaska"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"filter1": "option1",
|
|
202
|
+
"filter2": "sub option 2",
|
|
203
|
+
"Insured Rate": "72.7",
|
|
204
|
+
"state": "Arizona"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"filter1": "option1",
|
|
208
|
+
"filter2": "sub option 2",
|
|
209
|
+
"Insured Rate": "78.7",
|
|
210
|
+
"state": "Arkansas"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"filter1": "option1",
|
|
214
|
+
"filter2": "sub option 2",
|
|
215
|
+
"Insured Rate": "37.2",
|
|
216
|
+
"state": "California"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"filter1": "option1",
|
|
220
|
+
"filter2": "sub option 2",
|
|
221
|
+
"Insured Rate": "50.6",
|
|
222
|
+
"state": "Colorado"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"filter1": "option1",
|
|
226
|
+
"filter2": "sub option 2",
|
|
227
|
+
"Insured Rate": "83.2",
|
|
228
|
+
"state": "Connecticut"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"filter1": "option1",
|
|
232
|
+
"filter2": "sub option 2",
|
|
233
|
+
"Insured Rate": "90",
|
|
234
|
+
"state": "Delaware"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"filter1": "option1",
|
|
238
|
+
"filter2": "sub option 2",
|
|
239
|
+
"Insured Rate": "77",
|
|
240
|
+
"state": "District of Columbia"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"filter1": "option1",
|
|
244
|
+
"filter2": "sub option 2",
|
|
245
|
+
"Insured Rate": "83",
|
|
246
|
+
"state": "Florida"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"filter1": "option2",
|
|
250
|
+
"filter2": "sub option 2",
|
|
251
|
+
"Insured Rate": "43",
|
|
252
|
+
"state": "Alabama"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"filter1": "option2",
|
|
256
|
+
"filter2": "sub option 2",
|
|
257
|
+
"Insured Rate": "0",
|
|
258
|
+
"state": "Alaska"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"filter1": "option2",
|
|
262
|
+
"filter2": "sub option 2",
|
|
263
|
+
"Insured Rate": "72.7",
|
|
264
|
+
"state": "Arizona"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"filter1": "option2",
|
|
268
|
+
"filter2": "sub option 2",
|
|
269
|
+
"Insured Rate": "78.7",
|
|
270
|
+
"state": "Arkansas"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"filter1": "option2",
|
|
274
|
+
"filter2": "sub option 2",
|
|
275
|
+
"Insured Rate": "37.2",
|
|
276
|
+
"state": "California"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"filter1": "option2",
|
|
280
|
+
"filter2": "sub option 2",
|
|
281
|
+
"Insured Rate": "50.6",
|
|
282
|
+
"state": "Colorado"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"filter1": "option2",
|
|
286
|
+
"filter2": "sub option 2",
|
|
287
|
+
"Insured Rate": "83.2",
|
|
288
|
+
"state": "Connecticut"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"filter1": "option2",
|
|
292
|
+
"filter2": "sub option 2",
|
|
293
|
+
"Insured Rate": "90",
|
|
294
|
+
"state": "Delaware"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"filter1": "option2",
|
|
298
|
+
"filter2": "sub option 2",
|
|
299
|
+
"Insured Rate": "77",
|
|
300
|
+
"state": "District of Columbia"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"filter1": "option2",
|
|
304
|
+
"filter2": "sub option 2",
|
|
305
|
+
"Insured Rate": "83",
|
|
306
|
+
"state": "Florida"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"filter1": "option3",
|
|
310
|
+
"filter2": "sub option 2",
|
|
311
|
+
"Insured Rate": "43",
|
|
312
|
+
"state": "Alabama"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"filter1": "option3",
|
|
316
|
+
"filter2": "sub option 2",
|
|
317
|
+
"Insured Rate": "0",
|
|
318
|
+
"state": "Alaska"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"filter1": "option3",
|
|
322
|
+
"filter2": "sub option 2",
|
|
323
|
+
"Insured Rate": "72.7",
|
|
324
|
+
"state": "Arizona"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"filter1": "option3",
|
|
328
|
+
"filter2": "sub option 2",
|
|
329
|
+
"Insured Rate": "78.7",
|
|
330
|
+
"state": "Arkansas"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"filter1": "option3",
|
|
334
|
+
"filter2": "sub option 2",
|
|
335
|
+
"Insured Rate": "37.2",
|
|
336
|
+
"state": "California"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"filter1": "option3",
|
|
340
|
+
"filter2": "sub option 2",
|
|
341
|
+
"Insured Rate": "50.6",
|
|
342
|
+
"state": "Colorado"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"filter1": "option3",
|
|
346
|
+
"filter2": "sub option 2",
|
|
347
|
+
"Insured Rate": "83.2",
|
|
348
|
+
"state": "Connecticut"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"filter1": "option3",
|
|
352
|
+
"filter2": "sub option 2",
|
|
353
|
+
"Insured Rate": "90",
|
|
354
|
+
"state": "Delaware"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"filter1": "option3",
|
|
358
|
+
"filter2": "sub option 2",
|
|
359
|
+
"Insured Rate": "77",
|
|
360
|
+
"state": "District of Columbia"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"filter1": "option3",
|
|
364
|
+
"filter2": "sub option 2",
|
|
365
|
+
"Insured Rate": "83",
|
|
366
|
+
"state": "Florida"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type":"dashboard",
|
|
3
|
+
"data": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Jupiter",
|
|
6
|
+
"Radius": "10.97",
|
|
7
|
+
"Diameter": "22",
|
|
8
|
+
"distance": "0"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Saturn",
|
|
12
|
+
"Radius": "9.14",
|
|
13
|
+
"Diameter": "18",
|
|
14
|
+
"distance": "0"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Uranus",
|
|
18
|
+
"Radius": "3.98",
|
|
19
|
+
"Diameter": "8",
|
|
20
|
+
"distance": "0"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Neptune",
|
|
24
|
+
"Radius": "3.86",
|
|
25
|
+
"Diameter": "7",
|
|
26
|
+
"distance": "0"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Earth",
|
|
30
|
+
"Radius": "1",
|
|
31
|
+
"Diameter": "2",
|
|
32
|
+
"distance": "0"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Venus",
|
|
36
|
+
"Radius": "0.950",
|
|
37
|
+
"Diameter": "2",
|
|
38
|
+
"distance": "0"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "Mars",
|
|
42
|
+
"Radius": "0.532",
|
|
43
|
+
"Diameter": "1",
|
|
44
|
+
"distance": "0"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Mercury",
|
|
48
|
+
"Radius": "0.383",
|
|
49
|
+
"Diameter": "0.7",
|
|
50
|
+
"distance": "0"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "Pluto",
|
|
54
|
+
"Radius": "0.181",
|
|
55
|
+
"Diameter": "0.3",
|
|
56
|
+
"distance": "0"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"dashboard": {
|
|
60
|
+
"filters": [{
|
|
61
|
+
"label": "Filter 1",
|
|
62
|
+
"columnName": "filter1"
|
|
63
|
+
}]
|
|
64
|
+
},
|
|
65
|
+
"rows": [
|
|
66
|
+
[{"width": 12, "widget": "chart1"}, {}, {}],
|
|
67
|
+
[{"width": 12, "widget": "map1"}, {}, {}]
|
|
68
|
+
],
|
|
69
|
+
"visualizations": {
|
|
70
|
+
"chart1": {
|
|
71
|
+
"uid": "chart1",
|
|
72
|
+
"type": "chart",
|
|
73
|
+
"title": "Chart Example",
|
|
74
|
+
"visualizationType": "Pie",
|
|
75
|
+
"palette": "qualitative-soft",
|
|
76
|
+
"filters": [{
|
|
77
|
+
"label": "Filter 2",
|
|
78
|
+
"columnName": "filter2"
|
|
79
|
+
}],
|
|
80
|
+
"aspectRatio": 1,
|
|
81
|
+
"dataFormat": {
|
|
82
|
+
"roundTo": 1,
|
|
83
|
+
"commas": false,
|
|
84
|
+
"prefix": "",
|
|
85
|
+
"suffix": ""
|
|
86
|
+
},
|
|
87
|
+
"yAxis": {
|
|
88
|
+
"label": "Insured Rate",
|
|
89
|
+
"dataKey": "Insured Rate"
|
|
90
|
+
},
|
|
91
|
+
"xAxis": {
|
|
92
|
+
"label": "State",
|
|
93
|
+
"dataKey": "state"
|
|
94
|
+
},
|
|
95
|
+
"legend": {
|
|
96
|
+
"hide": false
|
|
97
|
+
},
|
|
98
|
+
"table": {
|
|
99
|
+
"label": "Data Table",
|
|
100
|
+
"expanded": false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"map1": {
|
|
104
|
+
"uid": "map1",
|
|
105
|
+
"type": "map",
|
|
106
|
+
"defaultData": false,
|
|
107
|
+
"general": {
|
|
108
|
+
"title": "Map Example",
|
|
109
|
+
"subtext": "",
|
|
110
|
+
"territoriesLabel": "Territories",
|
|
111
|
+
"type": "data",
|
|
112
|
+
"geoType": "us",
|
|
113
|
+
"headerColor": "theme-blue",
|
|
114
|
+
"showSidebar": true,
|
|
115
|
+
"showTitle": true,
|
|
116
|
+
"geoBorderColor": "darkGray",
|
|
117
|
+
"showDownloadButton": true,
|
|
118
|
+
"expandDataTable": true
|
|
119
|
+
},
|
|
120
|
+
"color": "pinkpurple",
|
|
121
|
+
"columns": {
|
|
122
|
+
"geo": {
|
|
123
|
+
"name": "state",
|
|
124
|
+
"label": "Location",
|
|
125
|
+
"tooltip": false,
|
|
126
|
+
"dataTable": true
|
|
127
|
+
},
|
|
128
|
+
"primary": {
|
|
129
|
+
"name": "Insured Rate",
|
|
130
|
+
"label": "Data Label",
|
|
131
|
+
"prefix": "",
|
|
132
|
+
"suffix": "%",
|
|
133
|
+
"dataTable": true,
|
|
134
|
+
"tooltip": true
|
|
135
|
+
},
|
|
136
|
+
"navigate": {
|
|
137
|
+
"name": "link",
|
|
138
|
+
"tooltip": false,
|
|
139
|
+
"dataTable": false
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"legend": {
|
|
143
|
+
"numberOfItems": 3,
|
|
144
|
+
"position": "side",
|
|
145
|
+
"title": "Legend Title",
|
|
146
|
+
"description": "Legend Text",
|
|
147
|
+
"type": "equalnumber",
|
|
148
|
+
"specialClasses": ["N/A"]
|
|
149
|
+
},
|
|
150
|
+
"filters": [{
|
|
151
|
+
"label": "Filter 2",
|
|
152
|
+
"columnName": "filter2"
|
|
153
|
+
}]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"dashboard":{"theme":"theme-blue"},"rows":[[{"width":12,"widget":"waffle-chart1661970401264"},{},{}]],"visualizations":{"waffle-chart1661970401264":{"title":"Waffle Chart","content":"","subtext":"","orientation":"horizontal","data":[{"STATE":"Alabama","Rate":"130","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Alaska","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"American Samoa","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Arizona","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Arkansas","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"California","Rate":"30","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Colorado","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Connecticut","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Deleware","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"DC","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Florida","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Georgia","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Guam","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Hawaii","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Idaho","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Illinois","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Indiana","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Iowa","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Kansas","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Kentucky","Rate":"60","Location":"NA","URL":"https://www.cdc.gov/"},{"STATE":"Louisiana","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Maine","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Marshall Islands","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Maryland","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Massachusetts","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Michigan","Rate":"12","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Micronesia","Rate":"65","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Minnesota","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Mississippi","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Montana","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Montana","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Nebraska","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Nevada","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"New Hampshire","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"New Jersey","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"New Mexico","Rate":"12","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"New York","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"North Carolina","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"North Dakota","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Northern Mariana Islands","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Ohio","Rate":"88","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Oklahoma","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Oregon","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Palau","Rate":"15","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Pennsylvania","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Puerto Rico","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Rhode Island","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"South Carolina","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"South Dakota","Rate":"86","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Tennessee","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Texas","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Utah","Rate":"54","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Vermont","Rate":"40","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Virgin Islands","Rate":"55","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Virginia","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Washington","Rate":"62","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"West Virginia","Rate":"25","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Wyoming","Rate":"43","Location":"Vehicle","URL":"https://www.cdc.gov/"}],"filters":[],"fontSize":"","overallFontSize":"medium","dataColumn":"Rate","dataFunction":"Count","dataConditionalColumn":"","dataConditionalOperator":"","dataConditionalComparate":"","invalidComparate":false,"customDenom":false,"dataDenom":"100","dataDenomColumn":"","dataDenomFunction":"","suffix":"","roundToPlace":"0","shape":"circle","nodeWidth":"10","nodeSpacer":"2","theme":"theme-blue","type":"waffle-chart","uid":"waffle-chart1661970401264","visualizationType":"waffle-chart","editing":true}},"table":{"label":"Data Table","show":true},"data":[{"STATE":"Alabama","Rate":"130","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Alaska","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"American Samoa","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Arizona","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Arkansas","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"California","Rate":"30","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Colorado","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Connecticut","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Deleware","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"DC","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Florida","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Georgia","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Guam","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Hawaii","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Idaho","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Illinois","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Indiana","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Iowa","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Kansas","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Kentucky","Rate":"60","Location":"NA","URL":"https://www.cdc.gov/"},{"STATE":"Louisiana","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Maine","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Marshall Islands","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Maryland","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Massachusetts","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Michigan","Rate":"12","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Micronesia","Rate":"65","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Minnesota","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Mississippi","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Montana","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Montana","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Nebraska","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Nevada","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"New Hampshire","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"New Jersey","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"New Mexico","Rate":"12","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"New York","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"North Carolina","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"North Dakota","Rate":"57","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Northern Mariana Islands","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Ohio","Rate":"88","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Oklahoma","Rate":"40","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Oregon","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Palau","Rate":"15","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Pennsylvania","Rate":"60","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Puerto Rico","Rate":"30","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Rhode Island","Rate":"40","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"South Carolina","Rate":"55","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"South Dakota","Rate":"86","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Tennessee","Rate":"60","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Texas","Rate":"30","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Utah","Rate":"54","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"Vermont","Rate":"40","Location":"Home","URL":"https://www.cdc.gov/"},{"STATE":"Virgin Islands","Rate":"55","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Virginia","Rate":"57","Location":"School","URL":"https://www.cdc.gov/"},{"STATE":"Washington","Rate":"62","Location":"Work","URL":"https://www.cdc.gov/"},{"STATE":"West Virginia","Rate":"25","Location":"Vehicle","URL":"https://www.cdc.gov/"},{"STATE":"Wyoming","Rate":"43","Location":"Vehicle","URL":"https://www.cdc.gov/"}],"dataFileName":"valid-data-map.csv","dataFileSourceType":"file","newViz":true,"type":"dashboard","orientation":null,"visualizationSubType":null,"runtime":{}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/dashboard",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "React component for combining multiple visualizations into a single dashboard",
|
|
5
5
|
"main": "dist/cdcdashboard",
|
|
6
6
|
"scripts": {
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
"build": "npx webpack --mode production --env packageName=CdcDashboard --env folderName=dashboard -c ../../webpack.config.js",
|
|
9
9
|
"prepublishOnly": "lerna run --scope @cdc/dashboard build"
|
|
10
10
|
},
|
|
11
|
-
"files": [
|
|
12
|
-
"./dist/"
|
|
13
|
-
],
|
|
14
11
|
"repository": {
|
|
15
12
|
"type": "git",
|
|
16
13
|
"url": "git+https://github.com/CDCgov/cdc-open-viz",
|
|
@@ -21,12 +18,14 @@
|
|
|
21
18
|
"url": "https://github.com/CDCgov/cdc-open-viz/issues"
|
|
22
19
|
},
|
|
23
20
|
"license": "Apache-2.0",
|
|
24
|
-
"
|
|
25
|
-
"@cdc/chart": "^1.3.
|
|
26
|
-
"@cdc/core": "^1.1.
|
|
27
|
-
"@cdc/data-bite": "^1.1.
|
|
28
|
-
"@cdc/map": "^2.6.
|
|
29
|
-
"
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@cdc/chart": "^1.3.4",
|
|
23
|
+
"@cdc/core": "^1.1.4",
|
|
24
|
+
"@cdc/data-bite": "^1.1.4",
|
|
25
|
+
"@cdc/map": "^2.6.4",
|
|
26
|
+
"@cdc/markup-include": "^1.0.2",
|
|
27
|
+
"@cdc/waffle-chart": "^1.0.2",
|
|
28
|
+
"html-react-parser": "1.4.9",
|
|
30
29
|
"js-base64": "^2.5.2",
|
|
31
30
|
"papaparse": "^5.3.0",
|
|
32
31
|
"react-accessible-accordion": "^3.3.4",
|
|
@@ -41,5 +40,8 @@
|
|
|
41
40
|
"react": ">=16.8",
|
|
42
41
|
"react-dom": ">=16"
|
|
43
42
|
},
|
|
44
|
-
"
|
|
43
|
+
"resolutions": {
|
|
44
|
+
"@types/react": "17.x"
|
|
45
|
+
},
|
|
46
|
+
"gitHead": "ff89a7aea74c533413c62ef8859cc011e6b3cbfa"
|
|
45
47
|
}
|