@cdc/dashboard 4.26.2 → 4.26.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/CONFIG.md +172 -0
- package/README.md +60 -20
- package/dist/cdcdashboard-CY9IcPSi.es.js +6 -0
- package/dist/cdcdashboard-DlpiY3fQ.es.js +4 -0
- package/dist/cdcdashboard.js +56686 -50281
- package/examples/__data__/data-2.json +6 -0
- package/examples/__data__/data-with-metadata.json +18 -0
- package/examples/__data__/data.json +6 -0
- package/examples/default.json +7 -36
- package/examples/legend-issue.json +1 -1
- package/examples/minimal-example.json +34 -0
- package/examples/private/dengue.json +4640 -0
- package/examples/private/inline-markup.json +775 -0
- package/examples/private/link_to_file.json +16662 -0
- package/examples/private/recent-update.json +1456 -0
- package/examples/private/toggle.json +10137 -0
- package/examples/sankey.json +3 -3
- package/examples/test-api-filter-reset.json +4 -4
- package/examples/tp5-test.json +86 -4
- package/package.json +9 -9
- package/src/CdcDashboard.tsx +2 -1
- package/src/CdcDashboardComponent.tsx +48 -28
- package/src/_stories/Dashboard.DataSetup.stories.tsx +6 -1
- package/src/_stories/Dashboard.Pages.smoke.stories.tsx +22 -0
- package/src/_stories/Dashboard.smoke.stories.tsx +33 -0
- package/src/_stories/Dashboard.stories.tsx +4523 -83
- package/src/_stories/_mock/dashboard-data-driven-colors.json +171 -0
- package/src/_stories/_mock/tab-simple-filter.json +153 -0
- package/src/_stories/_mock/tp5-test.json +86 -5
- package/src/components/DashboardEditors.tsx +15 -0
- package/src/components/DashboardFilters/DashboardFilters.test.tsx +129 -0
- package/src/components/DashboardFilters/DashboardFilters.tsx +29 -10
- package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +12 -8
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/APIModal.tsx +6 -4
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +59 -58
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.test.tsx +127 -0
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +29 -6
- package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +10 -9
- package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +8 -8
- package/src/components/DashboardFilters/_stories/DashboardFilters.stories.tsx +1 -1
- package/src/components/DashboardFilters/dashboardfilter.styles.css +3 -3
- package/src/components/DataDesignerModal.tsx +2 -2
- package/src/components/ExpandCollapseButtons.tsx +6 -4
- package/src/components/Grid.tsx +4 -3
- package/src/components/Header/Header.tsx +27 -5
- package/src/components/Header/index.scss +1 -1
- package/src/components/MultiConfigTabs/MultiConfigTabs.tsx +141 -140
- package/src/components/MultiConfigTabs/multiconfigtabs.styles.css +6 -6
- package/src/components/Row.tsx +30 -8
- package/src/components/Toggle/toggle-style.css +7 -7
- package/src/components/VisualizationRow.tsx +81 -22
- package/src/components/VisualizationsPanel/VisualizationsPanel.tsx +2 -55
- package/src/components/VisualizationsPanel/visualizations-panel-styles.css +2 -2
- package/src/components/Widget/Widget.tsx +7 -6
- package/src/components/Widget/widget.styles.css +48 -17
- package/src/data/initial-state.js +2 -1
- package/src/helpers/addVisualization.ts +73 -0
- package/src/helpers/formatConfigBeforeSave.ts +1 -1
- package/src/helpers/getVizConfig.ts +13 -3
- package/src/helpers/iconHash.tsx +45 -36
- package/src/helpers/processDataLegacy.ts +19 -14
- package/src/helpers/tests/addVisualization.test.ts +52 -0
- package/src/helpers/tests/formatConfigBeforeSave.test.ts +81 -1
- package/src/scss/editor-panel.scss +1 -1
- package/src/scss/grid.scss +38 -8
- package/src/scss/main.scss +237 -40
- package/src/store/dashboard.reducer.ts +2 -1
- package/src/test/CdcDashboard.test.jsx +26 -2
- package/src/test/CdcDashboardComponent.test.tsx +74 -0
- package/src/types/FilterStyles.ts +2 -1
- package/src/types/SharedFilter.ts +1 -0
- package/tests/fixtures/dashboard-config-with-metadata.json +89 -0
- package/vite.config.js +2 -2
- package/dist/cdcdashboard-Cf9_fbQf.es.js +0 -6
- package/examples/DEV-6574.json +0 -2224
- package/examples/api-dashboard-data.json +0 -272
- package/examples/api-dashboard-years.json +0 -11
- package/examples/api-geographies-data.json +0 -11
- package/examples/chart-data.json +0 -5409
- package/examples/custom/css/respiratory.css +0 -236
- package/examples/custom/js/respiratory.js +0 -242
- package/examples/default-data.json +0 -368
- package/examples/default-filter-control.json +0 -209
- package/examples/default-multi-dataset-shared-filter.json +0 -1729
- package/examples/default-multi-dataset.json +0 -506
- package/examples/ed-visits-county-file.json +0 -402
- package/examples/filters/Alabama.json +0 -72
- package/examples/filters/Alaska.json +0 -1737
- package/examples/filters/Arkansas.json +0 -4713
- package/examples/filters/California.json +0 -212
- package/examples/filters/Colorado.json +0 -1500
- package/examples/filters/Connecticut.json +0 -559
- package/examples/filters/Delaware.json +0 -63
- package/examples/filters/DistrictofColumbia.json +0 -63
- package/examples/filters/Florida.json +0 -4217
- package/examples/filters/States.json +0 -146
- package/examples/state-level.json +0 -90136
- package/examples/state-points.json +0 -10474
- package/examples/temp-example-data.json +0 -130
- package/examples/test-dashboard-simple.json +0 -503
- package/examples/test-example.json +0 -752
- package/examples/test-file.json +0 -147
- package/examples/test.json +0 -752
- package/examples/testing.json +0 -94456
- /package/examples/{legend-issue-data.json → __data__/legend-issue-data.json} +0 -0
- /package/examples/api-test/{categories.json → __data__/categories.json} +0 -0
- /package/examples/api-test/{chart-data.json → __data__/chart-data.json} +0 -0
- /package/examples/api-test/{topics.json → __data__/topics.json} +0 -0
- /package/examples/api-test/{years.json → __data__/years.json} +0 -0
|
@@ -1,368 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "dashboard",
|
|
3
|
-
"datasets": {
|
|
4
|
-
"data1": {
|
|
5
|
-
"data": [
|
|
6
|
-
{
|
|
7
|
-
"Insured Rate": "43",
|
|
8
|
-
"date": "2022-01-02",
|
|
9
|
-
"state": "Alabama"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"Insured Rate": "53",
|
|
13
|
-
"date": "2022-02-02",
|
|
14
|
-
"state": "Alabama"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"Insured Rate": "23",
|
|
18
|
-
"date": "2022-03-02",
|
|
19
|
-
"state": "Alabama"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"Insured Rate": "13",
|
|
23
|
-
"date": "2022-01-02",
|
|
24
|
-
"state": "Georgia"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"Insured Rate": "63",
|
|
28
|
-
"date": "2022-02-02",
|
|
29
|
-
"state": "Georgia"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"Insured Rate": "40",
|
|
33
|
-
"date": "2022-03-02",
|
|
34
|
-
"state": "Georgia"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"Insured Rate": "30",
|
|
38
|
-
"date": "2022-01-02",
|
|
39
|
-
"state": "Florida"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"Insured Rate": "55",
|
|
43
|
-
"date": "2022-02-02",
|
|
44
|
-
"state": "Florida"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"Insured Rate": "90",
|
|
48
|
-
"date": "2022-03-02",
|
|
49
|
-
"state": "Florida"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"data2": {
|
|
54
|
-
"data": [
|
|
55
|
-
{
|
|
56
|
-
"Insured Rate": "43",
|
|
57
|
-
"state": "Alabama"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"Insured Rate": "63",
|
|
61
|
-
"state": "Georgia"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"Insured Rate": "53",
|
|
65
|
-
"state": "Florida"
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"dashboard": {
|
|
71
|
-
"sharedFilters": [
|
|
72
|
-
{
|
|
73
|
-
"key": "sharedFilter1",
|
|
74
|
-
"columnName": "state",
|
|
75
|
-
"setBy": "map1",
|
|
76
|
-
"usedBy": [
|
|
77
|
-
"chart1"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
},
|
|
82
|
-
"rows": [
|
|
83
|
-
[
|
|
84
|
-
{
|
|
85
|
-
"width": 12,
|
|
86
|
-
"widget": "map1"
|
|
87
|
-
},
|
|
88
|
-
{},
|
|
89
|
-
{}
|
|
90
|
-
],
|
|
91
|
-
[
|
|
92
|
-
{
|
|
93
|
-
"width": 12,
|
|
94
|
-
"widget": "chart1"
|
|
95
|
-
},
|
|
96
|
-
{},
|
|
97
|
-
{}
|
|
98
|
-
]
|
|
99
|
-
],
|
|
100
|
-
"visualizations": {
|
|
101
|
-
"map1": {
|
|
102
|
-
"uid": "map1",
|
|
103
|
-
"type": "map",
|
|
104
|
-
"defaultData": false,
|
|
105
|
-
"dataKey": "data2",
|
|
106
|
-
"general": {
|
|
107
|
-
"title": "Map Example",
|
|
108
|
-
"subtext": "",
|
|
109
|
-
"territoriesLabel": "Territories",
|
|
110
|
-
"type": "data",
|
|
111
|
-
"geoType": "us",
|
|
112
|
-
"headerColor": "theme-blue",
|
|
113
|
-
"showSidebar": true,
|
|
114
|
-
"showTitle": true,
|
|
115
|
-
"geoBorderColor": "darkGray",
|
|
116
|
-
"showDownloadButton": true,
|
|
117
|
-
"expandDataTable": true
|
|
118
|
-
},
|
|
119
|
-
"color": "pinkpurple",
|
|
120
|
-
"columns": {
|
|
121
|
-
"geo": {
|
|
122
|
-
"name": "state",
|
|
123
|
-
"label": "Location",
|
|
124
|
-
"tooltip": false,
|
|
125
|
-
"dataTable": true
|
|
126
|
-
},
|
|
127
|
-
"primary": {
|
|
128
|
-
"name": "Insured Rate",
|
|
129
|
-
"label": "Data Label",
|
|
130
|
-
"prefix": "",
|
|
131
|
-
"suffix": "%",
|
|
132
|
-
"dataTable": true,
|
|
133
|
-
"tooltip": true
|
|
134
|
-
},
|
|
135
|
-
"navigate": {
|
|
136
|
-
"name": "link",
|
|
137
|
-
"tooltip": false,
|
|
138
|
-
"dataTable": false
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"legend": {
|
|
142
|
-
"numberOfItems": 3,
|
|
143
|
-
"position": "side",
|
|
144
|
-
"title": "Legend Title",
|
|
145
|
-
"description": "Legend Text",
|
|
146
|
-
"type": "equalnumber",
|
|
147
|
-
"specialClasses": [
|
|
148
|
-
"N/A"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
"dataTable": {
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"chart1": {
|
|
156
|
-
"uid": "chart1",
|
|
157
|
-
"type": "chart",
|
|
158
|
-
"dataKey": "data1",
|
|
159
|
-
"title": "Test",
|
|
160
|
-
"description": "<p>Test</p>",
|
|
161
|
-
"visualizationType": "Line",
|
|
162
|
-
"series": [
|
|
163
|
-
{
|
|
164
|
-
"dataKey": "Insured Rate",
|
|
165
|
-
"label": "Insured Rate"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
"fontSize": "large",
|
|
169
|
-
"dataFormat": {
|
|
170
|
-
"commas": false,
|
|
171
|
-
"prefix": "",
|
|
172
|
-
"suffix": ""
|
|
173
|
-
},
|
|
174
|
-
"padding": {
|
|
175
|
-
"left": 15,
|
|
176
|
-
"right": 15
|
|
177
|
-
},
|
|
178
|
-
"yAxis": {
|
|
179
|
-
"label": "Insured Rate",
|
|
180
|
-
"paddingPercent": 0.15
|
|
181
|
-
},
|
|
182
|
-
"xAxis": {
|
|
183
|
-
"label": "Date",
|
|
184
|
-
"dataKey": "date",
|
|
185
|
-
"type": "date",
|
|
186
|
-
"dateParseFormat": "%Y-%m-%d",
|
|
187
|
-
"dateDisplayFormat": "%b %d",
|
|
188
|
-
"numTicks": 8,
|
|
189
|
-
"tickRotation": 50
|
|
190
|
-
},
|
|
191
|
-
"legend": {
|
|
192
|
-
"label": "Legend",
|
|
193
|
-
"above": true,
|
|
194
|
-
"left": true
|
|
195
|
-
},
|
|
196
|
-
"table": {
|
|
197
|
-
"label": "Data Table",
|
|
198
|
-
"expanded": false,
|
|
199
|
-
"download": true
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"table": {
|
|
204
|
-
"downloadImageButton": true,
|
|
205
|
-
"downloadPdfButton": true,
|
|
206
|
-
"download": true,
|
|
207
|
-
"show": true
|
|
208
|
-
}
|
|
209
|
-
}
|