@cdc/chart 4.22.10 → 4.23.1
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/README.md +5 -5
- package/dist/495.js +3 -0
- package/dist/703.js +1 -0
- package/dist/cdcchart.js +723 -6
- package/examples/age-adjusted-rates.json +1486 -1218
- package/examples/box-plot-data.json +71 -0
- package/examples/box-plot.csv +5 -0
- package/examples/{private/yaxis-test.json → box-plot.json} +46 -54
- package/examples/case-rate-example-config.json +1 -1
- package/examples/covid-confidence-example-config.json +33 -33
- package/examples/covid-example-config.json +34 -34
- package/examples/covid-example-data-confidence.json +30 -30
- package/examples/covid-example-data.json +20 -20
- package/examples/cutoff-example-config.json +36 -36
- package/examples/cutoff-example-data.json +36 -36
- package/examples/date-exclusions-config.json +1 -1
- package/examples/dynamic-legends.json +124 -124
- package/examples/gallery/bar-chart-horizontal/horizontal-bar-chart-with-numbers-on-bar.json +191 -197
- package/examples/gallery/bar-chart-horizontal/horizontal-bar-chart.json +230 -240
- package/examples/gallery/bar-chart-horizontal/horizontal-stacked.json +239 -247
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +138 -136
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json +79 -79
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json +80 -80
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-with-confidence.json +67 -67
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart.json +179 -110
- package/examples/gallery/lollipop/lollipop-style-horizontal.json +215 -219
- package/examples/gallery/paired-bar/paired-bar-chart.json +195 -195
- package/examples/horizontal-chart.json +35 -35
- package/examples/horizontal-stacked-bar-chart.json +34 -34
- package/examples/line-chart.json +75 -75
- package/examples/new-data.csv +17 -0
- package/examples/newdata.json +90 -0
- package/examples/paired-bar-data.json +16 -14
- package/examples/paired-bar-example.json +48 -48
- package/examples/paired-bar-formatted.json +36 -36
- package/examples/planet-chart-horizontal-example-config.json +33 -33
- package/examples/planet-combo-example-config.json +34 -31
- package/examples/planet-example-config.json +35 -33
- package/examples/planet-example-data.json +56 -56
- package/examples/planet-pie-example-config.json +28 -28
- package/examples/stacked-vertical-bar-example.json +1 -1
- package/examples/temp-example-config.json +61 -54
- package/examples/temp-example-data.json +1 -1
- package/package.json +3 -2
- package/src/CdcChart.tsx +449 -434
- package/src/components/BarChart.tsx +383 -497
- package/src/components/BoxPlot.js +92 -0
- package/src/components/DataTable.tsx +182 -197
- package/src/components/EditorPanel.js +1068 -722
- package/src/components/Filters.js +131 -0
- package/src/components/Legend.js +286 -329
- package/src/components/LineChart.tsx +143 -81
- package/src/components/LinearChart.tsx +432 -451
- package/src/components/PairedBarChart.tsx +197 -213
- package/src/components/PieChart.tsx +105 -151
- package/src/components/SparkLine.js +179 -201
- package/src/components/useIntersectionObserver.tsx +19 -20
- package/src/context.tsx +3 -3
- package/src/data/initial-state.js +44 -17
- package/src/hooks/useActiveElement.js +13 -13
- package/src/hooks/useChartClasses.js +34 -28
- package/src/hooks/useColorPalette.ts +56 -63
- package/src/hooks/useLegendClasses.js +18 -10
- package/src/hooks/useReduceData.ts +64 -77
- package/src/hooks/useRightAxis.js +25 -0
- package/src/hooks/useTopAxis.js +6 -0
- package/src/index.html +19 -19
- package/src/index.tsx +13 -16
- package/src/scss/DataTable.scss +6 -5
- package/src/scss/editor-panel.scss +71 -69
- package/src/scss/main.scss +188 -114
- package/src/scss/variables.scss +1 -1
- package/examples/private/line-test-data.json +0 -22
- package/examples/private/line-test-two.json +0 -216
- package/examples/private/line-test.json +0 -102
- package/examples/private/newtest.csv +0 -101
- package/examples/private/shawn.json +0 -1296
- package/examples/private/test.json +0 -10124
- package/examples/private/yaxis-testing.csv +0 -27
- package/examples/private/yaxis.json +0 -28
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"x": "Group 1",
|
|
4
|
+
"min": -3.529439249291613,
|
|
5
|
+
"firstQuartile": 2.498913996933074,
|
|
6
|
+
"median": 6,
|
|
7
|
+
"thirdQuartile": 6.517816161082865,
|
|
8
|
+
"max": 12.546169407307552,
|
|
9
|
+
"outliers": [
|
|
10
|
+
-4.222649440089676,
|
|
11
|
+
-3.7995254226812145,
|
|
12
|
+
12.669680018702707
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"x": "Group 2",
|
|
17
|
+
"min": -2.961278855962981,
|
|
18
|
+
"firstQuartile": 3.1553763355078277,
|
|
19
|
+
"median": 5.31642875968012,
|
|
20
|
+
"thirdQuartile": 7.233146463155033,
|
|
21
|
+
"max": 13.349801654625843,
|
|
22
|
+
"outliers": [
|
|
23
|
+
-4.5962772985737645,
|
|
24
|
+
14.42798091207488,
|
|
25
|
+
14.832072412460995
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"x": "Group 3",
|
|
30
|
+
"min": -0.784362943544294,
|
|
31
|
+
"firstQuartile": 5.600233888319485,
|
|
32
|
+
"median": 7.606034555385235,
|
|
33
|
+
"thirdQuartile": 9.85663177622867,
|
|
34
|
+
"max": 16.24122860809245,
|
|
35
|
+
"outliers": [
|
|
36
|
+
-2.0568265981730285,
|
|
37
|
+
-2.036299998010181,
|
|
38
|
+
-1.634595257757523,
|
|
39
|
+
-0.9751707921193091,
|
|
40
|
+
-0.9256799494292718,
|
|
41
|
+
-0.813852054679872,
|
|
42
|
+
16.255225428689318,
|
|
43
|
+
19.221712546396496
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"x": "Group 4",
|
|
48
|
+
"min": -3.4976011611041598,
|
|
49
|
+
"firstQuartile": 2.362493132101971,
|
|
50
|
+
"median": 4.364242960871863,
|
|
51
|
+
"thirdQuartile": 6.269222660906058,
|
|
52
|
+
"max": 12.129316954112188,
|
|
53
|
+
"outliers": [
|
|
54
|
+
-5.912277243480174,
|
|
55
|
+
-4.535668956980487,
|
|
56
|
+
-4.255719319016919,
|
|
57
|
+
-4.175200716132927,
|
|
58
|
+
-4.1021204775116455,
|
|
59
|
+
-3.7913796362224352,
|
|
60
|
+
-3.6909919981778567,
|
|
61
|
+
-3.6261129831962697,
|
|
62
|
+
12.169135739844744,
|
|
63
|
+
12.1724073804239,
|
|
64
|
+
12.191268834215071,
|
|
65
|
+
12.236896118210165,
|
|
66
|
+
12.34513716605812,
|
|
67
|
+
12.826785108558722,
|
|
68
|
+
13.048968511771164
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
x,min,firstQuartile,median,thirdQuartile,max,outliers
|
|
2
|
+
Group 1,-3.529439249291613,2.498913996933074,6,6.517816161082865,12.546169407307552,-4.222649440089676,-3.7995254226812145,12.669680018702707,,,,,,,,,,,,
|
|
3
|
+
Group 2,-2.961278855962981,3.1553763355078277,5.31642875968012,7.233146463155033,13.349801654625843,-4.5962772985737645,14.42798091207488,14.832072412460995,,,,,,,,,,,,
|
|
4
|
+
Group 3,-0.784362943544294,5.600233888319485,7.606034555385235,9.85663177622867,16.24122860809245,-2.0568265981730285,-2.036299998010181,-1.634595257757523,-0.9751707921193091,-0.9256799494292718,-0.813852054679872,16.255225428689318,19.221712546396496,,,,,,,
|
|
5
|
+
Group 4,-3.4976011611041598,2.362493132101971,4.364242960871863,6.269222660906058,12.129316954112188,-5.912277243480174,-4.535668956980487,-4.255719319016919,-4.175200716132927,-4.1021204775116455,-3.7913796362224352,-3.6909919981778567,-3.6261129831962697,12.169135739844744,12.1724073804239,12.191268834215071,12.236896118210165,12.34513716605812,12.826785108558722,13.048968511771164
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
|
-
"title": "
|
|
3
|
+
"title": "Example Box Plot",
|
|
4
4
|
"theme": "theme-blue",
|
|
5
5
|
"animate": false,
|
|
6
6
|
"fontSize": "medium",
|
|
@@ -18,56 +18,55 @@
|
|
|
18
18
|
"right": 5
|
|
19
19
|
},
|
|
20
20
|
"yAxis": {
|
|
21
|
+
"dataKey": "Value",
|
|
21
22
|
"hideAxis": false,
|
|
22
23
|
"displayNumbersOnBar": false,
|
|
23
24
|
"hideLabel": false,
|
|
24
25
|
"hideTicks": false,
|
|
25
|
-
"size":
|
|
26
|
-
"gridLines":
|
|
26
|
+
"size": 50,
|
|
27
|
+
"gridLines": true,
|
|
27
28
|
"min": "",
|
|
28
29
|
"max": "",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"labelColor": "orange",
|
|
42
|
-
"tickLabelColor": "orange",
|
|
43
|
-
"tickColor": "orange"
|
|
30
|
+
"labelColor": "#333",
|
|
31
|
+
"tickLabelColor": "#333",
|
|
32
|
+
"tickColor": "#333",
|
|
33
|
+
"rightHideAxis": true,
|
|
34
|
+
"rightAxisSize": 50,
|
|
35
|
+
"rightLabelOffsetSize": 0,
|
|
36
|
+
"rightAxisLabelColor": "#333",
|
|
37
|
+
"rightAxisTickLabelColor": "#333",
|
|
38
|
+
"rightAxisTickColor": "#333",
|
|
39
|
+
"isLegendValue": false,
|
|
40
|
+
"numTicks": "",
|
|
41
|
+
"label": "Observations"
|
|
44
42
|
},
|
|
43
|
+
"boxplot": [],
|
|
45
44
|
"topAxis": {
|
|
46
|
-
"hasLine":
|
|
45
|
+
"hasLine": false
|
|
47
46
|
},
|
|
48
47
|
"barThickness": 0.35,
|
|
49
48
|
"barHeight": 25,
|
|
50
49
|
"height": 300,
|
|
51
50
|
"xAxis": {
|
|
52
|
-
"type": "
|
|
51
|
+
"type": "categorical",
|
|
53
52
|
"hideAxis": false,
|
|
54
53
|
"hideLabel": false,
|
|
55
54
|
"hideTicks": false,
|
|
56
|
-
"size":
|
|
57
|
-
"tickRotation":
|
|
55
|
+
"size": 75,
|
|
56
|
+
"tickRotation": 0,
|
|
58
57
|
"min": "",
|
|
59
58
|
"max": "",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
59
|
+
"labelColor": "#333",
|
|
60
|
+
"tickLabelColor": "#333",
|
|
61
|
+
"tickColor": "#333",
|
|
62
|
+
"isLegendValue": false,
|
|
63
|
+
"numTicks": "",
|
|
64
|
+
"dataKey": "Group_Category",
|
|
65
|
+
"label": "Groups"
|
|
67
66
|
},
|
|
68
67
|
"table": {
|
|
69
68
|
"label": "Data Table",
|
|
70
|
-
"expanded":
|
|
69
|
+
"expanded": true,
|
|
71
70
|
"limitHeight": false,
|
|
72
71
|
"height": "",
|
|
73
72
|
"caption": "",
|
|
@@ -77,6 +76,7 @@
|
|
|
77
76
|
"legend": {
|
|
78
77
|
"behavior": "isolate",
|
|
79
78
|
"position": "right",
|
|
79
|
+
"singleRow": false,
|
|
80
80
|
"colorCode": "",
|
|
81
81
|
"reverseLabelOrder": false,
|
|
82
82
|
"description": "",
|
|
@@ -84,21 +84,20 @@
|
|
|
84
84
|
"dynamicLegendDefaultText": "Show All",
|
|
85
85
|
"dynamicLegendItemLimit": 5,
|
|
86
86
|
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
87
|
-
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
88
|
-
"hide": false
|
|
87
|
+
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
89
88
|
},
|
|
90
89
|
"exclusions": {
|
|
91
90
|
"active": false,
|
|
92
91
|
"keys": []
|
|
93
92
|
},
|
|
94
|
-
"palette": "
|
|
93
|
+
"palette": "qualitative1",
|
|
95
94
|
"isPaletteReversed": false,
|
|
96
95
|
"labels": false,
|
|
97
96
|
"dataFormat": {
|
|
98
97
|
"commas": false,
|
|
99
98
|
"prefix": "",
|
|
100
99
|
"suffix": "",
|
|
101
|
-
"
|
|
100
|
+
"useFormat": false
|
|
102
101
|
},
|
|
103
102
|
"confidenceKeys": {},
|
|
104
103
|
"visual": {
|
|
@@ -106,27 +105,20 @@
|
|
|
106
105
|
"accent": true,
|
|
107
106
|
"background": true
|
|
108
107
|
},
|
|
109
|
-
"dataUrl": "/examples/
|
|
110
|
-
"visualizationType": "
|
|
108
|
+
"dataUrl": "/examples/newdata.json",
|
|
109
|
+
"visualizationType": "Box 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"
|
|
117
|
+
},
|
|
111
118
|
"series": [
|
|
112
119
|
{
|
|
113
|
-
"dataKey": "
|
|
114
|
-
"type": "Bar"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"dataKey": "tot_tests_13_17",
|
|
120
|
+
"dataKey": "Value",
|
|
118
121
|
"type": "Bar"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"dataKey": "tot_tests_18_older",
|
|
122
|
-
"type": "Line",
|
|
123
|
-
"axis": "Left"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"dataKey": "0_12_positivity_rate",
|
|
127
|
-
"type": "Line",
|
|
128
|
-
"axis": "Right"
|
|
129
122
|
}
|
|
130
|
-
]
|
|
131
|
-
|
|
132
|
-
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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",
|
|
4
|
+
"visualizationType": "Bar",
|
|
5
|
+
"fontSize": "small",
|
|
6
|
+
"series": [{ "dataKey": "Age-adjusted rate", "label": "Rate" }],
|
|
7
|
+
"confidenceKeys": {
|
|
8
|
+
"lower": "Lower",
|
|
9
|
+
"upper": "Upper"
|
|
10
|
+
},
|
|
11
|
+
"dataFormat": {
|
|
12
|
+
"commas": false,
|
|
13
|
+
"prefix": "Lorem",
|
|
14
|
+
"suffix": "Suffix"
|
|
15
|
+
},
|
|
16
|
+
"padding": {
|
|
17
|
+
"left": 10,
|
|
18
|
+
"right": 10
|
|
19
|
+
},
|
|
20
|
+
"yAxis": {
|
|
21
|
+
"dataKey": "Age-adjusted rate",
|
|
22
|
+
"gridLines": true,
|
|
23
|
+
"numTicks": 3,
|
|
24
|
+
"size": 80
|
|
25
|
+
},
|
|
26
|
+
"xAxis": {
|
|
27
|
+
"dataKey": "Race",
|
|
28
|
+
"tickRotation": 20,
|
|
29
|
+
"size": 130
|
|
30
|
+
},
|
|
31
|
+
"table": {
|
|
32
|
+
"label": "Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity",
|
|
33
|
+
"expanded": true
|
|
34
|
+
}
|
|
35
35
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
"title": "Non Configdence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
|
+
"theme": "theme-brown",
|
|
4
|
+
"dataUrl": "/examples/covid-example-data.json",
|
|
5
|
+
"visualizationType": "Bar",
|
|
6
|
+
"visualizationSubType": "horizontal",
|
|
7
|
+
"series": [{ "dataKey": "Age-adjusted rate" }],
|
|
8
|
+
"barThickness": 0.3,
|
|
9
|
+
"height": 300,
|
|
10
|
+
"dataFormat": {
|
|
11
|
+
"commas": false,
|
|
12
|
+
"prefix": "",
|
|
13
|
+
"suffix": ""
|
|
14
|
+
},
|
|
15
|
+
"padding": {
|
|
16
|
+
"left": 10,
|
|
17
|
+
"right": 10
|
|
18
|
+
},
|
|
19
|
+
"yAxis": {
|
|
20
|
+
"gridLines": false,
|
|
21
|
+
"numTicks": 3
|
|
22
|
+
},
|
|
23
|
+
"xAxis": {
|
|
24
|
+
"dataKey": "Race",
|
|
25
|
+
"size": 20,
|
|
26
|
+
"wrap": true
|
|
27
|
+
},
|
|
28
|
+
"legend": {
|
|
29
|
+
"hide": true
|
|
30
|
+
},
|
|
31
|
+
"table": {
|
|
32
|
+
"label": "Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity",
|
|
33
|
+
"expanded": true,
|
|
34
|
+
"download": true
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
{
|
|
3
|
+
"Race": "Hispanic or Latino",
|
|
4
|
+
"Age-adjusted rate": "644000.2",
|
|
5
|
+
"Lower": "640000.2",
|
|
6
|
+
"Upper": "650000.2"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"Race": "Non-Hispanic Black",
|
|
10
|
+
"Age-adjusted rate": "563000.7",
|
|
11
|
+
"Lower": "560000.2",
|
|
12
|
+
"Upper": "570000.2"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
16
|
+
"Age-adjusted rate": "202000.5",
|
|
17
|
+
"Lower": "200000.2",
|
|
18
|
+
"Upper": "210000.2"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Race": "Non-Hispanic American Indian or Alaska Native",
|
|
22
|
+
"Age-adjusted rate": "636000.1",
|
|
23
|
+
"Lower": "630000.2",
|
|
24
|
+
"Upper": "740000.2"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Race": "Non-Hispanic White",
|
|
28
|
+
"Age-adjusted rate": "183000.6",
|
|
29
|
+
"Lower": "180000.2",
|
|
30
|
+
"Upper": "190000.2"
|
|
31
|
+
}
|
|
32
32
|
]
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
{
|
|
3
|
+
"Race": "Hispanic or Latino",
|
|
4
|
+
"Age-adjusted rate": "644.2"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"Race": "Non-Hispanic American Indian",
|
|
8
|
+
"Age-adjusted rate": "636.1"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"Race": "Non-Hispanic Black",
|
|
12
|
+
"Age-adjusted rate": "563.7"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"Race": "Non-Hispanic Asian or Pacific Islander",
|
|
16
|
+
"Age-adjusted rate": "202.5"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"Race": "Non-Hispanic White",
|
|
20
|
+
"Age-adjusted rate": "183.6"
|
|
21
|
+
}
|
|
22
22
|
]
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"title": "Data Cutoff Example (< 0.1)",
|
|
3
|
+
"theme": "theme-blue",
|
|
4
|
+
"dataUrl": "/examples/cutoff-example-data.json",
|
|
5
|
+
"animate": true,
|
|
6
|
+
"animateReplay": true,
|
|
7
|
+
"visualizationType": "Line",
|
|
8
|
+
"series": [{ "dataKey": "Value" }],
|
|
9
|
+
"barThickness": 0.3,
|
|
10
|
+
"height": 300,
|
|
11
|
+
"dataCutoff": "0.1",
|
|
12
|
+
"dataFormat": {
|
|
13
|
+
"commas": false,
|
|
14
|
+
"prefix": "",
|
|
15
|
+
"suffix": ""
|
|
16
|
+
},
|
|
17
|
+
"padding": {
|
|
18
|
+
"left": 10,
|
|
19
|
+
"right": 10
|
|
20
|
+
},
|
|
21
|
+
"yAxis": {
|
|
22
|
+
"label": "Value",
|
|
23
|
+
"gridLines": false,
|
|
24
|
+
"size": 70
|
|
25
|
+
},
|
|
26
|
+
"xAxis": {
|
|
27
|
+
"label": "Category",
|
|
28
|
+
"dataKey": "Category"
|
|
29
|
+
},
|
|
30
|
+
"legend": {
|
|
31
|
+
"hide": true
|
|
32
|
+
},
|
|
33
|
+
"table": {
|
|
34
|
+
"label": "Data Table",
|
|
35
|
+
"expanded": true,
|
|
36
|
+
"download": true
|
|
37
|
+
}
|
|
38
38
|
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
{
|
|
3
|
+
"Category": "Category 1",
|
|
4
|
+
"Value": "0.05"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"Category": "Category 2",
|
|
8
|
+
"Value": "0.1"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"Category": "Category 3",
|
|
12
|
+
"Value": "0.2"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"Category": "Category 4",
|
|
16
|
+
"Value": "0.4"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"Category": "Category 5",
|
|
20
|
+
"Value": "0.3"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"Category": "Category 6",
|
|
24
|
+
"Value": null
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"Category": "Category 7",
|
|
28
|
+
"Value": "0.5"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"Category": "Category 8",
|
|
32
|
+
"Value": "0.5"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"Category": "Category 9",
|
|
36
|
+
"Value": "0.08"
|
|
37
|
+
}
|
|
38
38
|
]
|