@cdc/chart 4.23.8 → 4.23.10-alpha
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 +43990 -44283
- package/examples/feature/__data__/area-chart-date-apple.json +1 -5073
- package/examples/feature/area/area-chart-date-apple.json +73 -10316
- package/examples/feature/area/area-chart-date-city-temperature.json +204 -80
- package/examples/{private/confidence_interval_test.json → feature/area/area-chart-stacked.json} +65 -74
- package/examples/feature/bar/lollipop.json +156 -0
- package/examples/feature/combo/planet-combo-example-config.json +99 -9
- package/examples/feature/filters/bar-filter.json +5027 -0
- package/examples/feature/legend-highlights/highlights.json +567 -0
- package/examples/private/TESTING.json +0 -0
- package/examples/private/forest-plot.json +356 -0
- package/examples/private/{tooltip-issue.json → full.json} +25288 -25239
- package/examples/private/missing-color.json +333 -0
- package/index.html +30 -8
- package/package.json +3 -2
- package/src/{CdcChart.jsx → CdcChart.tsx} +81 -74
- package/src/_stories/Chart.stories.tsx +188 -0
- package/src/components/AreaChart.Stacked.jsx +73 -0
- package/src/components/AreaChart.jsx +24 -26
- package/src/components/BarChart.StackedVertical.jsx +2 -0
- package/src/components/DeviationBar.jsx +67 -13
- package/src/components/EditorPanel.jsx +493 -454
- package/src/components/Forecasting.jsx +5 -5
- package/src/components/ForestPlotSettings.jsx +5 -6
- package/src/components/Legend.jsx +18 -9
- package/src/components/LineChart.Circle.tsx +102 -0
- package/src/components/{LineChart.jsx → LineChart.tsx} +9 -48
- package/src/components/LinearChart.jsx +460 -443
- package/src/components/PieChart.jsx +54 -25
- package/src/components/Series.jsx +63 -17
- package/src/components/SparkLine.jsx +7 -19
- package/src/data/initial-state.js +10 -1
- package/src/hooks/useBarChart.js +1 -1
- package/src/hooks/useEditorPermissions.js +87 -24
- package/src/hooks/useLegendClasses.js +14 -11
- package/src/hooks/useReduceData.js +6 -1
- package/src/hooks/useScales.js +4 -4
- package/src/hooks/useTooltip.jsx +21 -8
- package/src/scss/legend.scss +206 -0
- package/src/scss/main.scss +25 -24
- package/src/components/DataTable.jsx +0 -374
- /package/src/{components → hooks}/useIntersectionObserver.jsx +0 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"debugSvg": false,
|
|
4
|
+
"chartMessage": {
|
|
5
|
+
"noData": "No Data Available"
|
|
6
|
+
},
|
|
7
|
+
"title": "",
|
|
8
|
+
"showTitle": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
10
|
+
"showChartBrush": false,
|
|
11
|
+
"theme": "theme-blue",
|
|
12
|
+
"animate": false,
|
|
13
|
+
"fontSize": "medium",
|
|
14
|
+
"lineDatapointStyle": "hover",
|
|
15
|
+
"barHasBorder": "false",
|
|
16
|
+
"isLollipopChart": false,
|
|
17
|
+
"lollipopShape": "circle",
|
|
18
|
+
"lollipopColorStyle": "two-tone",
|
|
19
|
+
"visualizationSubType": "regular",
|
|
20
|
+
"barStyle": "",
|
|
21
|
+
"roundingStyle": "standard",
|
|
22
|
+
"tipRounding": "top",
|
|
23
|
+
"isResponsiveTicks": false,
|
|
24
|
+
"general": {
|
|
25
|
+
"showDownloadButton": false
|
|
26
|
+
},
|
|
27
|
+
"padding": {
|
|
28
|
+
"left": 5,
|
|
29
|
+
"right": 5
|
|
30
|
+
},
|
|
31
|
+
"yAxis": {
|
|
32
|
+
"hideAxis": false,
|
|
33
|
+
"displayNumbersOnBar": false,
|
|
34
|
+
"hideLabel": false,
|
|
35
|
+
"hideTicks": false,
|
|
36
|
+
"size": 50,
|
|
37
|
+
"gridLines": false,
|
|
38
|
+
"enablePadding": false,
|
|
39
|
+
"min": "",
|
|
40
|
+
"max": "",
|
|
41
|
+
"labelColor": "#333",
|
|
42
|
+
"tickLabelColor": "#333",
|
|
43
|
+
"tickColor": "#333",
|
|
44
|
+
"rightHideAxis": true,
|
|
45
|
+
"rightAxisSize": 50,
|
|
46
|
+
"rightLabel": "",
|
|
47
|
+
"rightLabelOffsetSize": 0,
|
|
48
|
+
"rightAxisLabelColor": "#333",
|
|
49
|
+
"rightAxisTickLabelColor": "#333",
|
|
50
|
+
"rightAxisTickColor": "#333",
|
|
51
|
+
"numTicks": "",
|
|
52
|
+
"axisPadding": 0,
|
|
53
|
+
"tickRotation": 0,
|
|
54
|
+
"anchors": []
|
|
55
|
+
},
|
|
56
|
+
"boxplot": {
|
|
57
|
+
"plots": [],
|
|
58
|
+
"borders": "true",
|
|
59
|
+
"firstQuartilePercentage": 25,
|
|
60
|
+
"thirdQuartilePercentage": 75,
|
|
61
|
+
"boxWidthPercentage": 40,
|
|
62
|
+
"plotOutlierValues": false,
|
|
63
|
+
"plotNonOutlierValues": true,
|
|
64
|
+
"legend": {
|
|
65
|
+
"showHowToReadText": false,
|
|
66
|
+
"howToReadText": ""
|
|
67
|
+
},
|
|
68
|
+
"labels": {
|
|
69
|
+
"q1": "Lower Quartile",
|
|
70
|
+
"q2": "q2",
|
|
71
|
+
"q3": "Upper Quartile",
|
|
72
|
+
"q4": "q4",
|
|
73
|
+
"minimum": "Minimum",
|
|
74
|
+
"maximum": "Maximum",
|
|
75
|
+
"mean": "Mean",
|
|
76
|
+
"median": "Median",
|
|
77
|
+
"sd": "Standard Deviation",
|
|
78
|
+
"iqr": "Interquartile Range",
|
|
79
|
+
"total": "Total",
|
|
80
|
+
"outliers": "Outliers",
|
|
81
|
+
"values": "Values",
|
|
82
|
+
"lowerBounds": "Lower Bounds",
|
|
83
|
+
"upperBounds": "Upper Bounds"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"topAxis": {
|
|
87
|
+
"hasLine": false
|
|
88
|
+
},
|
|
89
|
+
"isLegendValue": false,
|
|
90
|
+
"barThickness": 0.35,
|
|
91
|
+
"barHeight": 25,
|
|
92
|
+
"barSpace": 15,
|
|
93
|
+
"heights": {
|
|
94
|
+
"vertical": 300,
|
|
95
|
+
"horizontal": 750
|
|
96
|
+
},
|
|
97
|
+
"xAxis": {
|
|
98
|
+
"sortDates": false,
|
|
99
|
+
"anchors": [],
|
|
100
|
+
"type": "date",
|
|
101
|
+
"showTargetLabel": true,
|
|
102
|
+
"targetLabel": "Target",
|
|
103
|
+
"hideAxis": false,
|
|
104
|
+
"hideLabel": false,
|
|
105
|
+
"hideTicks": false,
|
|
106
|
+
"size": 75,
|
|
107
|
+
"tickRotation": 0,
|
|
108
|
+
"min": "",
|
|
109
|
+
"max": "",
|
|
110
|
+
"labelColor": "#333",
|
|
111
|
+
"tickLabelColor": "#333",
|
|
112
|
+
"tickColor": "#333",
|
|
113
|
+
"numTicks": "",
|
|
114
|
+
"labelOffset": 65,
|
|
115
|
+
"axisPadding": 0,
|
|
116
|
+
"target": 0,
|
|
117
|
+
"maxTickRotation": 0,
|
|
118
|
+
"dataKey": "Date",
|
|
119
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
120
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
121
|
+
},
|
|
122
|
+
"table": {
|
|
123
|
+
"label": "Data Table",
|
|
124
|
+
"expanded": true,
|
|
125
|
+
"limitHeight": false,
|
|
126
|
+
"height": "",
|
|
127
|
+
"caption": "",
|
|
128
|
+
"showDownloadUrl": false,
|
|
129
|
+
"showDataTableLink": true,
|
|
130
|
+
"indexLabel": "",
|
|
131
|
+
"download": false,
|
|
132
|
+
"showVertical": true,
|
|
133
|
+
"show": true
|
|
134
|
+
},
|
|
135
|
+
"orientation": "vertical",
|
|
136
|
+
"color": "pinkpurple",
|
|
137
|
+
"columns": {},
|
|
138
|
+
"legend": {
|
|
139
|
+
"behavior": "isolate",
|
|
140
|
+
"singleRow": false,
|
|
141
|
+
"colorCode": "",
|
|
142
|
+
"reverseLabelOrder": false,
|
|
143
|
+
"description": "",
|
|
144
|
+
"dynamicLegend": false,
|
|
145
|
+
"dynamicLegendDefaultText": "Show All",
|
|
146
|
+
"dynamicLegendItemLimit": 5,
|
|
147
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
148
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
149
|
+
"lineMode": false,
|
|
150
|
+
"verticalSorted": false
|
|
151
|
+
},
|
|
152
|
+
"exclusions": {
|
|
153
|
+
"active": false,
|
|
154
|
+
"keys": []
|
|
155
|
+
},
|
|
156
|
+
"palette": "qualitative-bold",
|
|
157
|
+
"isPaletteReversed": false,
|
|
158
|
+
"twoColor": {
|
|
159
|
+
"palette": "monochrome-1",
|
|
160
|
+
"isPaletteReversed": false
|
|
161
|
+
},
|
|
162
|
+
"labels": false,
|
|
163
|
+
"dataFormat": {
|
|
164
|
+
"commas": false,
|
|
165
|
+
"prefix": "",
|
|
166
|
+
"suffix": "",
|
|
167
|
+
"abbreviated": false,
|
|
168
|
+
"bottomSuffix": "",
|
|
169
|
+
"bottomPrefix": "",
|
|
170
|
+
"bottomAbbreviated": false,
|
|
171
|
+
"useCommas": false,
|
|
172
|
+
"roundToPlace": ""
|
|
173
|
+
},
|
|
174
|
+
"confidenceKeys": {},
|
|
175
|
+
"visual": {
|
|
176
|
+
"border": true,
|
|
177
|
+
"accent": true,
|
|
178
|
+
"background": true,
|
|
179
|
+
"verticalHoverLine": false,
|
|
180
|
+
"horizontalHoverLine": false
|
|
181
|
+
},
|
|
182
|
+
"useLogScale": false,
|
|
183
|
+
"filterBehavior": "Filter Change",
|
|
184
|
+
"highlightedBarValues": [],
|
|
185
|
+
"series": [
|
|
186
|
+
{
|
|
187
|
+
"dataKey": "Data 1",
|
|
188
|
+
"type": "Line",
|
|
189
|
+
"axis": "Left",
|
|
190
|
+
"name": "One",
|
|
191
|
+
"tooltip": true
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"dataKey": "Data 2",
|
|
195
|
+
"type": "Bar",
|
|
196
|
+
"axis": "Left",
|
|
197
|
+
"name": "two",
|
|
198
|
+
"tooltip": true
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"dataKey": "Data 3",
|
|
202
|
+
"type": "Bar",
|
|
203
|
+
"axis": "Left",
|
|
204
|
+
"name": "three",
|
|
205
|
+
"tooltip": true
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"dataKey": "Data 4",
|
|
209
|
+
"type": "Bar",
|
|
210
|
+
"axis": "Left",
|
|
211
|
+
"name": "four",
|
|
212
|
+
"tooltip": true
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"tooltips": {
|
|
216
|
+
"opacity": 90
|
|
217
|
+
},
|
|
218
|
+
"forestPlot": {
|
|
219
|
+
"startAt": 0,
|
|
220
|
+
"width": "auto",
|
|
221
|
+
"colors": {
|
|
222
|
+
"line": "",
|
|
223
|
+
"shape": ""
|
|
224
|
+
},
|
|
225
|
+
"estimateField": "",
|
|
226
|
+
"estimateRadius": "",
|
|
227
|
+
"lowerCiField": "",
|
|
228
|
+
"upperCiField": "",
|
|
229
|
+
"shape": "",
|
|
230
|
+
"rowHeight": 20,
|
|
231
|
+
"showZeroLine": false,
|
|
232
|
+
"description": {
|
|
233
|
+
"show": true,
|
|
234
|
+
"text": "description",
|
|
235
|
+
"location": 0
|
|
236
|
+
},
|
|
237
|
+
"result": {
|
|
238
|
+
"show": true,
|
|
239
|
+
"text": "result",
|
|
240
|
+
"location": 100
|
|
241
|
+
},
|
|
242
|
+
"radius": {
|
|
243
|
+
"min": 1,
|
|
244
|
+
"max": 8,
|
|
245
|
+
"scalingColumn": ""
|
|
246
|
+
},
|
|
247
|
+
"regression": {
|
|
248
|
+
"lower": 0,
|
|
249
|
+
"upper": 0,
|
|
250
|
+
"estimateField": 0
|
|
251
|
+
},
|
|
252
|
+
"leftWidthOffset": 0,
|
|
253
|
+
"rightWidthOffset": 0
|
|
254
|
+
},
|
|
255
|
+
"brush": {
|
|
256
|
+
"pattern_id": "brush_pattern",
|
|
257
|
+
"accent_color": "#ddd"
|
|
258
|
+
},
|
|
259
|
+
"area": {
|
|
260
|
+
"isStacked": false
|
|
261
|
+
},
|
|
262
|
+
"customColors": [
|
|
263
|
+
"red",
|
|
264
|
+
"orange",
|
|
265
|
+
"yellow",
|
|
266
|
+
"teal"
|
|
267
|
+
],
|
|
268
|
+
"visualizationType": "Combo",
|
|
269
|
+
"data": [
|
|
270
|
+
{
|
|
271
|
+
"Date": "1/15/2016",
|
|
272
|
+
"Data 1": "900",
|
|
273
|
+
"Data 2": "135",
|
|
274
|
+
"Data 3": "300",
|
|
275
|
+
"Data 4": "95",
|
|
276
|
+
"Data 5": "120",
|
|
277
|
+
"Data 6": "310"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"Date": "2/15/2016",
|
|
281
|
+
"Data 1": "4000",
|
|
282
|
+
"Data 2": "90",
|
|
283
|
+
"Data 3": "240",
|
|
284
|
+
"Data 4": "60",
|
|
285
|
+
"Data 5": "160",
|
|
286
|
+
"Data 6": "2000"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"Date": "3/15/2016",
|
|
290
|
+
"Data 1": "500",
|
|
291
|
+
"Data 2": "300",
|
|
292
|
+
"Data 3": "290",
|
|
293
|
+
"Data 4": "100",
|
|
294
|
+
"Data 5": "200",
|
|
295
|
+
"Data 6": "250"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"Date": "4/15/2016",
|
|
299
|
+
"Data 1": "1200",
|
|
300
|
+
"Data 2": "160",
|
|
301
|
+
"Data 3": "230",
|
|
302
|
+
"Data 4": "180",
|
|
303
|
+
"Data 5": "160",
|
|
304
|
+
"Data 6": "220"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"Date": "5/15/2016",
|
|
308
|
+
"Data 1": "8000",
|
|
309
|
+
"Data 2": "350",
|
|
310
|
+
"Data 3": "300",
|
|
311
|
+
"Data 4": "150",
|
|
312
|
+
"Data 5": "130",
|
|
313
|
+
"Data 6": "100"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"Date": "6/15/2016",
|
|
317
|
+
"Data 1": "9000",
|
|
318
|
+
"Data 2": "220",
|
|
319
|
+
"Data 3": "320",
|
|
320
|
+
"Data 4": "100",
|
|
321
|
+
"Data 5": "220",
|
|
322
|
+
"Data 6": "300"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"dataFileName": "valid-area-chart.json",
|
|
326
|
+
"dataFileSourceType": "file",
|
|
327
|
+
"dataDescription": {
|
|
328
|
+
"horizontal": false,
|
|
329
|
+
"series": false
|
|
330
|
+
},
|
|
331
|
+
"validated": 4.23,
|
|
332
|
+
"dynamicMarginTop": 0
|
|
333
|
+
}
|
package/index.html
CHANGED
|
@@ -34,19 +34,23 @@
|
|
|
34
34
|
-->
|
|
35
35
|
|
|
36
36
|
<!-- GENERIC CHART TYPES -->
|
|
37
|
-
<div class="react-container" data-config="/examples/private/
|
|
37
|
+
<div class="react-container" data-config="/examples/private/missing-color.json"></div>
|
|
38
|
+
<!-- <div class="react-container" data-config="/examples/private/combo.json"></div> -->
|
|
39
|
+
<!-- <div class="react-container" data-config="/examples/feature/legend-highlights/highlights.json"></div> -->
|
|
40
|
+
<!-- <div class="react-container" data-config="/examples/private/tooltip-issue.json"></div> -->
|
|
38
41
|
<!-- <div class="react-container" data-config="https://cdc.gov/poxvirus/mpox/modules/data-viz/mpx-trends_1.json"></div> -->
|
|
39
|
-
<!-- <div class="react-container" data-config="/examples/private/mpox-bar-test-aug-31.json"></div> -->
|
|
40
42
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-city-temperature.json"></div> -->
|
|
41
43
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-apple.json"></div> -->
|
|
42
|
-
<!-- <div class="react-container" data-config="/examples/feature/
|
|
43
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
44
|
+
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-stacked.json"></div> -->
|
|
45
|
+
<!-- <div class="react-container" data-config="/examples/private/forest-plot.json"></div> -->
|
|
44
46
|
<!-- <div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div> -->
|
|
47
|
+
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Viz.json></div> -->
|
|
48
|
+
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
45
49
|
<!-- <div class="react-container" data-config="/examples/feature/line/line-chart.json"></div> -->
|
|
46
50
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/forecasting.json"></div> -->
|
|
47
51
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/combo-forecasting.json"></div> -->
|
|
48
52
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/effective_reproduction.json"></div> -->
|
|
49
|
-
<div class="react-container" data-config="/examples/feature/area/area-chart-date.json"></div>
|
|
53
|
+
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date.json"></div> -->
|
|
50
54
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-category.json"></div> -->
|
|
51
55
|
<!-- <div class="react-container" data-config="/examples/feature/scatterplot/scatterplot.json"></div> -->
|
|
52
56
|
<!-- <div class="react-container" data-config="/examples/feature/deviation/planet-deviation-config.json"></div> -->
|
|
@@ -60,13 +64,30 @@
|
|
|
60
64
|
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-chart-horizontal-example-config.json"></div> -->
|
|
61
65
|
<!-- <div class="react-container" data-config="/examples/feature/bar/example-bar-chart.json"></div> -->
|
|
62
66
|
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-chart-max-increase.json"></div> -->
|
|
63
|
-
<div class="react-container" data-config="/examples/feature/bar/horizontal-chart.json"></div>
|
|
67
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-chart.json"></div> -->
|
|
64
68
|
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-stacked-bar-chart.json"></div> -->
|
|
65
69
|
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-chart-horizontal-example-config.json"></div> -->
|
|
66
70
|
|
|
67
71
|
<!-- SPARKLINE -->
|
|
68
72
|
<!-- <div class="react-container" data-config="/examples/feature/sparkline/example-sparkline.json"></div> -->
|
|
69
73
|
|
|
74
|
+
<!-- TESTS DATA TABLE SORTING -->
|
|
75
|
+
<!-- Bar Chart with Confidence Intervals (bottom of page) -->
|
|
76
|
+
<!-- <div class="react-container" data-config="https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Example_Bar_CI.json"></div> -->
|
|
77
|
+
<!-- TPOXX Patient Data -->
|
|
78
|
+
<!-- <div class="react-container" data-config="https://www.cdc.gov/poxvirus/mpox/modules/data-viz/tpoxx_weekly_race_eth.json"></div> -->
|
|
79
|
+
<!-- <div class="react-container" data-config="https://www.cdc.gov/poxvirus/mpox/modules/data-viz/mpx-tpoxx-age-gender.json"></div> -->
|
|
80
|
+
<!-- Non-Variola Orthopoxvirus (NVO) Laboratory Testing by Demographics -->
|
|
81
|
+
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/poxvirus/mpox/modules/data-viz/lab-data.json"></div> -->
|
|
82
|
+
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/poxvirus/mpox/modules/data-viz/lab-data-age.json"></div> -->
|
|
83
|
+
<!-- PROBLEM WITH THEIR PAGE CONFIG or CONFLICT with -->
|
|
84
|
+
<!-- CORS ERROR pulling data on Covid Flu RSV page at https://wwwdev-cdc.msappproxy.net/respiratory-viruses/index.html-->
|
|
85
|
+
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/respiratory-viruses/modules/emergency-dept-visits_live.json"></div> -->
|
|
86
|
+
<!-- MPOX -->
|
|
87
|
+
<!-- <div class="react-container" data-config="https://www.cdc.gov/poxvirus/mpox/modules/data-viz/mpox-demographics-monthly.json"></div> -->
|
|
88
|
+
<!-- <div class="react-container" data-config="/https://www.cdc.gov/poxvirus/mpox/modules/data-viz/mpx-age-sex1.json"></div> -->
|
|
89
|
+
|
|
90
|
+
|
|
70
91
|
<!-- TESTS DATE EXCLUSIONS -->
|
|
71
92
|
<!-- <div class="react-container" data-config="/examples/feature/tests-date-exclusions/date-exclusions-config.json"></div> -->
|
|
72
93
|
<!-- <div class="react-container" data-config="/examples/feature/tests-case-rate/case-rate-example-config.json"></div> -->
|
|
@@ -82,6 +103,7 @@
|
|
|
82
103
|
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/example-combo-bar-nonnumeric.json"></div> -->
|
|
83
104
|
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/example-bar-chart-nonnumeric.json"></div> -->
|
|
84
105
|
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/sparkline-chart-nonnumeric.json"></div> -->
|
|
106
|
+
<div class="react-container" data-config="/examples/feature/bar/lollipop.json"></div>
|
|
85
107
|
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/stacked-vertical-bar-example-nonnumerics.json"></div> -->
|
|
86
108
|
|
|
87
109
|
<!-- TESTS CUTOFF -->
|
|
@@ -111,8 +133,8 @@
|
|
|
111
133
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
|
|
112
134
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
|
|
113
135
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
114
|
-
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart
|
|
115
|
-
<div class="react-container" data-config="/
|
|
136
|
+
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
|
|
137
|
+
<div class="react-container" data-config="https://www.cdc.gov/respiratory-viruses/modules/respiratory-virus-activity/emergency-dept-visits_live.json"></div>
|
|
116
138
|
|
|
117
139
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
118
140
|
</body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/chart",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.10-alpha",
|
|
4
4
|
"description": "React component for visualizing tabular data in various types of charts",
|
|
5
5
|
"moduleName": "CdcChart",
|
|
6
6
|
"main": "dist/cdcchart",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"js-base64": "^2.5.2",
|
|
49
49
|
"papaparse": "^5.3.0",
|
|
50
50
|
"react-accessible-accordion": "^3.3.4",
|
|
51
|
+
"react-icons": "^4.10.1",
|
|
51
52
|
"react-spring": "^8.0.27",
|
|
52
53
|
"react-table": "^7.5.0",
|
|
53
54
|
"react-tooltip": "5.8.2-beta.3",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"react": "^18.2.0",
|
|
59
60
|
"react-dom": "^18.2.0"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "47278535fb20bb4e6b3320f8075051bedc5bca8e",
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"resize-observer-polyfill": "^1.5.1"
|
|
64
65
|
}
|