@cdc/core 4.26.1 → 4.26.3

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 (249) hide show
  1. package/.claude/agents/qa-test-developer.md +126 -0
  2. package/CLAUDE.local.md +67 -0
  3. package/LICENSE +201 -0
  4. package/_stories/Gallery.Charts.stories.tsx +35 -42
  5. package/_stories/Gallery.DataBite.stories.tsx +15 -8
  6. package/_stories/Gallery.Maps.stories.tsx +37 -28
  7. package/_stories/Gallery.WaffleChart.stories.tsx +1 -1
  8. package/_stories/PageART.stories.tsx +5 -4
  9. package/_stories/PageBRFSS.stories.tsx +21 -16
  10. package/_stories/PageCancerRegistries.stories.tsx +15 -15
  11. package/_stories/PageEasternEquineEncephalitis.stories.tsx +33 -19
  12. package/_stories/PageExcessiveAlcoholUse.stories.tsx +148 -143
  13. package/_stories/PageMaternalMortality.stories.tsx +5 -4
  14. package/_stories/PageOralHealth.stories.tsx +15 -10
  15. package/_stories/PageRespiratory.stories.tsx +4 -4
  16. package/_stories/PageSmokingTobacco.stories.tsx +15 -10
  17. package/_stories/PageStateDiabetesProfiles.stories.tsx +15 -10
  18. package/_stories/PageWastewater.stories.tsx +44 -30
  19. package/_stories/VegaImport.stories.tsx +401 -0
  20. package/_stories/vega-fixtures/bars-with-line.json +444 -0
  21. package/_stories/vega-fixtures/bars.json +58 -0
  22. package/_stories/vega-fixtures/combo-bar-rolling-mean.json +88 -0
  23. package/_stories/vega-fixtures/combo.json +68 -0
  24. package/_stories/vega-fixtures/grouped-horizontal-bars.json +83 -0
  25. package/_stories/vega-fixtures/grouped-horizontal-bars2.json +231 -0
  26. package/_stories/vega-fixtures/horizontal-bar.json +427 -0
  27. package/_stories/vega-fixtures/horizontal-bars-with-bad-colors.json +197 -0
  28. package/_stories/vega-fixtures/horizontal-bars2.json +58 -0
  29. package/_stories/vega-fixtures/lines.json +227 -0
  30. package/_stories/vega-fixtures/measles-bars.json +348 -0
  31. package/_stories/vega-fixtures/measles-map.json +11101 -0
  32. package/_stories/vega-fixtures/measles-stacked-bars.json +2147 -0
  33. package/_stories/vega-fixtures/multi-dataset.json +255 -0
  34. package/_stories/vega-fixtures/no-data.json +14 -0
  35. package/_stories/vega-fixtures/pie-chart.json +94 -0
  36. package/_stories/vega-fixtures/repeat-spec.json +47 -0
  37. package/_stories/vega-fixtures/stacked-area.json +222 -0
  38. package/_stories/vega-fixtures/stacked-bar-with-rect.json +3412 -0
  39. package/_stories/vega-fixtures/stacked-bars-with-line.json +364 -0
  40. package/_stories/vega-fixtures/stacked-bars.json +212 -0
  41. package/_stories/vega-fixtures/stacked-horizontal-bars.json +140 -0
  42. package/_stories/vega-fixtures/warning-combo.json +59 -0
  43. package/_stories/vega-fixtures/warning-scatter-and-line.json +1182 -0
  44. package/assets/callout-flag.svg +7 -0
  45. package/assets/icon-chart-area.svg +1 -0
  46. package/assets/icon-chart-radar.svg +23 -0
  47. package/assets/logo2.svg +31 -0
  48. package/components/AdvancedEditor/EmbedEditor.tsx +270 -38
  49. package/components/Alert/components/Alert.styles.css +2 -2
  50. package/components/ComboBox/combobox.styles.css +48 -48
  51. package/components/CustomColorsEditor/CustomColorsEditor.css +53 -53
  52. package/components/CustomColorsEditor/CustomColorsEditor.tsx +3 -10
  53. package/components/DataTable/DataTable.tsx +46 -18
  54. package/components/DataTable/DataTableStandAlone.tsx +1 -0
  55. package/components/DataTable/components/ChartHeader.tsx +21 -12
  56. package/components/DataTable/components/MapHeader.tsx +34 -28
  57. package/components/DataTable/components/SortIcon/sort-icon.css +5 -5
  58. package/components/DataTable/data-table.css +50 -52
  59. package/components/DataTable/helpers/applyCustomOrder.ts +17 -0
  60. package/components/DataTable/helpers/getChartCellValue.ts +10 -7
  61. package/components/DataTable/helpers/getMapDataTableColumnKeys.ts +22 -0
  62. package/components/DataTable/helpers/getSeriesName.ts +6 -0
  63. package/components/DataTable/helpers/mapCellMatrix.tsx +33 -23
  64. package/components/DataTable/helpers/tests/mapCellMatrix.test.ts +33 -0
  65. package/components/DownloadButton.tsx +14 -6
  66. package/components/EditorPanel/ColumnsEditor.tsx +38 -31
  67. package/components/EditorPanel/CustomSortOrder.tsx +94 -0
  68. package/components/EditorPanel/DataTableEditor.tsx +139 -23
  69. package/components/EditorPanel/EditorPanel.styles.css +71 -71
  70. package/components/EditorPanel/EditorPanel.tsx +3 -8
  71. package/components/EditorPanel/EditorPanelDispatch.tsx +4 -4
  72. package/components/EditorPanel/FootnotesEditor.tsx +2 -2
  73. package/components/EditorPanel/VizFilterEditor/NestedDropdownEditor.tsx +21 -12
  74. package/components/EditorPanel/VizFilterEditor/VizFilterEditor.tsx +16 -10
  75. package/components/EditorPanel/VizFilterEditor/components/FilterOrder.tsx +33 -29
  76. package/components/EditorPanel/components/MarkupVariablesEditor.tsx +160 -106
  77. package/components/EditorPanel/components/PanelMarkup.tsx +5 -1
  78. package/{styles/v2/components → components/EditorPanel}/editor.scss +76 -22
  79. package/components/EditorPanel/sections/StyleTreatmentSection.tsx +99 -0
  80. package/components/EditorPanel/sections/VisualSection.tsx +11 -0
  81. package/components/EditorWrapper/editor-wrapper.style.css +1 -1
  82. package/components/Filters/Filters.tsx +3 -5
  83. package/components/Filters/components/Tabs.tsx +19 -7
  84. package/{styles → components/Filters}/filters.scss +3 -3
  85. package/components/Footnotes/FootnotesStandAlone.tsx +4 -2
  86. package/components/HeaderThemeSelector/HeaderThemeSelector.css +61 -5
  87. package/components/Layout/components/Responsive.tsx +14 -6
  88. package/components/Layout/components/Sidebar/components/Sidebar.tsx +1 -1
  89. package/components/Layout/components/Sidebar/components/sidebar.styles.scss +14 -20
  90. package/components/Layout/components/Visualization/index.tsx +50 -38
  91. package/components/Layout/components/Visualization/visualizations.scss +232 -15
  92. package/components/Layout/components/VisualizationContainer.test.tsx +67 -0
  93. package/components/Layout/components/VisualizationContainer.tsx +37 -0
  94. package/components/Layout/components/VisualizationContent.test.tsx +182 -0
  95. package/components/Layout/components/VisualizationContent.tsx +75 -0
  96. package/components/Layout/index.tsx +5 -5
  97. package/components/Layout/styles/editor-utils.scss +3 -3
  98. package/components/Layout/styles/editor.scss +4 -4
  99. package/components/Legend/Legend.Gradient.tsx +7 -1
  100. package/components/Loader/loader.styles.css +2 -2
  101. package/components/Loading.jsx +1 -1
  102. package/components/MediaControls.tsx +10 -3
  103. package/components/MultiSelect/multiselect.styles.css +19 -19
  104. package/components/NestedDropdown/nesteddropdown.styles.css +15 -15
  105. package/components/PaletteSelector/PaletteSelector.css +15 -15
  106. package/components/RichTooltip/richTooltip.css +6 -6
  107. package/components/Table/table.styles.css +2 -2
  108. package/components/Waiting.tsx +1 -1
  109. package/components/_stories/CustomColorsEditor.stories.tsx +37 -0
  110. package/components/_stories/DataTable.stories.tsx +1 -0
  111. package/components/_stories/Filters.stories.tsx +1 -1
  112. package/components/_stories/styles.scss +0 -1
  113. package/components/elements/Button.jsx +1 -1
  114. package/components/elements/Card.jsx +1 -1
  115. package/{styles/v2/components → components/elements}/button.scss +9 -8
  116. package/components/inputs/InputCheckbox.jsx +1 -1
  117. package/components/inputs/InputSelect.tsx +1 -1
  118. package/components/inputs/InputText.jsx +1 -1
  119. package/components/inputs/InputToggle.tsx +1 -1
  120. package/{styles/v2/components/input → components/inputs}/_input-check-radio.scss +2 -2
  121. package/{styles/v2/components/input → components/inputs}/_input-group.scss +3 -3
  122. package/{styles/v2/components/input → components/inputs}/_input-slider.scss +2 -2
  123. package/{styles/v2/components/input → components/inputs}/_input.scss +5 -5
  124. package/{styles/v2/components/input → components/inputs}/index.scss +2 -2
  125. package/{styles → components}/loading.scss +1 -1
  126. package/components/managers/DataDesigner.tsx +1 -1
  127. package/{styles/v2/components → components/managers}/data-designer.scss +6 -7
  128. package/components/ui/Accordion.jsx +1 -1
  129. package/components/ui/Icon.tsx +1 -1
  130. package/components/ui/LoadSpin.jsx +1 -1
  131. package/components/ui/Modal.jsx +1 -1
  132. package/components/ui/Overlay.jsx +1 -1
  133. package/components/ui/Title/index.test.tsx +34 -0
  134. package/components/ui/Title/index.tsx +24 -7
  135. package/components/ui/Title/title.styles.css +119 -25
  136. package/components/ui/Tooltip.tsx +1 -1
  137. package/components/ui/_stories/Title.stories.tsx +1 -1
  138. package/{styles/v2/components → components/ui}/accordion.scss +3 -3
  139. package/components/ui/accordion.styles.css +11 -11
  140. package/{styles/v2/components → components/ui}/modal.scss +2 -2
  141. package/{styles/v2/components → components/ui}/overlay.scss +6 -6
  142. package/{styles/v2/components → components}/ui/tooltip.scss +1 -1
  143. package/{styles → components}/waiting.scss +9 -3
  144. package/data/colorPalettes.ts +18 -5
  145. package/data/mapColorPalettes.ts +10 -0
  146. package/devTemplate/dev.js +285 -0
  147. package/devTemplate/index.html +30 -0
  148. package/devTemplate/preview.html +1503 -0
  149. package/devTemplate/sidebar.css +151 -0
  150. package/dist/cove-main.css +2530 -3901
  151. package/dist/cove-main.css.map +1 -1
  152. package/generateViteConfig.js +111 -2
  153. package/helpers/DataTransform.ts +1 -5
  154. package/helpers/backfillDefaults.ts +35 -0
  155. package/helpers/constants.ts +12 -0
  156. package/helpers/cove/date.ts +64 -3
  157. package/helpers/cove/number.ts +29 -15
  158. package/helpers/cove/string.ts +29 -0
  159. package/helpers/coveUpdateWorker.ts +14 -8
  160. package/helpers/displayDataAsText.ts +1 -1
  161. package/helpers/embed/embedCodeGenerator.ts +80 -0
  162. package/helpers/embed/embedHelper.js +169 -0
  163. package/helpers/embed/filterUtils.ts +121 -0
  164. package/helpers/embed/index.ts +17 -0
  165. package/helpers/embed/urlValidation.ts +119 -0
  166. package/helpers/extractDataAndMetadata.ts +20 -0
  167. package/helpers/fetchRemoteData.ts +14 -8
  168. package/helpers/filterVizData.ts +6 -1
  169. package/helpers/getFileExtension.ts +0 -6
  170. package/helpers/labelHash.ts +9 -0
  171. package/helpers/markupProcessor.ts +56 -38
  172. package/helpers/metrics/types.ts +3 -0
  173. package/helpers/palettes/colorDistributions.ts +1 -1
  174. package/helpers/palettes/utils.ts +12 -12
  175. package/helpers/parseCsvWithQuotes.ts +15 -14
  176. package/helpers/prepareScreenshot.ts +33 -10
  177. package/helpers/testing.ts +44 -0
  178. package/helpers/tests/DataTransform.test.ts +125 -0
  179. package/helpers/tests/abbreviateNumber.test.ts +59 -0
  180. package/helpers/tests/backfillDefaults.test.ts +253 -0
  181. package/helpers/tests/date.test.ts +110 -0
  182. package/helpers/tests/extractDataAndMetadata.test.ts +93 -0
  183. package/helpers/tests/markupProcessor.test.ts +315 -124
  184. package/helpers/tests/number.test.ts +42 -0
  185. package/helpers/tests/prepareScreenshot.test.ts +28 -28
  186. package/helpers/tests/testStandaloneBuild.ts +36 -26
  187. package/helpers/tests/useDataVizClasses.test.ts +66 -0
  188. package/helpers/tests/visualizationWrapperUsage.test.ts +57 -0
  189. package/helpers/useDataVizClasses.ts +13 -7
  190. package/helpers/vegaConfig.ts +1 -1
  191. package/helpers/vegaConfigImport.ts +160 -0
  192. package/helpers/ver/4.24.4.ts +24 -0
  193. package/helpers/ver/4.26.1.ts +1 -1
  194. package/helpers/ver/4.26.2.ts +84 -0
  195. package/helpers/ver/4.26.3.ts +44 -0
  196. package/helpers/ver/4.26.4.ts +31 -0
  197. package/helpers/ver/tests/4.26.1.test.ts +105 -0
  198. package/helpers/ver/tests/4.26.2.test.ts +298 -0
  199. package/helpers/ver/tests/4.26.3.test.ts +168 -0
  200. package/helpers/ver/tests/4.26.4.test.ts +88 -0
  201. package/helpers/ver/tests/coveUpdateWorker.test.ts +57 -0
  202. package/helpers/viewports.ts +2 -0
  203. package/package.json +27 -32
  204. package/styles/_global.scss +7 -7
  205. package/styles/_reset.scss +2 -2
  206. package/styles/{v2/base → base}/_file-selector.scss +4 -4
  207. package/styles/{v2/base → base}/_general.scss +2 -4
  208. package/styles/{v2/base → base}/index.scss +1 -1
  209. package/styles/base.scss +107 -165
  210. package/styles/cove-main.scss +3 -6
  211. package/styles/layout/_component.scss +110 -0
  212. package/styles/{v2/layout → layout}/_data-table.scss +7 -7
  213. package/styles/layout/_wrapper-padding.scss +27 -0
  214. package/styles/{v2/main.scss → main.scss} +3 -1
  215. package/styles/{v2/themes → themes}/_color-definitions.scss +46 -41
  216. package/styles/{_accessibility.scss → utils/_accessibility.scss} +1 -1
  217. package/styles/{v2/utils → utils}/_grid.scss +8 -3
  218. package/styles/{_global-variables.scss → utils/_properties.scss} +133 -112
  219. package/styles/{v2/utils → utils}/index.scss +2 -1
  220. package/types/Annotation.ts +10 -11
  221. package/types/Axis.ts +2 -0
  222. package/types/ComponentStyles.ts +1 -0
  223. package/types/ConfigureData.ts +1 -0
  224. package/types/General.ts +2 -0
  225. package/types/MarkupInclude.ts +1 -0
  226. package/types/MarkupVariable.ts +2 -1
  227. package/types/Palette.ts +22 -0
  228. package/types/Table.ts +9 -0
  229. package/types/Visualization.ts +7 -0
  230. package/_stories/StoryRenderingTests.stories.tsx +0 -164
  231. package/helpers/embedCodeGenerator.ts +0 -109
  232. package/styles/_common-components.css +0 -73
  233. package/styles/_variables.scss +0 -63
  234. package/styles/v2/layout/_component.scss +0 -21
  235. package/styles/v2/utils/_variables.scss +0 -9
  236. package/{styles/v2/components/card.scss → components/elements/card.css} +2 -2
  237. /package/{styles/v2/components → components/ui}/icon.scss +0 -0
  238. /package/{styles/v2/components → components/ui}/loadspin.scss +0 -0
  239. /package/styles/{v2/base → base}/_heading.scss +0 -0
  240. /package/styles/{v2/base → base}/_reset.scss +0 -0
  241. /package/styles/{v2/layout → layout}/_alert.scss +0 -0
  242. /package/styles/{v2/layout → layout}/_progression.scss +0 -0
  243. /package/styles/{v2/layout → layout}/_tooltip.scss +0 -0
  244. /package/styles/{v2/layout → layout}/index.scss +0 -0
  245. /package/styles/{v2/themes → themes}/index.scss +0 -0
  246. /package/styles/{v2/utils → utils}/_align.scss +0 -0
  247. /package/styles/{v2/utils → utils}/_animations.scss +0 -0
  248. /package/styles/{v2/utils → utils}/_breakpoints.scss +0 -0
  249. /package/styles/{v2/utils → utils}/_mixins.scss +0 -0
@@ -0,0 +1,227 @@
1
+ {
2
+ "$schema": "https://vega.github.io/schema/vega/v5.json",
3
+ "description": "A basic line chart example.",
4
+ "width": 500,
5
+ "height": 200,
6
+ "padding": 5,
7
+ "signals": [
8
+ {
9
+ "name": "interpolate",
10
+ "value": "linear",
11
+ "bind": {
12
+ "input": "select",
13
+ "options": [
14
+ "basis",
15
+ "cardinal",
16
+ "catmull-rom",
17
+ "linear",
18
+ "monotone",
19
+ "natural",
20
+ "step",
21
+ "step-after",
22
+ "step-before"
23
+ ]
24
+ }
25
+ }
26
+ ],
27
+ "data": [
28
+ {
29
+ "name": "table",
30
+ "values": [
31
+ {
32
+ "x": 0,
33
+ "y": 28,
34
+ "c": 0
35
+ },
36
+ {
37
+ "x": 0,
38
+ "y": 20,
39
+ "c": 1
40
+ },
41
+ {
42
+ "x": 1,
43
+ "y": 43,
44
+ "c": 0
45
+ },
46
+ {
47
+ "x": 1,
48
+ "y": 35,
49
+ "c": 1
50
+ },
51
+ {
52
+ "x": 2,
53
+ "y": 81,
54
+ "c": 0
55
+ },
56
+ {
57
+ "x": 2,
58
+ "y": 10,
59
+ "c": 1
60
+ },
61
+ {
62
+ "x": 3,
63
+ "y": 19,
64
+ "c": 0
65
+ },
66
+ {
67
+ "x": 3,
68
+ "y": 15,
69
+ "c": 1
70
+ },
71
+ {
72
+ "x": 4,
73
+ "y": 52,
74
+ "c": 0
75
+ },
76
+ {
77
+ "x": 4,
78
+ "y": 48,
79
+ "c": 1
80
+ },
81
+ {
82
+ "x": 5,
83
+ "y": 24,
84
+ "c": 0
85
+ },
86
+ {
87
+ "x": 5,
88
+ "y": 28,
89
+ "c": 1
90
+ },
91
+ {
92
+ "x": 6,
93
+ "y": 87,
94
+ "c": 0
95
+ },
96
+ {
97
+ "x": 6,
98
+ "y": 66,
99
+ "c": 1
100
+ },
101
+ {
102
+ "x": 7,
103
+ "y": 17,
104
+ "c": 0
105
+ },
106
+ {
107
+ "x": 7,
108
+ "y": 27,
109
+ "c": 1
110
+ },
111
+ {
112
+ "x": 8,
113
+ "y": 68,
114
+ "c": 0
115
+ },
116
+ {
117
+ "x": 8,
118
+ "y": 16,
119
+ "c": 1
120
+ },
121
+ {
122
+ "x": 9,
123
+ "y": 49,
124
+ "c": 0
125
+ },
126
+ {
127
+ "x": 9,
128
+ "y": 25,
129
+ "c": 1
130
+ }
131
+ ]
132
+ }
133
+ ],
134
+ "scales": [
135
+ {
136
+ "name": "x",
137
+ "type": "point",
138
+ "range": "width",
139
+ "domain": {
140
+ "data": "table",
141
+ "field": "x"
142
+ }
143
+ },
144
+ {
145
+ "name": "y",
146
+ "type": "linear",
147
+ "range": "height",
148
+ "nice": true,
149
+ "zero": true,
150
+ "domain": {
151
+ "data": "table",
152
+ "field": "y"
153
+ }
154
+ },
155
+ {
156
+ "name": "color",
157
+ "type": "ordinal",
158
+ "range": "category",
159
+ "domain": {
160
+ "data": "table",
161
+ "field": "c"
162
+ }
163
+ }
164
+ ],
165
+ "axes": [
166
+ {
167
+ "orient": "bottom",
168
+ "scale": "x"
169
+ },
170
+ {
171
+ "orient": "left",
172
+ "scale": "y"
173
+ }
174
+ ],
175
+ "marks": [
176
+ {
177
+ "type": "group",
178
+ "from": {
179
+ "facet": {
180
+ "name": "series",
181
+ "data": "table",
182
+ "groupby": "c"
183
+ }
184
+ },
185
+ "marks": [
186
+ {
187
+ "type": "line",
188
+ "from": {
189
+ "data": "series"
190
+ },
191
+ "encode": {
192
+ "enter": {
193
+ "x": {
194
+ "scale": "x",
195
+ "field": "x"
196
+ },
197
+ "y": {
198
+ "scale": "y",
199
+ "field": "y"
200
+ },
201
+ "stroke": {
202
+ "scale": "color",
203
+ "field": "c"
204
+ },
205
+ "strokeWidth": {
206
+ "value": 2
207
+ }
208
+ },
209
+ "update": {
210
+ "interpolate": {
211
+ "signal": "interpolate"
212
+ },
213
+ "strokeOpacity": {
214
+ "value": 1
215
+ }
216
+ },
217
+ "hover": {
218
+ "strokeOpacity": {
219
+ "value": 0.5
220
+ }
221
+ }
222
+ }
223
+ }
224
+ ]
225
+ }
226
+ ]
227
+ }
@@ -0,0 +1,348 @@
1
+ {
2
+ "data": {
3
+ "name": "vega_data"
4
+ },
5
+ "params": [
6
+ {
7
+ "name": "weekStartExtents",
8
+ "expr": "extent(pluck(data('data_0'), 'weekStart'))"
9
+ },
10
+ {
11
+ "name": "minDate",
12
+ "expr": "weekStartExtents[0]"
13
+ },
14
+ {
15
+ "name": "weekEndExtents",
16
+ "expr": "extent(pluck(data('data_0'), 'weekEnd'))"
17
+ },
18
+ {
19
+ "name": "maxDate",
20
+ "expr": "weekEndExtents[1]"
21
+ },
22
+ {
23
+ "name": "tickLocations",
24
+ "expr": "utcSequence('year',minDate,maxDate+1,1)"
25
+ }
26
+ ],
27
+ "mark": {
28
+ "type": "bar"
29
+ },
30
+ "encoding": {
31
+ "x": {
32
+ "field": "weekStart",
33
+ "type": "temporal",
34
+ "title": "Week",
35
+ "axis": {
36
+ "grid": false,
37
+ "values": "tickLocations",
38
+ "labelExpr": "timeFormat(datum.value, '%Y-%b')"
39
+ }
40
+ },
41
+ "x2": {
42
+ "field": "weekEnd"
43
+ },
44
+ "y": {
45
+ "aggregate": "sum",
46
+ "field": "cases",
47
+ "type": "quantitative",
48
+ "title": "Number of Cases"
49
+ }
50
+ },
51
+ "height": "container",
52
+ "width": "container",
53
+ "datasets": {
54
+ "vega_data": [
55
+ {
56
+ "cases": 0,
57
+ "weekStart": "2023-01-01T05:00:00.000Z",
58
+ "weekEnd": "2023-01-07T05:00:00.000Z"
59
+ },
60
+ {
61
+ "cases": 0,
62
+ "weekStart": "2023-01-22T05:00:00.000Z",
63
+ "weekEnd": "2023-01-28T05:00:00.000Z"
64
+ },
65
+ {
66
+ "cases": 0,
67
+ "weekStart": "2023-02-12T05:00:00.000Z",
68
+ "weekEnd": "2023-02-18T05:00:00.000Z"
69
+ },
70
+ {
71
+ "cases": 1,
72
+ "weekStart": "2023-03-05T05:00:00.000Z",
73
+ "weekEnd": "2023-03-11T05:00:00.000Z"
74
+ },
75
+ {
76
+ "cases": 1,
77
+ "weekStart": "2023-03-26T04:00:00.000Z",
78
+ "weekEnd": "2023-04-01T04:00:00.000Z"
79
+ },
80
+ {
81
+ "cases": 0,
82
+ "weekStart": "2023-04-16T04:00:00.000Z",
83
+ "weekEnd": "2023-04-22T04:00:00.000Z"
84
+ },
85
+ {
86
+ "cases": 0,
87
+ "weekStart": "2023-05-07T04:00:00.000Z",
88
+ "weekEnd": "2023-05-13T04:00:00.000Z"
89
+ },
90
+ {
91
+ "cases": 2,
92
+ "weekStart": "2023-05-28T04:00:00.000Z",
93
+ "weekEnd": "2023-06-03T04:00:00.000Z"
94
+ },
95
+ {
96
+ "cases": 0,
97
+ "weekStart": "2023-06-18T04:00:00.000Z",
98
+ "weekEnd": "2023-06-24T04:00:00.000Z"
99
+ },
100
+ {
101
+ "cases": 0,
102
+ "weekStart": "2023-07-09T04:00:00.000Z",
103
+ "weekEnd": "2023-07-15T04:00:00.000Z"
104
+ },
105
+ {
106
+ "cases": 0,
107
+ "weekStart": "2023-07-30T04:00:00.000Z",
108
+ "weekEnd": "2023-08-05T04:00:00.000Z"
109
+ },
110
+ {
111
+ "cases": 1,
112
+ "weekStart": "2023-08-20T04:00:00.000Z",
113
+ "weekEnd": "2023-08-26T04:00:00.000Z"
114
+ },
115
+ {
116
+ "cases": 3,
117
+ "weekStart": "2023-09-10T04:00:00.000Z",
118
+ "weekEnd": "2023-09-16T04:00:00.000Z"
119
+ },
120
+ {
121
+ "cases": 5,
122
+ "weekStart": "2023-10-01T04:00:00.000Z",
123
+ "weekEnd": "2023-10-07T04:00:00.000Z"
124
+ },
125
+ {
126
+ "cases": 0,
127
+ "weekStart": "2023-10-22T04:00:00.000Z",
128
+ "weekEnd": "2023-10-28T04:00:00.000Z"
129
+ },
130
+ {
131
+ "cases": 0,
132
+ "weekStart": "2023-11-12T05:00:00.000Z",
133
+ "weekEnd": "2023-11-18T05:00:00.000Z"
134
+ },
135
+ {
136
+ "cases": 2,
137
+ "weekStart": "2023-12-03T05:00:00.000Z",
138
+ "weekEnd": "2023-12-09T05:00:00.000Z"
139
+ },
140
+ {
141
+ "cases": 11,
142
+ "weekStart": "2023-12-24T05:00:00.000Z",
143
+ "weekEnd": "2023-12-30T05:00:00.000Z"
144
+ },
145
+ {
146
+ "cases": 2,
147
+ "weekStart": "2024-01-14T05:00:00.000Z",
148
+ "weekEnd": "2024-01-20T05:00:00.000Z"
149
+ },
150
+ {
151
+ "cases": 3,
152
+ "weekStart": "2024-02-04T05:00:00.000Z",
153
+ "weekEnd": "2024-02-10T05:00:00.000Z"
154
+ },
155
+ {
156
+ "cases": 6,
157
+ "weekStart": "2024-02-25T05:00:00.000Z",
158
+ "weekEnd": "2024-03-02T05:00:00.000Z"
159
+ },
160
+ {
161
+ "cases": 38,
162
+ "weekStart": "2024-03-17T04:00:00.000Z",
163
+ "weekEnd": "2024-03-23T04:00:00.000Z"
164
+ },
165
+ {
166
+ "cases": 4,
167
+ "weekStart": "2024-04-07T04:00:00.000Z",
168
+ "weekEnd": "2024-04-13T04:00:00.000Z"
169
+ },
170
+ {
171
+ "cases": 0,
172
+ "weekStart": "2024-04-28T04:00:00.000Z",
173
+ "weekEnd": "2024-05-04T04:00:00.000Z"
174
+ },
175
+ {
176
+ "cases": 5,
177
+ "weekStart": "2024-05-19T04:00:00.000Z",
178
+ "weekEnd": "2024-05-25T04:00:00.000Z"
179
+ },
180
+ {
181
+ "cases": 4,
182
+ "weekStart": "2024-06-09T04:00:00.000Z",
183
+ "weekEnd": "2024-06-15T04:00:00.000Z"
184
+ },
185
+ {
186
+ "cases": 7,
187
+ "weekStart": "2024-06-30T04:00:00.000Z",
188
+ "weekEnd": "2024-07-06T04:00:00.000Z"
189
+ },
190
+ {
191
+ "cases": 7,
192
+ "weekStart": "2024-07-21T04:00:00.000Z",
193
+ "weekEnd": "2024-07-27T04:00:00.000Z"
194
+ },
195
+ {
196
+ "cases": 9,
197
+ "weekStart": "2024-08-11T04:00:00.000Z",
198
+ "weekEnd": "2024-08-17T04:00:00.000Z"
199
+ },
200
+ {
201
+ "cases": 10,
202
+ "weekStart": "2024-09-01T04:00:00.000Z",
203
+ "weekEnd": "2024-09-07T04:00:00.000Z"
204
+ },
205
+ {
206
+ "cases": 1,
207
+ "weekStart": "2024-09-22T04:00:00.000Z",
208
+ "weekEnd": "2024-09-28T04:00:00.000Z"
209
+ },
210
+ {
211
+ "cases": 3,
212
+ "weekStart": "2024-10-13T04:00:00.000Z",
213
+ "weekEnd": "2024-10-19T04:00:00.000Z"
214
+ },
215
+ {
216
+ "cases": 4,
217
+ "weekStart": "2024-11-03T04:00:00.000Z",
218
+ "weekEnd": "2024-11-09T05:00:00.000Z"
219
+ },
220
+ {
221
+ "cases": 2,
222
+ "weekStart": "2024-11-24T05:00:00.000Z",
223
+ "weekEnd": "2024-11-30T05:00:00.000Z"
224
+ },
225
+ {
226
+ "cases": 0,
227
+ "weekStart": "2024-12-15T05:00:00.000Z",
228
+ "weekEnd": "2024-12-21T05:00:00.000Z"
229
+ },
230
+ {
231
+ "cases": 2,
232
+ "weekStart": "2025-01-05T05:00:00.000Z",
233
+ "weekEnd": "2025-01-11T05:00:00.000Z"
234
+ },
235
+ {
236
+ "cases": 16,
237
+ "weekStart": "2025-01-26T05:00:00.000Z",
238
+ "weekEnd": "2025-02-01T05:00:00.000Z"
239
+ },
240
+ {
241
+ "cases": 87,
242
+ "weekStart": "2025-02-16T05:00:00.000Z",
243
+ "weekEnd": "2025-02-22T05:00:00.000Z"
244
+ },
245
+ {
246
+ "cases": 84,
247
+ "weekStart": "2025-03-09T05:00:00.000Z",
248
+ "weekEnd": "2025-03-15T04:00:00.000Z"
249
+ },
250
+ {
251
+ "cases": 116,
252
+ "weekStart": "2025-03-30T04:00:00.000Z",
253
+ "weekEnd": "2025-04-05T04:00:00.000Z"
254
+ },
255
+ {
256
+ "cases": 43,
257
+ "weekStart": "2025-04-20T04:00:00.000Z",
258
+ "weekEnd": "2025-04-26T04:00:00.000Z"
259
+ },
260
+ {
261
+ "cases": 8,
262
+ "weekStart": "2025-05-11T04:00:00.000Z",
263
+ "weekEnd": "2025-05-17T04:00:00.000Z"
264
+ }
265
+ ]
266
+ },
267
+ "config": {
268
+ "background": "#FFFFFF",
269
+ "bar": {
270
+ "fill": "#2D72D2"
271
+ },
272
+ "arc": {
273
+ "fill": "#2D72D2"
274
+ },
275
+ "area": {
276
+ "fill": "#2D72D2"
277
+ },
278
+ "rect": {
279
+ "fill": "#2D72D2"
280
+ },
281
+ "circle": {
282
+ "fill": "#2D72D2"
283
+ },
284
+ "point": {
285
+ "stroke": "#2D72D2"
286
+ },
287
+ "line": {
288
+ "stroke": "#2D72D2"
289
+ },
290
+ "font": "Source-Sans-Pro",
291
+ "padding": 20,
292
+ "mark": {
293
+ "opacity": 0.75,
294
+ "tooltip": true
295
+ },
296
+ "title": {
297
+ "color": "#111418",
298
+ "fontSize": 14,
299
+ "fontWeight": 600,
300
+ "anchor": "start",
301
+ "subtitleColor": "#5F6B7C",
302
+ "subtitleFontSize": 12,
303
+ "subtitlePadding": 7
304
+ },
305
+ "axis": {
306
+ "labelFontSize": 12,
307
+ "titleFontSize": 14,
308
+ "titleFontWeight": 400,
309
+ "titlePadding": 10,
310
+ "titleColor": "#111418",
311
+ "labelColor": "#738091",
312
+ "gridColor": "#DCE0E5",
313
+ "gridOpacity": 1,
314
+ "domainColor": "#5F6B7C",
315
+ "tickColor": "#5F6B7C"
316
+ },
317
+ "legend": {
318
+ "titleColor": "#111418",
319
+ "labelColor": "#111418",
320
+ "titleFontSize": 12,
321
+ "labelFontSize": 12,
322
+ "titleFontWeight": 600
323
+ },
324
+ "view": {
325
+ "stroke": "transparent"
326
+ },
327
+ "text": {
328
+ "color": "#111418",
329
+ "fontSize": 12,
330
+ "fontWeight": 400
331
+ },
332
+ "range": {
333
+ "category": [
334
+ "#2D72D2",
335
+ "#DB2C6F",
336
+ "#8EB125",
337
+ "#9D3F9D",
338
+ "#00A396",
339
+ "#D1980B",
340
+ "#D33D17",
341
+ "#7961DB",
342
+ "#29A634",
343
+ "#946638",
344
+ "#147EB3"
345
+ ]
346
+ }
347
+ }
348
+ }