@cdc/chart 4.23.11 → 4.24.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 +35740 -35027
- package/examples/feature/bar/additional-column-tooltip.json +446 -0
- package/examples/feature/bar/tall-data.json +98 -0
- package/examples/feature/forest-plot/forest-plot.json +63 -19
- package/examples/feature/forest-plot/linear.json +52 -3
- package/examples/feature/forest-plot/log.json +26 -0
- package/examples/feature/forest-plot/logarithmic.json +0 -35
- package/examples/feature/line/line-chart-preliminary.json +393 -0
- package/examples/feature/regions/index.json +9 -5
- package/examples/feature/scatterplot/scatterplot.json +272 -33
- package/index.html +10 -8
- package/package.json +2 -2
- package/src/CdcChart.tsx +70 -234
- package/src/ConfigContext.tsx +6 -0
- package/src/_stories/ChartEditor.stories.tsx +22 -0
- package/src/_stories/ChartLine.preliminary.tsx +19 -0
- package/src/_stories/_mock/pie_config.json +192 -0
- package/src/_stories/_mock/pie_data.json +218 -0
- package/src/_stories/_mock/preliminary_mock.json +346 -0
- package/src/components/{AreaChart.Stacked.jsx → AreaChart/components/AreaChart.Stacked.jsx} +2 -2
- package/src/components/{AreaChart.jsx → AreaChart/components/AreaChart.jsx} +2 -26
- package/src/components/AreaChart/index.tsx +4 -0
- package/src/components/{BarChart.Horizontal.tsx → BarChart/components/BarChart.Horizontal.tsx} +8 -8
- package/src/components/{BarChart.StackedHorizontal.tsx → BarChart/components/BarChart.StackedHorizontal.tsx} +37 -7
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +108 -0
- package/src/components/{BarChart.Vertical.tsx → BarChart/components/BarChart.Vertical.tsx} +53 -70
- package/src/components/BarChart/components/BarChart.jsx +39 -0
- package/src/components/{BarChartType.jsx → BarChart/components/BarChartType.jsx} +0 -2
- package/src/components/BarChart/components/context.tsx +13 -0
- package/src/components/BarChart/index.tsx +3 -0
- package/src/components/{BoxPlot.jsx → BoxPlot/BoxPlot.jsx} +10 -9
- package/src/components/BoxPlot/index.tsx +3 -0
- package/src/components/EditorPanel/EditorPanel.tsx +2776 -0
- package/src/components/EditorPanel/EditorPanelContext.ts +40 -0
- package/src/components/EditorPanel/components/PanelProps.ts +3 -0
- package/src/components/EditorPanel/components/Panels/Panel.BoxPlot.tsx +148 -0
- package/src/components/{ForestPlotSettings.jsx → EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx} +97 -167
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +160 -0
- package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +168 -0
- package/src/components/{Series.jsx → EditorPanel/components/Panels/Panel.Series.tsx} +4 -4
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +297 -0
- package/src/components/EditorPanel/components/Panels/index.tsx +17 -0
- package/src/components/EditorPanel/components/panels.scss +72 -0
- package/src/components/EditorPanel/editor-panel.scss +739 -0
- package/src/components/EditorPanel/index.tsx +3 -0
- package/src/{hooks → components/EditorPanel}/useEditorPermissions.js +34 -2
- package/src/components/{Forecasting.jsx → Forecasting/Forecasting.jsx} +1 -1
- package/src/components/Forecasting/index.tsx +3 -0
- package/src/components/ForestPlot/ForestPlot.tsx +254 -0
- package/src/components/ForestPlot/ForestPlotProps.ts +7 -0
- package/src/components/ForestPlot/index.tsx +1 -209
- package/src/components/Legend/Legend.Component.tsx +199 -0
- package/src/components/Legend/Legend.tsx +28 -0
- package/src/components/Legend/helpers/createFormatLabels.tsx +140 -0
- package/src/components/Legend/index.tsx +3 -0
- package/src/components/LineChart/LineChartProps.ts +29 -0
- package/src/components/LineChart/components/LineChart.Circle.tsx +147 -0
- package/src/components/LineChart/helpers.ts +45 -0
- package/src/components/LineChart/index.tsx +111 -23
- package/src/components/LinearChart.jsx +55 -72
- package/src/components/PairedBarChart.jsx +4 -2
- package/src/components/{PieChart.jsx → PieChart/PieChart.tsx} +93 -31
- package/src/components/PieChart/index.tsx +3 -0
- package/src/components/Regions/components/Regions.tsx +144 -0
- package/src/components/Regions/index.tsx +3 -0
- package/src/components/{ScatterPlot.jsx → ScatterPlot/ScatterPlot.jsx} +3 -3
- package/src/components/ScatterPlot/index.tsx +3 -0
- package/src/components/{SparkLine.jsx → Sparkline/SparkLine.jsx} +2 -2
- package/src/components/Sparkline/index.tsx +3 -0
- package/src/data/initial-state.js +10 -8
- package/src/helpers/abbreviateNumber.ts +17 -0
- package/src/helpers/computeMarginBottom.ts +55 -0
- package/src/helpers/filterData.ts +18 -0
- package/src/helpers/generateColorsArray.ts +8 -0
- package/src/helpers/getQuartiles.ts +30 -0
- package/src/helpers/handleChartAriaLabels.ts +19 -0
- package/src/helpers/handleLineType.ts +18 -0
- package/src/helpers/lineOptions.ts +18 -0
- package/src/helpers/sort.ts +7 -0
- package/src/helpers/tests/computeMarginBottom.test.ts +20 -0
- package/src/hooks/useBarChart.js +7 -6
- package/src/hooks/useHighlightedBars.js +1 -1
- package/src/hooks/useMinMax.ts +3 -3
- package/src/hooks/useScales.ts +19 -6
- package/src/hooks/{useTooltip.jsx → useTooltip.tsx} +31 -25
- package/src/scss/main.scss +0 -3
- package/src/types/ChartConfig.ts +167 -23
- package/src/types/ChartContext.ts +34 -12
- package/src/types/ForestPlot.ts +7 -14
- package/src/types/Label.ts +7 -0
- package/examples/feature/scatterplot/scatterplot-continuous.csv +0 -17
- package/src/ConfigContext.jsx +0 -5
- package/src/components/BarChart.StackedVertical.tsx +0 -91
- package/src/components/BarChart.jsx +0 -30
- package/src/components/EditorPanel.jsx +0 -3356
- package/src/components/ForestPlot/Readme.md +0 -0
- package/src/components/Legend.jsx +0 -310
- package/src/components/LineChart/LineChart.Circle.tsx +0 -105
- package/src/scss/LinearChart.scss +0 -0
- package/src/scss/editor-panel.scss +0 -745
- package/src/scss/legend.scss +0 -206
- package/src/scss/mixins.scss +0 -0
- package/src/scss/variables.scss +0 -1
- package/src/types/ChartProps.ts +0 -7
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
|
-
"
|
|
3
|
+
"debugSvg": false,
|
|
4
|
+
"chartMessage": {
|
|
5
|
+
"noData": "No Data Available"
|
|
6
|
+
},
|
|
7
|
+
"title": "",
|
|
8
|
+
"showTitle": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
4
10
|
"theme": "theme-blue",
|
|
5
11
|
"animate": false,
|
|
6
12
|
"fontSize": "medium",
|
|
7
13
|
"lineDatapointStyle": "hover",
|
|
14
|
+
"lineDatapointColor": "Same as Line",
|
|
8
15
|
"barHasBorder": "false",
|
|
9
16
|
"isLollipopChart": false,
|
|
10
17
|
"lollipopShape": "circle",
|
|
@@ -13,42 +20,87 @@
|
|
|
13
20
|
"barStyle": "",
|
|
14
21
|
"roundingStyle": "standard",
|
|
15
22
|
"tipRounding": "top",
|
|
23
|
+
"isResponsiveTicks": false,
|
|
24
|
+
"general": {
|
|
25
|
+
"showDownloadButton": false
|
|
26
|
+
},
|
|
16
27
|
"padding": {
|
|
17
28
|
"left": 5,
|
|
18
29
|
"right": 5
|
|
19
30
|
},
|
|
31
|
+
"suppressedData": [],
|
|
20
32
|
"yAxis": {
|
|
21
|
-
"dataKey": "y",
|
|
22
33
|
"hideAxis": false,
|
|
23
34
|
"displayNumbersOnBar": false,
|
|
24
35
|
"hideLabel": false,
|
|
25
36
|
"hideTicks": false,
|
|
26
37
|
"size": 50,
|
|
27
|
-
"gridLines":
|
|
38
|
+
"gridLines": false,
|
|
39
|
+
"enablePadding": false,
|
|
28
40
|
"min": "",
|
|
29
41
|
"max": "",
|
|
30
42
|
"labelColor": "#333",
|
|
31
43
|
"tickLabelColor": "#333",
|
|
32
44
|
"tickColor": "#333",
|
|
33
45
|
"rightHideAxis": true,
|
|
34
|
-
"rightAxisSize":
|
|
46
|
+
"rightAxisSize": 0,
|
|
47
|
+
"rightLabel": "",
|
|
35
48
|
"rightLabelOffsetSize": 0,
|
|
36
49
|
"rightAxisLabelColor": "#333",
|
|
37
50
|
"rightAxisTickLabelColor": "#333",
|
|
38
51
|
"rightAxisTickColor": "#333",
|
|
39
|
-
"isLegendValue": false,
|
|
40
52
|
"numTicks": "",
|
|
41
|
-
"
|
|
53
|
+
"axisPadding": 0,
|
|
54
|
+
"tickRotation": 0,
|
|
55
|
+
"anchors": []
|
|
56
|
+
},
|
|
57
|
+
"boxplot": {
|
|
58
|
+
"plots": [],
|
|
59
|
+
"borders": "true",
|
|
60
|
+
"firstQuartilePercentage": 25,
|
|
61
|
+
"thirdQuartilePercentage": 75,
|
|
62
|
+
"boxWidthPercentage": 40,
|
|
63
|
+
"plotOutlierValues": false,
|
|
64
|
+
"plotNonOutlierValues": true,
|
|
65
|
+
"legend": {
|
|
66
|
+
"showHowToReadText": false,
|
|
67
|
+
"howToReadText": ""
|
|
68
|
+
},
|
|
69
|
+
"labels": {
|
|
70
|
+
"q1": "Lower Quartile",
|
|
71
|
+
"q2": "q2",
|
|
72
|
+
"q3": "Upper Quartile",
|
|
73
|
+
"q4": "q4",
|
|
74
|
+
"minimum": "Minimum",
|
|
75
|
+
"maximum": "Maximum",
|
|
76
|
+
"mean": "Mean",
|
|
77
|
+
"median": "Median",
|
|
78
|
+
"sd": "Standard Deviation",
|
|
79
|
+
"iqr": "Interquartile Range",
|
|
80
|
+
"total": "Total",
|
|
81
|
+
"outliers": "Outliers",
|
|
82
|
+
"values": "Values",
|
|
83
|
+
"lowerBounds": "Lower Bounds",
|
|
84
|
+
"upperBounds": "Upper Bounds"
|
|
85
|
+
}
|
|
42
86
|
},
|
|
43
|
-
"boxplot": [],
|
|
44
87
|
"topAxis": {
|
|
45
88
|
"hasLine": false
|
|
46
89
|
},
|
|
90
|
+
"isLegendValue": false,
|
|
47
91
|
"barThickness": 0.35,
|
|
48
92
|
"barHeight": 25,
|
|
49
|
-
"
|
|
93
|
+
"barSpace": 15,
|
|
94
|
+
"heights": {
|
|
95
|
+
"vertical": 300,
|
|
96
|
+
"horizontal": 750
|
|
97
|
+
},
|
|
50
98
|
"xAxis": {
|
|
51
|
-
"
|
|
99
|
+
"sortDates": false,
|
|
100
|
+
"anchors": [],
|
|
101
|
+
"type": "continuous",
|
|
102
|
+
"showTargetLabel": true,
|
|
103
|
+
"targetLabel": "Target",
|
|
52
104
|
"hideAxis": false,
|
|
53
105
|
"hideLabel": false,
|
|
54
106
|
"hideTicks": false,
|
|
@@ -59,10 +111,13 @@
|
|
|
59
111
|
"labelColor": "#333",
|
|
60
112
|
"tickLabelColor": "#333",
|
|
61
113
|
"tickColor": "#333",
|
|
62
|
-
"isLegendValue": false,
|
|
63
114
|
"numTicks": "",
|
|
115
|
+
"labelOffset": 65,
|
|
116
|
+
"axisPadding": 0,
|
|
117
|
+
"target": 0,
|
|
118
|
+
"maxTickRotation": 0,
|
|
64
119
|
"dataKey": "x",
|
|
65
|
-
"
|
|
120
|
+
"tickWidthMax": 21
|
|
66
121
|
},
|
|
67
122
|
"table": {
|
|
68
123
|
"label": "Data Table",
|
|
@@ -70,12 +125,19 @@
|
|
|
70
125
|
"limitHeight": false,
|
|
71
126
|
"height": "",
|
|
72
127
|
"caption": "",
|
|
128
|
+
"showDownloadUrl": false,
|
|
129
|
+
"showDataTableLink": true,
|
|
130
|
+
"indexLabel": "",
|
|
131
|
+
"download": false,
|
|
132
|
+
"showVertical": true,
|
|
73
133
|
"show": true
|
|
74
134
|
},
|
|
75
135
|
"orientation": "vertical",
|
|
136
|
+
"color": "pinkpurple",
|
|
137
|
+
"columns": {},
|
|
76
138
|
"legend": {
|
|
139
|
+
"hide": false,
|
|
77
140
|
"behavior": "isolate",
|
|
78
|
-
"position": "right",
|
|
79
141
|
"singleRow": false,
|
|
80
142
|
"colorCode": "",
|
|
81
143
|
"reverseLabelOrder": false,
|
|
@@ -84,53 +146,230 @@
|
|
|
84
146
|
"dynamicLegendDefaultText": "Show All",
|
|
85
147
|
"dynamicLegendItemLimit": 5,
|
|
86
148
|
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
87
|
-
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
149
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
150
|
+
"lineMode": false,
|
|
151
|
+
"verticalSorted": false,
|
|
152
|
+
"highlightOnHover": false
|
|
153
|
+
},
|
|
154
|
+
"brush": {
|
|
155
|
+
"height": 25,
|
|
156
|
+
"data": [],
|
|
157
|
+
"active": false
|
|
88
158
|
},
|
|
89
159
|
"exclusions": {
|
|
90
160
|
"active": false,
|
|
91
161
|
"keys": []
|
|
92
162
|
},
|
|
93
|
-
"palette": "
|
|
163
|
+
"palette": "qualitative-bold",
|
|
94
164
|
"isPaletteReversed": false,
|
|
165
|
+
"twoColor": {
|
|
166
|
+
"palette": "monochrome-1",
|
|
167
|
+
"isPaletteReversed": false
|
|
168
|
+
},
|
|
95
169
|
"labels": false,
|
|
96
170
|
"dataFormat": {
|
|
97
171
|
"commas": false,
|
|
98
172
|
"prefix": "",
|
|
99
173
|
"suffix": "",
|
|
100
|
-
"
|
|
174
|
+
"abbreviated": false,
|
|
175
|
+
"bottomSuffix": "",
|
|
176
|
+
"bottomPrefix": "",
|
|
177
|
+
"bottomAbbreviated": false
|
|
101
178
|
},
|
|
102
179
|
"confidenceKeys": {},
|
|
103
180
|
"visual": {
|
|
104
181
|
"border": true,
|
|
105
182
|
"accent": true,
|
|
106
|
-
"background": true
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"visualizationType": "Scatter Plot",
|
|
110
|
-
"description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.",
|
|
111
|
-
"dataDescription": {
|
|
112
|
-
"horizontal": false,
|
|
113
|
-
"series": false,
|
|
114
|
-
"singleRow": false,
|
|
115
|
-
"xKey": "Group_Category",
|
|
116
|
-
"valueKey": "Value"
|
|
183
|
+
"background": true,
|
|
184
|
+
"verticalHoverLine": false,
|
|
185
|
+
"horizontalHoverLine": false
|
|
117
186
|
},
|
|
187
|
+
"useLogScale": false,
|
|
188
|
+
"filterBehavior": "Filter Change",
|
|
189
|
+
"highlightedBarValues": [],
|
|
118
190
|
"series": [
|
|
119
191
|
{
|
|
120
192
|
"dataKey": "y1",
|
|
121
|
-
"type": "
|
|
193
|
+
"type": "Scatter Plot",
|
|
194
|
+
"axis": "Left",
|
|
195
|
+
"tooltip": true
|
|
122
196
|
},
|
|
123
197
|
{
|
|
124
198
|
"dataKey": "y2",
|
|
125
|
-
"type": "
|
|
199
|
+
"type": "Scatter Plot",
|
|
200
|
+
"axis": "Left",
|
|
201
|
+
"tooltip": true
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"tooltips": {
|
|
205
|
+
"opacity": 90,
|
|
206
|
+
"singleSeries": false
|
|
207
|
+
},
|
|
208
|
+
"forestPlot": {
|
|
209
|
+
"startAt": 0,
|
|
210
|
+
"colors": {
|
|
211
|
+
"line": "",
|
|
212
|
+
"shape": ""
|
|
213
|
+
},
|
|
214
|
+
"lineOfNoEffect": {
|
|
215
|
+
"show": true
|
|
216
|
+
},
|
|
217
|
+
"type": "",
|
|
218
|
+
"pooledResult": {
|
|
219
|
+
"diamondHeight": 5,
|
|
220
|
+
"column": ""
|
|
221
|
+
},
|
|
222
|
+
"estimateField": "",
|
|
223
|
+
"estimateRadius": "",
|
|
224
|
+
"shape": "circle",
|
|
225
|
+
"rowHeight": 20,
|
|
226
|
+
"description": {
|
|
227
|
+
"show": true,
|
|
228
|
+
"text": "description",
|
|
229
|
+
"location": 0
|
|
230
|
+
},
|
|
231
|
+
"result": {
|
|
232
|
+
"show": true,
|
|
233
|
+
"text": "result",
|
|
234
|
+
"location": 100
|
|
235
|
+
},
|
|
236
|
+
"radius": {
|
|
237
|
+
"min": 2,
|
|
238
|
+
"max": 10,
|
|
239
|
+
"scalingColumn": ""
|
|
240
|
+
},
|
|
241
|
+
"regression": {
|
|
242
|
+
"lower": 0,
|
|
243
|
+
"upper": 0,
|
|
244
|
+
"estimateField": 0
|
|
245
|
+
},
|
|
246
|
+
"leftWidthOffset": 0,
|
|
247
|
+
"rightWidthOffset": 0,
|
|
248
|
+
"showZeroLine": false,
|
|
249
|
+
"leftLabel": "",
|
|
250
|
+
"rightLabel": ""
|
|
251
|
+
},
|
|
252
|
+
"area": {
|
|
253
|
+
"isStacked": false
|
|
254
|
+
},
|
|
255
|
+
"datasets": {},
|
|
256
|
+
"visualizationType": "Scatter Plot",
|
|
257
|
+
"data": [
|
|
258
|
+
{
|
|
259
|
+
"x": "1",
|
|
260
|
+
"y1": "8",
|
|
261
|
+
"y2": "37",
|
|
262
|
+
"y3": "72",
|
|
263
|
+
"y4": "82"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"x": "2",
|
|
267
|
+
"y1": "2",
|
|
268
|
+
"y2": "30",
|
|
269
|
+
"y3": "75",
|
|
270
|
+
"y4": "83"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"x": "3",
|
|
274
|
+
"y1": "15",
|
|
275
|
+
"y2": "42",
|
|
276
|
+
"y3": "51",
|
|
277
|
+
"y4": "95"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"x": "4",
|
|
281
|
+
"y1": "10",
|
|
282
|
+
"y2": "38",
|
|
283
|
+
"y3": "61",
|
|
284
|
+
"y4": "96"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"x": "5",
|
|
288
|
+
"y1": "1",
|
|
289
|
+
"y2": "38",
|
|
290
|
+
"y3": "66",
|
|
291
|
+
"y4": "86"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"x": "60",
|
|
295
|
+
"y1": "6",
|
|
296
|
+
"y2": "37",
|
|
297
|
+
"y3": "70",
|
|
298
|
+
"y4": "85"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"x": "10",
|
|
302
|
+
"y1": "19",
|
|
303
|
+
"y2": "47",
|
|
304
|
+
"y3": "59",
|
|
305
|
+
"y4": "91"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"x": "24",
|
|
309
|
+
"y1": "18",
|
|
310
|
+
"y2": "32",
|
|
311
|
+
"y3": "68",
|
|
312
|
+
"y4": "89"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"x": "3",
|
|
316
|
+
"y1": "7",
|
|
317
|
+
"y2": "38",
|
|
318
|
+
"y3": "74",
|
|
319
|
+
"y4": "89"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"x": "26",
|
|
323
|
+
"y1": "10",
|
|
324
|
+
"y2": "39",
|
|
325
|
+
"y3": "56",
|
|
326
|
+
"y4": "91"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"x": "42",
|
|
330
|
+
"y1": "16",
|
|
331
|
+
"y2": "38",
|
|
332
|
+
"y3": "55",
|
|
333
|
+
"y4": "76"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"x": "32",
|
|
337
|
+
"y1": "20",
|
|
338
|
+
"y2": "46",
|
|
339
|
+
"y3": "52",
|
|
340
|
+
"y4": "94"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"x": "11",
|
|
344
|
+
"y1": "9",
|
|
345
|
+
"y2": "41",
|
|
346
|
+
"y3": "57",
|
|
347
|
+
"y4": "86"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"x": "22",
|
|
351
|
+
"y1": "10",
|
|
352
|
+
"y2": "47",
|
|
353
|
+
"y3": "56",
|
|
354
|
+
"y4": "80"
|
|
126
355
|
},
|
|
127
356
|
{
|
|
128
|
-
"
|
|
129
|
-
"
|
|
357
|
+
"x": "73",
|
|
358
|
+
"y1": "1",
|
|
359
|
+
"y2": "36",
|
|
360
|
+
"y3": "71",
|
|
361
|
+
"y4": "94"
|
|
130
362
|
},
|
|
131
363
|
{
|
|
132
|
-
"
|
|
133
|
-
"
|
|
364
|
+
"x": "23",
|
|
365
|
+
"y1": "13",
|
|
366
|
+
"y2": "30",
|
|
367
|
+
"y3": "66",
|
|
368
|
+
"y4": "78"
|
|
134
369
|
}
|
|
135
|
-
]
|
|
370
|
+
],
|
|
371
|
+
"dataFileName": "valid-scatterplot.csv",
|
|
372
|
+
"dataFileSourceType": "file",
|
|
373
|
+
"validated": 4.23,
|
|
374
|
+
"dynamicMarginTop": 0
|
|
136
375
|
}
|
package/index.html
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
margin-top: 3rem;
|
|
18
18
|
}
|
|
19
19
|
</style>
|
|
20
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/contrib/libs/bootstrap/latest/css/bootstrap.min.css?_=39423">
|
|
21
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/4.0/assets/css/app.min.css?_=39423">
|
|
20
22
|
</head>
|
|
21
23
|
|
|
22
24
|
<body>
|
|
@@ -34,12 +36,9 @@
|
|
|
34
36
|
-->
|
|
35
37
|
|
|
36
38
|
<!-- GENERIC CHART TYPES -->
|
|
37
|
-
<div class="react-container" data-config="/examples/private/
|
|
38
|
-
<div class="react-container" data-config="/examples/private/
|
|
39
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
40
|
-
<!-- <div class="react-container" data-config="/examples/private/combo.json"></div> -->
|
|
41
|
-
<!-- <div class="react-container" data-config="/examples/feature/legend-highlights/highlights.json"></div> -->
|
|
42
|
-
<!-- <div class="react-container" data-config="/examples/private/tooltip-issue.json"></div> -->
|
|
39
|
+
<div class="react-container" data-config="/examples/private/rvr.json"></div>
|
|
40
|
+
<!-- <div class="react-container" data-config="/examples/private/chart-t.json"></div> -->
|
|
41
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/additional-column-tooltip.json"></div> -->
|
|
43
42
|
<!-- <div class="react-container" data-config="https://cdc.gov/poxvirus/mpox/modules/data-viz/mpx-trends_1.json"></div> -->
|
|
44
43
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-city-temperature.json"></div> -->
|
|
45
44
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-apple.json"></div> -->
|
|
@@ -48,7 +47,8 @@
|
|
|
48
47
|
<!-- <div class="react-container" data-config="/examples/feature/forest-plot/forest-plot.json"></div> -->
|
|
49
48
|
<!-- <div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div> -->
|
|
50
49
|
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Viz.json></div> -->
|
|
51
|
-
|
|
50
|
+
<div class="react-container" data-config=/examples/feature/regions/index.json></div>
|
|
51
|
+
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
52
52
|
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
53
53
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/forecasting.json"></div> -->
|
|
54
54
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/combo-forecasting.json"></div> -->
|
|
@@ -125,6 +125,8 @@
|
|
|
125
125
|
|
|
126
126
|
<!-- GENERIC CHART TYPES -->
|
|
127
127
|
<!-- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div> -->
|
|
128
|
+
<div class="react-container" data-config="/examples/feature/line/line-chart-preliminary.json"></div>
|
|
129
|
+
|
|
128
130
|
|
|
129
131
|
<!-- HORIZONTAL BAR CHARTS -->
|
|
130
132
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-bar-chart-with-numbers-on-bar.json"></div> -->
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
<!-- VERTICAL BAR CHARTS -->
|
|
135
137
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/combo-line-chart.json"></div> -->
|
|
136
138
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
|
|
137
|
-
<div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div>
|
|
139
|
+
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
|
|
138
140
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
139
141
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
|
|
140
142
|
<!-- <div class="react-container" data-config="https://www.cdc.gov/respiratory-viruses/modules/respiratory-virus-activity/emergency-dept-visits_live.json"></div> -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/chart",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.2",
|
|
4
4
|
"description": "React component for visualizing tabular data in various types of charts",
|
|
5
5
|
"moduleName": "CdcChart",
|
|
6
6
|
"main": "dist/cdcchart",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react": "^18.2.0",
|
|
60
60
|
"react-dom": "^18.2.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "edde49c96dee146de5e3a4537880b1bcf4dbee08",
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"resize-observer-polyfill": "^1.5.1"
|
|
65
65
|
}
|