@cdc/chart 4.24.10 → 4.24.12-2
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/cdcchart.js +35019 -34301
- package/examples/feature/boxplot/boxplot-data.json +88 -22
- package/examples/feature/boxplot/boxplot.json +540 -16
- package/examples/feature/boxplot/testing.csv +7 -7
- package/examples/feature/sankey/sankey-example-data.json +126 -14
- package/examples/feature/tests-date-exclusions/date-exclusions-config.json +372 -12
- package/examples/private/DEV-8850-2.json +493 -0
- package/examples/private/DEV-9822.json +574 -0
- package/examples/private/DEV-9840.json +553 -0
- package/examples/private/DEV-9850-3.json +461 -0
- package/examples/private/chart.json +1084 -0
- package/examples/private/ci_formatted.json +202 -0
- package/examples/private/ci_issue.json +3016 -0
- package/examples/private/completed.json +634 -0
- package/examples/private/dem-data-long.csv +20 -0
- package/examples/private/dem-data-long.json +36 -0
- package/examples/private/demographic_data.csv +157 -0
- package/examples/private/demographic_data.json +2654 -0
- package/examples/private/demographic_dynamic.json +443 -0
- package/examples/private/demographic_standard.json +560 -0
- package/examples/private/ehdi.json +29939 -0
- package/examples/private/test.json +493 -0
- package/index.html +10 -7
- package/package.json +2 -2
- package/src/CdcChart.tsx +132 -152
- package/src/_stories/Chart.Anchors.stories.tsx +31 -0
- package/src/_stories/Chart.CustomColors.stories.tsx +19 -0
- package/src/_stories/Chart.DynamicSeries.stories.tsx +34 -0
- package/src/_stories/Chart.Legend.Gradient.stories.tsx +42 -1
- package/src/_stories/Chart.stories.tsx +37 -6
- package/src/_stories/ChartAxisLabels.stories.tsx +4 -1
- package/src/_stories/ChartEditor.stories.tsx +27 -0
- package/src/_stories/ChartLine.Suppression.stories.tsx +25 -0
- package/src/_stories/ChartPrefixSuffix.stories.tsx +8 -0
- package/{examples/feature/area/area-chart-date-city-temperature.json → src/_stories/_mock/area_chart_stacked.json} +125 -27
- package/src/_stories/_mock/boxplot_multiseries.json +647 -0
- package/src/_stories/_mock/dynamic_series_bar_config.json +723 -0
- package/src/_stories/_mock/dynamic_series_config.json +979 -0
- package/src/_stories/_mock/line_chart_dynamic_ci.json +493 -0
- package/src/_stories/_mock/line_chart_non_dynamic_ci.json +522 -0
- package/{examples/feature/scatterplot/scatterplot.json → src/_stories/_mock/scatterplot_mock.json} +62 -92
- package/src/_stories/_mock/short_dates.json +288 -0
- package/src/_stories/_mock/suppression_mock.json +1549 -0
- package/src/components/AreaChart/components/AreaChart.Stacked.jsx +15 -3
- package/src/components/Axis/Categorical.Axis.tsx +2 -2
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +46 -37
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +43 -9
- package/src/components/BarChart/components/BarChart.Vertical.tsx +53 -47
- package/src/components/BarChart/helpers/getBarData.ts +28 -0
- package/src/components/BarChart/helpers/index.ts +1 -2
- package/src/components/BarChart/helpers/tests/getBarData.test.ts +74 -0
- package/src/components/BoxPlot/BoxPlot.tsx +131 -0
- package/src/components/BoxPlot/helpers/index.ts +54 -0
- package/src/components/BrushChart.tsx +23 -26
- package/src/components/EditorPanel/EditorPanel.tsx +117 -139
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +3 -3
- package/src/components/EditorPanel/components/Panels/Panel.BoxPlot.tsx +51 -6
- package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +40 -9
- package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +3 -3
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +122 -56
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +1 -2
- package/src/components/EditorPanel/useEditorPermissions.ts +20 -2
- package/src/components/Legend/Legend.Component.tsx +11 -12
- package/src/components/Legend/Legend.tsx +16 -16
- package/src/components/Legend/helpers/getLegendClasses.ts +59 -0
- package/src/components/Legend/helpers/index.ts +2 -1
- package/src/components/Legend/tests/getLegendClasses.test.ts +115 -0
- package/src/components/LineChart/components/LineChart.Circle.tsx +1 -1
- package/src/components/LineChart/helpers.ts +49 -43
- package/src/components/LineChart/index.tsx +135 -83
- package/src/components/LinearChart.tsx +196 -181
- package/src/components/PieChart/PieChart.tsx +7 -1
- package/src/components/Sankey/components/ColumnList.tsx +19 -0
- package/src/components/Sankey/components/Sankey.tsx +479 -0
- package/src/components/Sankey/helpers/getSankeyTooltip.tsx +33 -0
- package/src/components/Sankey/index.tsx +1 -492
- package/src/components/Sankey/sankey.scss +22 -21
- package/src/components/Sankey/types/index.ts +1 -1
- package/src/components/Sankey/useSankeyAlert.tsx +60 -0
- package/src/components/ScatterPlot/ScatterPlot.jsx +20 -4
- package/src/data/initial-state.js +7 -12
- package/src/helpers/countNumOfTicks.ts +57 -0
- package/src/helpers/getQuartiles.ts +15 -18
- package/src/hooks/useMinMax.ts +44 -16
- package/src/hooks/useReduceData.ts +43 -10
- package/src/hooks/useScales.ts +90 -35
- package/src/hooks/useTooltip.tsx +59 -50
- package/src/scss/DataTable.scss +5 -0
- package/src/scss/main.scss +6 -20
- package/src/types/ChartConfig.ts +6 -19
- package/src/types/ChartContext.ts +4 -1
- package/src/types/ForestPlot.ts +8 -0
- package/src/components/BoxPlot/BoxPlot.jsx +0 -111
- package/src/hooks/useLegendClasses.ts +0 -72
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"debugSvg": false,
|
|
5
|
+
"chartMessage": {
|
|
6
|
+
"noData": "No Data Available"
|
|
7
|
+
},
|
|
8
|
+
"title": "",
|
|
9
|
+
"showTitle": true,
|
|
10
|
+
"showDownloadMediaButton": false,
|
|
11
|
+
"theme": "theme-blue",
|
|
12
|
+
"animate": false,
|
|
13
|
+
"fontSize": "medium",
|
|
14
|
+
"lineDatapointStyle": "hover",
|
|
15
|
+
"lineDatapointColor": "Same as Line",
|
|
16
|
+
"barHasBorder": "false",
|
|
17
|
+
"isLollipopChart": false,
|
|
18
|
+
"lollipopShape": "circle",
|
|
19
|
+
"lollipopColorStyle": "two-tone",
|
|
20
|
+
"visualizationSubType": "regular",
|
|
21
|
+
"barStyle": "flat",
|
|
22
|
+
"roundingStyle": "standard",
|
|
23
|
+
"tipRounding": "top",
|
|
24
|
+
"isResponsiveTicks": false,
|
|
25
|
+
"general": {
|
|
26
|
+
"annotationDropdownText": "Annotations",
|
|
27
|
+
"showDownloadButton": false,
|
|
28
|
+
"showMissingDataLabel": true,
|
|
29
|
+
"showSuppressedSymbol": true,
|
|
30
|
+
"showZeroValueData": true,
|
|
31
|
+
"hideNullValue": true
|
|
32
|
+
},
|
|
33
|
+
"padding": {
|
|
34
|
+
"left": 5,
|
|
35
|
+
"right": 5
|
|
36
|
+
},
|
|
37
|
+
"preliminaryData": [],
|
|
38
|
+
"yAxis": {
|
|
39
|
+
"hideAxis": false,
|
|
40
|
+
"displayNumbersOnBar": false,
|
|
41
|
+
"hideLabel": false,
|
|
42
|
+
"hideTicks": false,
|
|
43
|
+
"size": 50,
|
|
44
|
+
"gridLines": false,
|
|
45
|
+
"enablePadding": false,
|
|
46
|
+
"min": "",
|
|
47
|
+
"max": "",
|
|
48
|
+
"labelColor": "#333",
|
|
49
|
+
"tickLabelColor": "#333",
|
|
50
|
+
"tickColor": "#333",
|
|
51
|
+
"rightHideAxis": true,
|
|
52
|
+
"rightAxisSize": 0,
|
|
53
|
+
"rightLabel": "",
|
|
54
|
+
"rightLabelOffsetSize": 0,
|
|
55
|
+
"rightAxisLabelColor": "#333",
|
|
56
|
+
"rightAxisTickLabelColor": "#333",
|
|
57
|
+
"rightAxisTickColor": "#333",
|
|
58
|
+
"numTicks": "",
|
|
59
|
+
"axisPadding": 0,
|
|
60
|
+
"scalePadding": 10,
|
|
61
|
+
"tickRotation": 0,
|
|
62
|
+
"anchors": [],
|
|
63
|
+
"shoMissingDataLabel": true,
|
|
64
|
+
"showMissingDataLine": true,
|
|
65
|
+
"categories": []
|
|
66
|
+
},
|
|
67
|
+
"boxplot": {
|
|
68
|
+
"plots": [],
|
|
69
|
+
"borders": "true",
|
|
70
|
+
"plotOutlierValues": false,
|
|
71
|
+
"plotNonOutlierValues": true,
|
|
72
|
+
"labels": {
|
|
73
|
+
"q1": "Lower Quartile",
|
|
74
|
+
"q2": "q2",
|
|
75
|
+
"q3": "Upper Quartile",
|
|
76
|
+
"q4": "q4",
|
|
77
|
+
"minimum": "Minimum",
|
|
78
|
+
"maximum": "Maximum",
|
|
79
|
+
"mean": "Mean",
|
|
80
|
+
"median": "Median",
|
|
81
|
+
"sd": "Standard Deviation",
|
|
82
|
+
"iqr": "Interquartile Range",
|
|
83
|
+
"count": "Count",
|
|
84
|
+
"outliers": "Outliers",
|
|
85
|
+
"values": "Values",
|
|
86
|
+
"lowerBounds": "Lower Bounds",
|
|
87
|
+
"upperBounds": "Upper Bounds"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"topAxis": {
|
|
91
|
+
"hasLine": false
|
|
92
|
+
},
|
|
93
|
+
"isLegendValue": false,
|
|
94
|
+
"barThickness": 0.35,
|
|
95
|
+
"barHeight": 25,
|
|
96
|
+
"barSpace": 15,
|
|
97
|
+
"heights": {
|
|
98
|
+
"vertical": 300,
|
|
99
|
+
"horizontal": 750
|
|
100
|
+
},
|
|
101
|
+
"xAxis": {
|
|
102
|
+
"sortDates": false,
|
|
103
|
+
"anchors": [],
|
|
104
|
+
"type": "categorical",
|
|
105
|
+
"showTargetLabel": true,
|
|
106
|
+
"targetLabel": "Target",
|
|
107
|
+
"hideAxis": false,
|
|
108
|
+
"hideLabel": false,
|
|
109
|
+
"hideTicks": false,
|
|
110
|
+
"size": 75,
|
|
111
|
+
"tickRotation": "45",
|
|
112
|
+
"min": "",
|
|
113
|
+
"max": "",
|
|
114
|
+
"labelColor": "#333",
|
|
115
|
+
"tickLabelColor": "#333",
|
|
116
|
+
"tickColor": "#333",
|
|
117
|
+
"numTicks": "",
|
|
118
|
+
"labelOffset": 0,
|
|
119
|
+
"axisPadding": 200,
|
|
120
|
+
"target": 0,
|
|
121
|
+
"maxTickRotation": 0,
|
|
122
|
+
"padding": "0",
|
|
123
|
+
"showYearsOnce": false,
|
|
124
|
+
"sortByRecentDate": false,
|
|
125
|
+
"dataKey": "date",
|
|
126
|
+
"axisBBox": 116.57705688476562,
|
|
127
|
+
"tickWidthMax": 93,
|
|
128
|
+
"dateParseFormat": "%Y-%m-%d",
|
|
129
|
+
"dateDisplayFormat": "%Y-%m-%d",
|
|
130
|
+
"manual": false,
|
|
131
|
+
"label": "Date"
|
|
132
|
+
},
|
|
133
|
+
"table": {
|
|
134
|
+
"label": "Data Table",
|
|
135
|
+
"expanded": true,
|
|
136
|
+
"limitHeight": false,
|
|
137
|
+
"height": "",
|
|
138
|
+
"caption": "",
|
|
139
|
+
"showDownloadUrl": false,
|
|
140
|
+
"showDataTableLink": true,
|
|
141
|
+
"showDownloadLinkBelow": true,
|
|
142
|
+
"indexLabel": "",
|
|
143
|
+
"download": true,
|
|
144
|
+
"showVertical": true,
|
|
145
|
+
"dateDisplayFormat": "%Y-%m-%d",
|
|
146
|
+
"showMissingDataLabel": true,
|
|
147
|
+
"showSuppressedSymbol": true,
|
|
148
|
+
"show": true
|
|
149
|
+
},
|
|
150
|
+
"orientation": "vertical",
|
|
151
|
+
"color": "pinkpurple",
|
|
152
|
+
"columns": {
|
|
153
|
+
"date": {
|
|
154
|
+
"label": "Date",
|
|
155
|
+
"dataTable": true,
|
|
156
|
+
"tooltips": false,
|
|
157
|
+
"prefix": "",
|
|
158
|
+
"suffix": "",
|
|
159
|
+
"forestPlot": false,
|
|
160
|
+
"startingPoint": "0",
|
|
161
|
+
"forestPlotAlignRight": false,
|
|
162
|
+
"roundToPlace": 0,
|
|
163
|
+
"commas": false,
|
|
164
|
+
"showInViz": false,
|
|
165
|
+
"forestPlotStartingPoint": 0,
|
|
166
|
+
"name": "date"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"legend": {
|
|
170
|
+
"hide": false,
|
|
171
|
+
"behavior": "isolate",
|
|
172
|
+
"axisAlign": true,
|
|
173
|
+
"singleRow": true,
|
|
174
|
+
"colorCode": "",
|
|
175
|
+
"reverseLabelOrder": false,
|
|
176
|
+
"description": "",
|
|
177
|
+
"dynamicLegend": false,
|
|
178
|
+
"dynamicLegendDefaultText": "Show All",
|
|
179
|
+
"dynamicLegendItemLimit": 5,
|
|
180
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
181
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
182
|
+
"label": "",
|
|
183
|
+
"lineMode": false,
|
|
184
|
+
"verticalSorted": false,
|
|
185
|
+
"highlightOnHover": false,
|
|
186
|
+
"hideSuppressedLabels": false,
|
|
187
|
+
"hideSuppressionLink": false,
|
|
188
|
+
"seriesHighlight": [],
|
|
189
|
+
"style": "circles",
|
|
190
|
+
"subStyle": "linear blocks",
|
|
191
|
+
"tickRotation": "",
|
|
192
|
+
"hideBorder": {
|
|
193
|
+
"side": false,
|
|
194
|
+
"topBottom": true
|
|
195
|
+
},
|
|
196
|
+
"position": "right"
|
|
197
|
+
},
|
|
198
|
+
"brush": {
|
|
199
|
+
"height": 25,
|
|
200
|
+
"active": false
|
|
201
|
+
},
|
|
202
|
+
"exclusions": {
|
|
203
|
+
"active": true,
|
|
204
|
+
"keys": [],
|
|
205
|
+
"dateStart": "2023-01-02",
|
|
206
|
+
"dateEnd": "2023-01-11"
|
|
207
|
+
},
|
|
208
|
+
"palette": "qualitative-bold",
|
|
209
|
+
"isPaletteReversed": false,
|
|
210
|
+
"twoColor": {
|
|
211
|
+
"palette": "monochrome-1",
|
|
212
|
+
"isPaletteReversed": false
|
|
213
|
+
},
|
|
214
|
+
"labels": false,
|
|
215
|
+
"dataFormat": {
|
|
216
|
+
"commas": false,
|
|
217
|
+
"prefix": "",
|
|
218
|
+
"suffix": "",
|
|
219
|
+
"abbreviated": false,
|
|
220
|
+
"bottomSuffix": "",
|
|
221
|
+
"bottomPrefix": "",
|
|
222
|
+
"bottomAbbreviated": false
|
|
223
|
+
},
|
|
224
|
+
"confidenceKeys": {
|
|
225
|
+
"upper": "upper",
|
|
226
|
+
"lower": "lower"
|
|
227
|
+
},
|
|
228
|
+
"visual": {
|
|
229
|
+
"border": true,
|
|
230
|
+
"accent": true,
|
|
231
|
+
"background": true,
|
|
232
|
+
"verticalHoverLine": false,
|
|
233
|
+
"horizontalHoverLine": false
|
|
234
|
+
},
|
|
235
|
+
"useLogScale": false,
|
|
236
|
+
"filterBehavior": "Filter Change",
|
|
237
|
+
"highlightedBarValues": [],
|
|
238
|
+
"series": [
|
|
239
|
+
{
|
|
240
|
+
"dataKey": "value",
|
|
241
|
+
"type": "Line",
|
|
242
|
+
"axis": "Left",
|
|
243
|
+
"tooltip": true,
|
|
244
|
+
"dynamicCategory": "category"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"tooltips": {
|
|
248
|
+
"opacity": 90,
|
|
249
|
+
"singleSeries": false,
|
|
250
|
+
"dateDisplayFormat": ""
|
|
251
|
+
},
|
|
252
|
+
"forestPlot": {
|
|
253
|
+
"startAt": 0,
|
|
254
|
+
"colors": {
|
|
255
|
+
"line": "",
|
|
256
|
+
"shape": ""
|
|
257
|
+
},
|
|
258
|
+
"lineOfNoEffect": {
|
|
259
|
+
"show": true
|
|
260
|
+
},
|
|
261
|
+
"type": "",
|
|
262
|
+
"pooledResult": {
|
|
263
|
+
"diamondHeight": 5,
|
|
264
|
+
"column": ""
|
|
265
|
+
},
|
|
266
|
+
"estimateField": "",
|
|
267
|
+
"estimateRadius": "",
|
|
268
|
+
"shape": "square",
|
|
269
|
+
"rowHeight": 20,
|
|
270
|
+
"description": {
|
|
271
|
+
"show": true,
|
|
272
|
+
"text": "description",
|
|
273
|
+
"location": 0
|
|
274
|
+
},
|
|
275
|
+
"result": {
|
|
276
|
+
"show": true,
|
|
277
|
+
"text": "result",
|
|
278
|
+
"location": 100
|
|
279
|
+
},
|
|
280
|
+
"radius": {
|
|
281
|
+
"min": 2,
|
|
282
|
+
"max": 10,
|
|
283
|
+
"scalingColumn": ""
|
|
284
|
+
},
|
|
285
|
+
"regression": {
|
|
286
|
+
"lower": 0,
|
|
287
|
+
"upper": 0,
|
|
288
|
+
"estimateField": 0
|
|
289
|
+
},
|
|
290
|
+
"leftWidthOffset": 0,
|
|
291
|
+
"rightWidthOffset": 0,
|
|
292
|
+
"showZeroLine": false,
|
|
293
|
+
"leftLabel": "",
|
|
294
|
+
"rightLabel": ""
|
|
295
|
+
},
|
|
296
|
+
"area": {
|
|
297
|
+
"isStacked": false
|
|
298
|
+
},
|
|
299
|
+
"sankey": {
|
|
300
|
+
"title": {
|
|
301
|
+
"defaultColor": "black"
|
|
302
|
+
},
|
|
303
|
+
"iterations": 1,
|
|
304
|
+
"rxValue": 0.9,
|
|
305
|
+
"overallSize": {
|
|
306
|
+
"width": 900,
|
|
307
|
+
"height": 700
|
|
308
|
+
},
|
|
309
|
+
"margin": {
|
|
310
|
+
"margin_y": 25,
|
|
311
|
+
"margin_x": 0
|
|
312
|
+
},
|
|
313
|
+
"nodeSize": {
|
|
314
|
+
"nodeWidth": 26,
|
|
315
|
+
"nodeHeight": 40
|
|
316
|
+
},
|
|
317
|
+
"nodePadding": 55,
|
|
318
|
+
"nodeFontColor": "black",
|
|
319
|
+
"nodeColor": {
|
|
320
|
+
"default": "#ff8500",
|
|
321
|
+
"inactive": "#808080"
|
|
322
|
+
},
|
|
323
|
+
"linkColor": {
|
|
324
|
+
"default": "#ffc900",
|
|
325
|
+
"inactive": "#D3D3D3"
|
|
326
|
+
},
|
|
327
|
+
"opacity": {
|
|
328
|
+
"nodeOpacityDefault": 1,
|
|
329
|
+
"nodeOpacityInactive": 0.1,
|
|
330
|
+
"LinkOpacityDefault": 1,
|
|
331
|
+
"LinkOpacityInactive": 0.1
|
|
332
|
+
},
|
|
333
|
+
"storyNodeFontColor": "#006778",
|
|
334
|
+
"storyNodeText": [],
|
|
335
|
+
"nodeValueStyle": {
|
|
336
|
+
"textBefore": "(",
|
|
337
|
+
"textAfter": ")"
|
|
338
|
+
},
|
|
339
|
+
"data": []
|
|
340
|
+
},
|
|
341
|
+
"visualizationType": "Line",
|
|
342
|
+
"data": [
|
|
343
|
+
{
|
|
344
|
+
"date": "2023-01-01",
|
|
345
|
+
"category": "male",
|
|
346
|
+
"value": 67,
|
|
347
|
+
"lower": 65,
|
|
348
|
+
"upper": 69
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"date": "2023-01-01",
|
|
352
|
+
"category": "female",
|
|
353
|
+
"value": 77,
|
|
354
|
+
"lower": 73,
|
|
355
|
+
"upper": 81
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"date": "2023-01-02",
|
|
359
|
+
"category": "male",
|
|
360
|
+
"value": 11,
|
|
361
|
+
"lower": 10,
|
|
362
|
+
"upper": 13
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"date": "2023-01-02",
|
|
366
|
+
"category": "female",
|
|
367
|
+
"value": 21,
|
|
368
|
+
"lower": 18,
|
|
369
|
+
"upper": 24
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"date": "2023-01-03",
|
|
373
|
+
"category": "male",
|
|
374
|
+
"value": 94,
|
|
375
|
+
"lower": 92,
|
|
376
|
+
"upper": 96
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"date": "2023-01-03",
|
|
380
|
+
"category": "female",
|
|
381
|
+
"value": 104,
|
|
382
|
+
"lower": 100,
|
|
383
|
+
"upper": 108
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"date": "2023-01-04",
|
|
387
|
+
"category": "male",
|
|
388
|
+
"value": 95,
|
|
389
|
+
"lower": 93,
|
|
390
|
+
"upper": 97
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"date": "2023-01-04",
|
|
394
|
+
"category": "female",
|
|
395
|
+
"value": 105,
|
|
396
|
+
"lower": 101,
|
|
397
|
+
"upper": 109
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"date": "2023-01-05",
|
|
401
|
+
"category": "male",
|
|
402
|
+
"value": 79,
|
|
403
|
+
"lower": 77,
|
|
404
|
+
"upper": 81
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"date": "2023-01-05",
|
|
408
|
+
"category": "female",
|
|
409
|
+
"value": 89,
|
|
410
|
+
"lower": 85,
|
|
411
|
+
"upper": 93
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"date": "2023-01-06",
|
|
415
|
+
"category": "male",
|
|
416
|
+
"value": 2,
|
|
417
|
+
"lower": 1,
|
|
418
|
+
"upper": 3
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"date": "2023-01-06",
|
|
422
|
+
"category": "female",
|
|
423
|
+
"value": 12,
|
|
424
|
+
"lower": 9,
|
|
425
|
+
"upper": 15
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"date": "2023-01-07",
|
|
429
|
+
"category": "male",
|
|
430
|
+
"value": 36,
|
|
431
|
+
"lower": 34,
|
|
432
|
+
"upper": 38
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"date": "2023-01-07",
|
|
436
|
+
"category": "female",
|
|
437
|
+
"value": 46,
|
|
438
|
+
"lower": 42,
|
|
439
|
+
"upper": 50
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"date": "2023-01-08",
|
|
443
|
+
"category": "male",
|
|
444
|
+
"value": 9,
|
|
445
|
+
"lower": 7,
|
|
446
|
+
"upper": 11
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"date": "2023-01-08",
|
|
450
|
+
"category": "female",
|
|
451
|
+
"value": 19,
|
|
452
|
+
"lower": 16,
|
|
453
|
+
"upper": 22
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"date": "2023-01-09",
|
|
457
|
+
"category": "male",
|
|
458
|
+
"value": 3,
|
|
459
|
+
"lower": 2,
|
|
460
|
+
"upper": 4
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"date": "2023-01-09",
|
|
464
|
+
"category": "female",
|
|
465
|
+
"value": 13,
|
|
466
|
+
"lower": 10,
|
|
467
|
+
"upper": 16
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"date": "2023-01-10",
|
|
471
|
+
"category": "male",
|
|
472
|
+
"value": 64,
|
|
473
|
+
"lower": 62,
|
|
474
|
+
"upper": 66
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"date": "2023-01-10",
|
|
478
|
+
"category": "female",
|
|
479
|
+
"value": 74,
|
|
480
|
+
"lower": 70,
|
|
481
|
+
"upper": 78
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"dataFileName": "valid-forecast-data.csv",
|
|
485
|
+
"dataFileSourceType": "file",
|
|
486
|
+
"dataDescription": {
|
|
487
|
+
"horizontal": false,
|
|
488
|
+
"series": false
|
|
489
|
+
},
|
|
490
|
+
"version": "4.24.10",
|
|
491
|
+
"dynamicMarginTop": 0,
|
|
492
|
+
"regions": []
|
|
493
|
+
}
|
package/index.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<body>
|
|
28
28
|
<!-- SANKEY EXAMPLE -->
|
|
29
|
-
<!-- <div class="container d-flex flex-wrap body-wrapper bg-white">
|
|
29
|
+
<!-- <div class="container d-flex flex-wrap body-wrapper bg-white" style="width: 750px">
|
|
30
30
|
<main class="col-lg-9 order-lg-2" role="main" aria-label="Main Content Area">
|
|
31
31
|
<div class="row">
|
|
32
32
|
<div class="col-md-12"> -->
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
-->
|
|
50
50
|
|
|
51
51
|
<!-- GENERIC CHART TYPES -->
|
|
52
|
-
|
|
52
|
+
<div class="react-container" data-config="/examples/private/demographic_standard.json"></div>
|
|
53
|
+
<div class="react-container" data-config="/examples/cases-year.json"></div>
|
|
53
54
|
<!-- <div class="react-container" data-config="/examples/test.json"></div> -->
|
|
54
55
|
<!-- <div class="react-container" data-config="/examples/feature/line/line-chart.json"></div> -->
|
|
55
56
|
<!-- <div class="react-container" data-config="/examples/dev-8332.json"></div> -->
|
|
@@ -57,18 +58,17 @@
|
|
|
57
58
|
<!-- <div class="react-container" data-config="/examples/feature/filters/url-filter.json"></div> -->
|
|
58
59
|
<!-- <div class="react-container" data-config="/examples/feature/bar/additional-column-tooltip.json"></div> -->
|
|
59
60
|
<!-- <div class="react-container" data-config="https://cdc.gov/poxvirus/mpox/modules/data-viz/mpx-trends_1.json"></div> -->
|
|
60
|
-
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-city-temperature.json"></div> -->
|
|
61
61
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-apple.json"></div> -->
|
|
62
62
|
<!-- <div class="react-container" data-config="/examples/feature/forest-plot/linear.json"></div> -->
|
|
63
63
|
<!-- <div class="react-container" data-config="/examples/feature/forest-plot/logarithmic.json"></div> -->
|
|
64
64
|
<!-- <div class="react-container" data-config="/examples/feature/forest-plot/forest-plot.json"></div> -->
|
|
65
|
-
<div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div>
|
|
65
|
+
<!-- <div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div> -->
|
|
66
66
|
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Viz.json></div> -->
|
|
67
67
|
<!-- <div class="react-container" data-config=/examples/feature/regions/index.json></div> -->
|
|
68
68
|
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
69
69
|
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
70
70
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/forecasting.json"></div> -->
|
|
71
|
-
<div class="react-container" data-config="/examples/feature/forecasting/combo-forecasting.json"></div>
|
|
71
|
+
<!-- <div class="react-container" data-config="/examples/feature/forecasting/combo-forecasting.json"></div> -->
|
|
72
72
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/effective_reproduction.json"></div> -->
|
|
73
73
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date.json"></div> -->
|
|
74
74
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-category.json"></div> -->
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<!-- <div class="react-container" data-config="/examples/feature/boxplot/boxplot.json"></div> -->
|
|
78
78
|
<!-- <div class="react-container" data-config="/examples/feature/combo/planet-combo-example-config.json"></div> -->
|
|
79
79
|
<!-- <div class="react-container" data-config="/examples/feature/combo/right-issues.json"></div> -->
|
|
80
|
-
|
|
80
|
+
<div class="react-container" data-config="/examples/dev-9822.json"></div>
|
|
81
81
|
|
|
82
82
|
<!-- BAR -->
|
|
83
83
|
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-example-config.json"></div> -->
|
|
@@ -105,7 +105,10 @@
|
|
|
105
105
|
<!-- <div class="react-container" data-config="/https://www.cdc.gov/poxvirus/mpox/modules/data-viz/mpx-age-sex1.json"></div> -->
|
|
106
106
|
|
|
107
107
|
<!-- TESTS DATE EXCLUSIONS -->
|
|
108
|
-
|
|
108
|
+
<div
|
|
109
|
+
class="react-container"
|
|
110
|
+
data-config="/examples/feature/tests-date-exclusions/date-exclusions-config.json"
|
|
111
|
+
></div>
|
|
109
112
|
<!-- <div class="react-container" data-config="/examples/feature/tests-case-rate/case-rate-example-config.json"></div> -->
|
|
110
113
|
|
|
111
114
|
<!-- TESTS BIG SMALL-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/chart",
|
|
3
|
-
"version": "4.24.
|
|
3
|
+
"version": "4.24.12-2",
|
|
4
4
|
"description": "React component for visualizing tabular data in various types of charts",
|
|
5
5
|
"moduleName": "CdcChart",
|
|
6
6
|
"main": "dist/cdcchart",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "a60edf1148396309eb473ac9f65426ee40797ddf",
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/d3-sankey": "^0.12.4",
|
|
67
67
|
"resize-observer-polyfill": "^1.5.1"
|