@cdc/chart 4.23.3 → 4.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdcchart.js +24397 -24193
- package/examples/feature/__data__/area-chart.json +56 -0
- package/examples/{planet-example-data.json → feature/__data__/planet-example-data.json} +16 -4
- package/examples/{area-chart.json → feature/area/area-chart.json} +70 -13
- package/examples/{horizontal-chart-max-increase.json → feature/bar/horizontal-chart-max-increase.json} +10 -4
- package/examples/{horizontal-chart.json → feature/bar/horizontal-chart.json} +10 -4
- package/examples/{horizontal-stacked-bar-chart.json → feature/bar/horizontal-stacked-bar-chart.json} +7 -3
- package/examples/{planet-chart-horizontal-example-config.json → feature/bar/planet-chart-horizontal-example-config.json} +8 -3
- package/examples/{planet-example-config.json → feature/bar/planet-example-config.json} +2 -2
- package/examples/{box-plot.json → feature/boxplot/boxplot.json} +7 -7
- package/examples/feature/boxplot/testing.csv +38 -0
- package/examples/feature/combo/combochart-categories_are_numbers .json +18 -0
- package/examples/{planet-combo-example-config.json → feature/combo/planet-combo-example-config.json} +1 -1
- package/examples/{planet-deviation-config.json → feature/deviation/planet-deviation-config.json} +2 -2
- package/examples/{planet-deviation-data.json → feature/deviation/planet-deviation-data.json} +9 -9
- package/examples/feature/filters/filter-testing.json +178 -0
- package/examples/feature/forecasting/case_date_example.csv +130 -0
- package/examples/feature/forecasting/effective_reproduction.json +202 -0
- package/examples/feature/forecasting/r_data.csv +130 -0
- package/examples/feature/line/line-chart.json +124 -0
- package/examples/{paired-bar-example.json → feature/paired-bar/paired-bar-example.json} +10 -4
- package/examples/{planet-pie-example-config.json → feature/pie/planet-pie-example-config.json} +2 -2
- package/examples/{scatterplot.json → feature/scatterplot/scatterplot.json} +1 -1
- package/examples/{case-rate-example-config.json → feature/tests-case-rate/case-rate-example-config.json} +2 -2
- package/examples/{covid-confidence-example-config.json → feature/tests-covid/covid-confidence-example-config.json} +8 -3
- package/examples/{covid-example-config.json → feature/tests-covid/covid-example-config.json} +7 -3
- package/examples/{cutoff-example-config.json → feature/tests-cutoff/cutoff-example-config.json} +7 -3
- package/examples/{date-exclusions-config.json → feature/tests-date-exclusions/date-exclusions-config.json} +2 -2
- package/examples/{example-bar-chart-nonnumeric.json → feature/tests-non-numerics/example-bar-chart-nonnumeric.json} +1 -1
- package/examples/{planet-pie-example-config-nonnumeric.json → feature/tests-non-numerics/planet-pie-example-config-nonnumeric.json} +2 -2
- package/examples/{sparkline-chart-nonnumeric.json → feature/tests-non-numerics/sparkline-chart-nonnumeric.json} +1 -1
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +145 -7
- package/examples/gallery/paired-bar/paired-bar-chart.json +1 -0
- package/index.html +73 -49
- package/package.json +2 -2
- package/src/CdcChart.jsx +111 -26
- package/src/components/AreaChart.jsx +105 -70
- package/src/components/BarChart.jsx +45 -28
- package/src/components/BoxPlot.jsx +28 -20
- package/src/components/DataTable.jsx +7 -6
- package/src/components/DeviationBar.jsx +2 -2
- package/src/components/EditorPanel.jsx +252 -193
- package/src/components/Legend.jsx +1 -1
- package/src/components/LineChart.jsx +10 -16
- package/src/components/LinearChart.jsx +30 -34
- package/src/components/PairedBarChart.jsx +6 -6
- package/src/components/PieChart.jsx +2 -4
- package/src/components/SparkLine.jsx +6 -42
- package/src/data/initial-state.js +7 -3
- package/src/index.jsx +2 -1
- package/src/scss/editor-panel.scss +15 -0
- package/src/scss/main.scss +8 -6
- package/examples/box-plot.csv +0 -5
- package/examples/dynamic-legends.json +0 -125
- package/examples/line-chart.json +0 -34
- package/examples/temp-example-config.json +0 -64
- package/examples/temp-example-data.json +0 -130
- package/src/components/Filters.jsx +0 -126
- /package/examples/{age-adjusted-rates.json → feature/__data__/age-adjusted-rates.json} +0 -0
- /package/examples/{new-data.csv → feature/__data__/new-data.csv} +0 -0
- /package/examples/{planet-example-data-max-increase.json → feature/__data__/planet-example-data-max-increase.json} +0 -0
- /package/examples/{Barchart_with_negative.json → feature/bar/Barchart_with_negative.json} +0 -0
- /package/examples/{example-bar-chart.json → feature/bar/example-bar-chart.json} +0 -0
- /package/examples/{stacked-vertical-bar-example-negative.json → feature/bar/stacked-vertical-bar-example-negative.json} +0 -0
- /package/examples/{stacked-vertical-bar-example.json → feature/bar/stacked-vertical-bar-example.json} +0 -0
- /package/examples/{box-plot-data.json → feature/boxplot/box-plot-data.json} +0 -0
- /package/examples/{newdata.json → feature/boxplot/boxplot-data.json} +0 -0
- /package/examples/{line-chart-max-increase.json → feature/line/line-chart-max-increase.json} +0 -0
- /package/examples/{paired-bar-data.json → feature/paired-bar/paired-bar-data.json} +0 -0
- /package/examples/{paired-bar-formatted.json → feature/paired-bar/paired-bar-formatted.json} +0 -0
- /package/examples/{scatterplot-continuous.csv → feature/scatterplot/scatterplot-continuous.csv} +0 -0
- /package/examples/{example-sparkline.json → feature/sparkline/example-sparkline.json} +0 -0
- /package/examples/{big-small-test-bar.json → feature/tests-big-small/big-small-test-bar.json} +0 -0
- /package/examples/{big-small-test-line.json → feature/tests-big-small/big-small-test-line.json} +0 -0
- /package/examples/{big-small-test-negative.json → feature/tests-big-small/big-small-test-negative.json} +0 -0
- /package/examples/{case-rate-example-data.json → feature/tests-case-rate/case-rate-example-data.json} +0 -0
- /package/examples/{covid-example-data-confidence.json → feature/tests-covid/covid-example-data-confidence.json} +0 -0
- /package/examples/{covid-example-data.json → feature/tests-covid/covid-example-data.json} +0 -0
- /package/examples/{cutoff-example-data.json → feature/tests-cutoff/cutoff-example-data.json} +0 -0
- /package/examples/{date-exclusions-data.json → feature/tests-date-exclusions/date-exclusions-data.json} +0 -0
- /package/examples/{example-combo-bar-nonnumeric.json → feature/tests-non-numerics/example-combo-bar-nonnumeric.json} +0 -0
- /package/examples/{line-chart-nonnumeric.json → feature/tests-non-numerics/line-chart-nonnumeric.json} +0 -0
- /package/examples/{planet-example-data-nonnumeric.json → feature/tests-non-numerics/planet-example-data-nonnumeric.json} +0 -0
- /package/examples/{stacked-vertical-bar-example-nonnumerics.json → feature/tests-non-numerics/stacked-vertical-bar-example-nonnumerics.json} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Case Rate Data",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/case-rate-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-case-rate/case-rate-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
7
|
"series": [],
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"expanded": true,
|
|
34
34
|
"download": true
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Confidence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
|
-
"dataUrl": "/examples/covid-example-data-confidence.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-covid/covid-example-data-confidence.json",
|
|
4
4
|
"visualizationType": "Bar",
|
|
5
5
|
"fontSize": "small",
|
|
6
|
-
"series": [
|
|
6
|
+
"series": [
|
|
7
|
+
{
|
|
8
|
+
"dataKey": "Age-adjusted rate",
|
|
9
|
+
"label": "Rate"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
7
12
|
"confidenceKeys": {
|
|
8
13
|
"lower": "Lower",
|
|
9
14
|
"upper": "Upper"
|
|
@@ -32,4 +37,4 @@
|
|
|
32
37
|
"label": "Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity",
|
|
33
38
|
"expanded": true
|
|
34
39
|
}
|
|
35
|
-
}
|
|
40
|
+
}
|
package/examples/{covid-example-config.json → feature/tests-covid/covid-example-config.json}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Non Configdence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
3
|
"theme": "theme-brown",
|
|
4
|
-
"dataUrl": "/examples/covid-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-covid/covid-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
|
-
"series": [
|
|
7
|
+
"series": [
|
|
8
|
+
{
|
|
9
|
+
"dataKey": "Age-adjusted rate"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
8
12
|
"barThickness": 0.3,
|
|
9
13
|
"height": 300,
|
|
10
14
|
"dataFormat": {
|
|
@@ -33,4 +37,4 @@
|
|
|
33
37
|
"expanded": true,
|
|
34
38
|
"download": true
|
|
35
39
|
}
|
|
36
|
-
}
|
|
40
|
+
}
|
package/examples/{cutoff-example-config.json → feature/tests-cutoff/cutoff-example-config.json}
RENAMED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Data Cutoff Example (< 0.1)",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/cutoff-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-cutoff/cutoff-example-data.json",
|
|
5
5
|
"animate": true,
|
|
6
6
|
"animateReplay": true,
|
|
7
7
|
"visualizationType": "Line",
|
|
8
|
-
"series": [
|
|
8
|
+
"series": [
|
|
9
|
+
{
|
|
10
|
+
"dataKey": "Value"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
9
13
|
"barThickness": 0.3,
|
|
10
14
|
"height": 300,
|
|
11
15
|
"dataCutoff": "0.1",
|
|
@@ -35,4 +39,4 @@
|
|
|
35
39
|
"expanded": true,
|
|
36
40
|
"download": true
|
|
37
41
|
}
|
|
38
|
-
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "",
|
|
3
|
-
"dataUrl": "/examples/date-exclusions-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-date-exclusions/date-exclusions-data.json",
|
|
4
4
|
"type": "chart",
|
|
5
5
|
"theme": "theme-blue",
|
|
6
6
|
"fontSize": "medium",
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"type": "Bar"
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
|
-
}
|
|
62
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dataFormat": { "suffix": " units" },
|
|
16
16
|
"confidenceKeys": {},
|
|
17
17
|
"data": [
|
|
18
|
-
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "
|
|
18
|
+
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "$1,000", "Data 4": "95", "Data 5": "120", "Data 6": "310" },
|
|
19
19
|
{ "Date": "2/15/2016", "Data 1": "NA", "Data 2": "90.3", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" },
|
|
20
20
|
{ "Date": "3/15/2016", "Data 1": "50", "Data 2": "booo", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" },
|
|
21
21
|
{ "Date": "4/15/2016", "Data 1": "", "Data 2": "160", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Pie Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data-nonnumeric.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-non-numerics/planet-example-data-nonnumeric.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
6
|
"visualizationType": "Pie",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"label": "Data Table",
|
|
28
28
|
"expanded": false
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -1,47 +1,166 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
3
|
"title": "Combo Bar-Line Chart",
|
|
4
|
+
"showTitle": true,
|
|
4
5
|
"theme": "theme-purple",
|
|
5
|
-
"fontSize": "medium",
|
|
6
|
-
"height": "332",
|
|
7
6
|
"animate": true,
|
|
7
|
+
"fontSize": "medium",
|
|
8
|
+
"lineDatapointStyle": "hover",
|
|
9
|
+
"barHasBorder": "false",
|
|
10
|
+
"isLollipopChart": false,
|
|
11
|
+
"lollipopShape": "circle",
|
|
12
|
+
"lollipopColorStyle": "two-tone",
|
|
13
|
+
"visualizationSubType": "regular",
|
|
14
|
+
"barStyle": "",
|
|
15
|
+
"roundingStyle": "standard",
|
|
16
|
+
"tipRounding": "top",
|
|
8
17
|
"padding": {
|
|
9
18
|
"left": 5,
|
|
10
19
|
"right": 5
|
|
11
20
|
},
|
|
12
21
|
"yAxis": {
|
|
22
|
+
"hideAxis": false,
|
|
23
|
+
"displayNumbersOnBar": false,
|
|
24
|
+
"hideLabel": false,
|
|
25
|
+
"hideTicks": false,
|
|
13
26
|
"size": "68",
|
|
14
27
|
"gridLines": true,
|
|
28
|
+
"enablePadding": false,
|
|
29
|
+
"min": "",
|
|
30
|
+
"max": "",
|
|
31
|
+
"labelColor": "#333",
|
|
32
|
+
"tickLabelColor": "#333",
|
|
33
|
+
"tickColor": "#333",
|
|
34
|
+
"rightHideAxis": true,
|
|
35
|
+
"rightAxisSize": 50,
|
|
36
|
+
"rightLabel": "",
|
|
37
|
+
"rightLabelOffsetSize": 0,
|
|
38
|
+
"rightAxisLabelColor": "#333",
|
|
39
|
+
"rightAxisTickLabelColor": "#333",
|
|
40
|
+
"rightAxisTickColor": "#333",
|
|
41
|
+
"numTicks": "",
|
|
42
|
+
"axisPadding": 0,
|
|
43
|
+
"tickRotation": 0,
|
|
15
44
|
"label": "Y-Axis Label Example"
|
|
16
45
|
},
|
|
46
|
+
"boxplot": {
|
|
47
|
+
"plots": [],
|
|
48
|
+
"borders": "true",
|
|
49
|
+
"firstQuartilePercentage": 25,
|
|
50
|
+
"thirdQuartilePercentage": 75,
|
|
51
|
+
"boxWidthPercentage": 40,
|
|
52
|
+
"plotOutlierValues": false,
|
|
53
|
+
"plotNonOutlierValues": true,
|
|
54
|
+
"legend": {
|
|
55
|
+
"showHowToReadText": false,
|
|
56
|
+
"howToReadText": ""
|
|
57
|
+
},
|
|
58
|
+
"labels": {
|
|
59
|
+
"q1": "Lower Quartile",
|
|
60
|
+
"q2": "q2",
|
|
61
|
+
"q3": "Upper Quartile",
|
|
62
|
+
"q4": "q4",
|
|
63
|
+
"minimum": "Minimum",
|
|
64
|
+
"maximum": "Maximum",
|
|
65
|
+
"mean": "Mean",
|
|
66
|
+
"median": "Median",
|
|
67
|
+
"sd": "Standard Deviation",
|
|
68
|
+
"iqr": "Interquartile Range",
|
|
69
|
+
"total": "Total",
|
|
70
|
+
"outliers": "Outliers",
|
|
71
|
+
"values": "Values"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"topAxis": {
|
|
75
|
+
"hasLine": false
|
|
76
|
+
},
|
|
77
|
+
"isLegendValue": false,
|
|
17
78
|
"barThickness": 0.35,
|
|
79
|
+
"barHeight": 25,
|
|
80
|
+
"barSpace": 15,
|
|
81
|
+
"heights": {
|
|
82
|
+
"vertical": 300,
|
|
83
|
+
"horizontal": 750
|
|
84
|
+
},
|
|
18
85
|
"xAxis": {
|
|
86
|
+
"type": "date",
|
|
87
|
+
"showTargetLabel": true,
|
|
88
|
+
"targetLabel": "Target",
|
|
89
|
+
"hideAxis": false,
|
|
90
|
+
"hideLabel": false,
|
|
91
|
+
"hideTicks": false,
|
|
19
92
|
"size": "78",
|
|
20
93
|
"tickRotation": "25",
|
|
94
|
+
"min": "",
|
|
95
|
+
"max": "",
|
|
96
|
+
"labelColor": "#333",
|
|
97
|
+
"tickLabelColor": "#333",
|
|
98
|
+
"tickColor": "#333",
|
|
99
|
+
"numTicks": "",
|
|
100
|
+
"labelOffset": 65,
|
|
101
|
+
"axisPadding": 0,
|
|
102
|
+
"target": 0,
|
|
21
103
|
"dataKey": "Date",
|
|
22
104
|
"label": "X-Axis Example Label",
|
|
23
|
-
"type": "date",
|
|
24
105
|
"dateParseFormat": "%d/%m/%Y",
|
|
25
106
|
"dateDisplayFormat": "%d/%m/%Y"
|
|
26
107
|
},
|
|
27
108
|
"table": {
|
|
28
109
|
"label": "Data Table",
|
|
29
110
|
"expanded": true,
|
|
30
|
-
"
|
|
111
|
+
"limitHeight": false,
|
|
112
|
+
"height": "",
|
|
113
|
+
"caption": "",
|
|
114
|
+
"showDownloadUrl": false,
|
|
115
|
+
"download": true,
|
|
116
|
+
"show": true
|
|
31
117
|
},
|
|
118
|
+
"orientation": "vertical",
|
|
32
119
|
"legend": {
|
|
33
120
|
"behavior": "highlight",
|
|
121
|
+
"singleRow": false,
|
|
122
|
+
"colorCode": "",
|
|
123
|
+
"reverseLabelOrder": false,
|
|
124
|
+
"description": "",
|
|
125
|
+
"dynamicLegend": false,
|
|
126
|
+
"dynamicLegendDefaultText": "Show All",
|
|
127
|
+
"dynamicLegendItemLimit": 5,
|
|
128
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
129
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
34
130
|
"position": "right",
|
|
35
131
|
"label": "Data Type"
|
|
36
132
|
},
|
|
133
|
+
"exclusions": {
|
|
134
|
+
"active": false,
|
|
135
|
+
"keys": []
|
|
136
|
+
},
|
|
37
137
|
"palette": "qualitative-soft",
|
|
138
|
+
"isPaletteReversed": false,
|
|
139
|
+
"twoColor": {
|
|
140
|
+
"palette": "monochrome-1",
|
|
141
|
+
"isPaletteReversed": false
|
|
142
|
+
},
|
|
38
143
|
"labels": false,
|
|
39
|
-
"dataFormat": {
|
|
144
|
+
"dataFormat": {
|
|
145
|
+
"commas": false,
|
|
146
|
+
"prefix": "",
|
|
147
|
+
"suffix": "",
|
|
148
|
+
"abbreviated": false,
|
|
149
|
+
"bottomSuffix": "",
|
|
150
|
+
"bottomPrefix": "",
|
|
151
|
+
"bottomAbbreviated": false
|
|
152
|
+
},
|
|
40
153
|
"confidenceKeys": {},
|
|
154
|
+
"visual": {
|
|
155
|
+
"border": true,
|
|
156
|
+
"accent": true,
|
|
157
|
+
"background": true
|
|
158
|
+
},
|
|
159
|
+
"height": "332",
|
|
41
160
|
"data": [
|
|
42
161
|
{
|
|
43
162
|
"Date": "1/15/2016",
|
|
44
|
-
"Data 1": "
|
|
163
|
+
"Data 1": "$1,000",
|
|
45
164
|
"Data 2": "110",
|
|
46
165
|
"Data 3": "100",
|
|
47
166
|
"Data 4": "90",
|
|
@@ -135,5 +254,24 @@
|
|
|
135
254
|
"type": "dashed-md",
|
|
136
255
|
"axis": "Left"
|
|
137
256
|
}
|
|
257
|
+
],
|
|
258
|
+
"filters": [
|
|
259
|
+
{
|
|
260
|
+
"values": [
|
|
261
|
+
"1/15/2016",
|
|
262
|
+
"2/15/2016",
|
|
263
|
+
"3/15/2016",
|
|
264
|
+
"4/15/2016",
|
|
265
|
+
"5/15/2016",
|
|
266
|
+
"6/15/2016",
|
|
267
|
+
"7/15/2016",
|
|
268
|
+
"8/15/2016",
|
|
269
|
+
"9/15/2016"
|
|
270
|
+
],
|
|
271
|
+
"active": "1/15/2016",
|
|
272
|
+
"order": "asc",
|
|
273
|
+
"columnName": "Date",
|
|
274
|
+
"filterBehavior": "dropdown"
|
|
275
|
+
}
|
|
138
276
|
]
|
|
139
|
-
}
|
|
277
|
+
}
|
package/index.html
CHANGED
|
@@ -20,44 +20,78 @@
|
|
|
20
20
|
</head>
|
|
21
21
|
|
|
22
22
|
<body>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<!--
|
|
37
|
-
<!-- <div class="react-container" data-config="/examples/example-
|
|
38
|
-
|
|
39
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
40
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
41
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
42
|
-
<!--
|
|
43
|
-
|
|
44
|
-
<div class="react-container" data-config="/examples/
|
|
45
|
-
|
|
46
|
-
<!--
|
|
47
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
48
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
49
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
50
|
-
<!-- <div class="react-container" data-config="/examples/horizontal-chart-max-increase.json"></div> -->
|
|
51
|
-
|
|
52
|
-
<!--
|
|
53
|
-
<!-- <div class="react-container" data-config="/examples/planet-
|
|
54
|
-
|
|
55
|
-
<!--
|
|
56
|
-
<!-- <div class="react-container" data-config="/examples/example-
|
|
57
|
-
|
|
58
|
-
<!--
|
|
59
|
-
|
|
60
|
-
|
|
23
|
+
|
|
24
|
+
<!--
|
|
25
|
+
EXAMPLES:
|
|
26
|
+
chart/examples/features: different chart types and tests
|
|
27
|
+
chart/examples/private: an ignored git folder used for addl. troubleshooting.
|
|
28
|
+
chart/examples/gallery: examples pulled from the cdc data visualization gallery
|
|
29
|
+
chart/examples/__data__: a folder for storing re-usable fictional datasets
|
|
30
|
+
|
|
31
|
+
GALLERY EXAMPLES ARE FOUND HERE:
|
|
32
|
+
https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-data-map-cities-states.html
|
|
33
|
+
|
|
34
|
+
-->
|
|
35
|
+
|
|
36
|
+
<!-- GENERIC CHART TYPES -->
|
|
37
|
+
<!-- <div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div> -->
|
|
38
|
+
<div class="react-container" data-config="/examples/feature/line/line-chart.json"></div>
|
|
39
|
+
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart.json"></div> -->
|
|
40
|
+
<!-- <div class="react-container" data-config="/examples/feature/scatterplot/scatterplot.json"></div> -->
|
|
41
|
+
<!-- <div class="react-container" data-config="/examples/feature/deviation/planet-deviation-config.json"></div> -->
|
|
42
|
+
<!-- <div class="react-container" data-config="/examples/feature/boxplot/boxplot.json"></div> -->
|
|
43
|
+
<!-- <div class="react-container" data-config="/examples/feature/combo/planet-combo-example-config.json"></div> -->
|
|
44
|
+
<!-- <div class="react-container" data-config="/examples/feature/paired-bar/paired-bar-example.json"></div> -->
|
|
45
|
+
|
|
46
|
+
<!-- BAR -->
|
|
47
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-example-config.json"></div> -->
|
|
48
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-chart-horizontal-example-config.json"></div> -->
|
|
49
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/example-bar-chart.json"></div> -->
|
|
50
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-chart-max-increase.json"></div> -->
|
|
51
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-chart.json"></div> -->
|
|
52
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/horizontal-stacked-bar-chart.json"></div> -->
|
|
53
|
+
<!-- <div class="react-container" data-config="/examples/feature/bar/planet-chart-horizontal-example-config.json"></div> -->
|
|
54
|
+
|
|
55
|
+
<!-- SPARKLINE -->
|
|
56
|
+
<!-- <div class="react-container" data-config="/examples/feature/sparkline/example-sparkline.json"></div> -->
|
|
57
|
+
|
|
58
|
+
<!-- TESTS FILTERS -->
|
|
59
|
+
<!-- <div class="react-container" data-config="/examples/feature/filters/filter-testing.json"></div> -->
|
|
60
|
+
<!-- <div class="react-container" data-config="/examples/private/dev-bar.json"></div> -->
|
|
61
|
+
|
|
62
|
+
<!-- TESTS DATE EXCLUSIONS -->
|
|
63
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-date-exclusions/date-exclusions-config.json"></div> -->
|
|
64
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-case-rate/case-rate-example-config.json"></div> -->
|
|
65
|
+
|
|
66
|
+
<!-- TESTS BIG SMALL-->
|
|
67
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-big-small/big-small-test-line.json"></div> -->
|
|
68
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-big-small/big-small-test-bar.json"></div> -->
|
|
69
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-big-small/big-small-test-negative.json"></div> -->
|
|
70
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-big-small/line-chart-max-increase.json"></div> -->
|
|
71
|
+
|
|
72
|
+
<!-- TESTS NONNUMERICS -->
|
|
73
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/planet-pie-example-config-nonnumeric.json"></div> -->
|
|
74
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/example-combo-bar-nonnumeric.json"></div> -->
|
|
75
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/example-bar-chart-nonnumeric.json"></div> -->
|
|
76
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/sparkline-chart-nonnumeric.json"></div> -->
|
|
77
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-non-numerics/stacked-vertical-bar-example-nonnumerics.json"></div> -->
|
|
78
|
+
|
|
79
|
+
<!-- TESTS CUTOFF -->
|
|
80
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-cutoff/cutoff-example-config.json"></div> -->
|
|
81
|
+
|
|
82
|
+
<!-- TESTS COVID -->
|
|
83
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-covid/covid-confidence-example-config.json"></div> -->
|
|
84
|
+
<!-- <div class="react-container" data-config="/examples/feature/tests-covid/covid-example-config.json"></div> -->
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
<!--
|
|
88
|
+
GALLERY EXAMPLES BELOW THIS LINE...
|
|
89
|
+
https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-data-map-cities-states.html
|
|
90
|
+
|
|
91
|
+
-->
|
|
92
|
+
|
|
93
|
+
<!-- GENERIC CHART TYPES -->
|
|
94
|
+
<!-- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div> -->
|
|
61
95
|
|
|
62
96
|
<!-- HORIZONTAL BAR CHARTS -->
|
|
63
97
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-bar-chart-with-numbers-on-bar.json"></div> -->
|
|
@@ -65,23 +99,13 @@
|
|
|
65
99
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-stacked.json"></div> -->
|
|
66
100
|
|
|
67
101
|
<!-- VERTICAL BAR CHARTS -->
|
|
68
|
-
|
|
102
|
+
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/combo-line-chart.json"></div> -->
|
|
69
103
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
|
|
70
104
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
|
|
71
|
-
<!-- <div class="react-container" data-config="/examples/stacked-vertical-bar-example-nonnumerics.json"></div> -->
|
|
72
105
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
73
106
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
74
107
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
|
|
75
108
|
|
|
76
|
-
<!-- <div class="react-container" data-config="/examples/area-chart.json"></div> -->
|
|
77
|
-
<!-- <div class="react-container" data-config="/examples/scatterplot.json"></div> -->
|
|
78
|
-
<!-- <div class="react-container" data-config="/examples/box-plot.json"></div> -->
|
|
79
|
-
<!-- Paired bar Chart -->
|
|
80
|
-
<!-- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div> -->
|
|
81
|
-
|
|
82
|
-
<!-- Deviation Bar Chart -->
|
|
83
|
-
<!-- <div class="react-container" data-config="/examples/planet-deviation-config.json"></div> -->
|
|
84
|
-
|
|
85
109
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
86
110
|
</body>
|
|
87
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/chart",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "React component for visualizing tabular data in various types of charts",
|
|
5
5
|
"moduleName": "CdcChart",
|
|
6
6
|
"main": "dist/cdcchart",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "dcd395d76f70b2d113f2b4c6fe50a52522655cd1",
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"resize-observer-polyfill": "^1.5.1"
|
|
63
63
|
}
|