@cdc/chart 4.22.11 → 4.23.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 +54569 -16
- package/examples/Barchart_with_negative.json +34 -0
- package/examples/box-plot-data.json +71 -0
- package/examples/box-plot.csv +5 -0
- package/examples/box-plot.json +124 -0
- package/examples/dynamic-legends.json +1 -1
- package/examples/example-bar-chart-nonnumeric.json +36 -0
- package/examples/example-bar-chart.json +33 -0
- package/examples/example-combo-bar-nonnumeric.json +105 -0
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +3 -1
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json +1 -1
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart.json +86 -17
- package/examples/gallery/paired-bar/paired-bar-chart.json +65 -13
- package/examples/line-chart-nonnumeric.json +32 -0
- package/examples/line-chart.json +21 -63
- package/examples/new-data.csv +17 -0
- package/examples/newdata.json +90 -0
- package/examples/planet-combo-example-config.json +143 -20
- package/examples/planet-example-data-nonnumeric.json +56 -0
- package/examples/planet-example-data.json +2 -2
- package/examples/planet-pie-example-config-nonnumeric.json +30 -0
- package/examples/scatterplot-continuous.csv +17 -0
- package/examples/{private/yaxis-test.json → scatterplot.json} +53 -50
- package/examples/sparkline-chart-nonnumeric.json +76 -0
- package/examples/stacked-vertical-bar-example-negative.json +154 -0
- package/examples/stacked-vertical-bar-example-nonnumerics.json +154 -0
- package/{src/index.html → index.html} +18 -11
- package/package.json +29 -22
- package/src/{CdcChart.tsx → CdcChart.jsx} +193 -119
- package/src/components/BarChart.jsx +517 -0
- package/src/components/BoxPlot.jsx +88 -0
- package/src/components/{DataTable.tsx → DataTable.jsx} +125 -32
- package/src/components/{EditorPanel.js → EditorPanel.jsx} +376 -115
- package/src/components/Filters.jsx +125 -0
- package/src/components/Legend.jsx +303 -0
- package/src/components/{LineChart.tsx → LineChart.jsx} +87 -22
- package/src/components/{LinearChart.tsx → LinearChart.jsx} +172 -113
- package/src/components/{PairedBarChart.tsx → PairedBarChart.jsx} +46 -79
- package/src/components/{PieChart.tsx → PieChart.jsx} +29 -34
- package/src/components/ScatterPlot.jsx +48 -0
- package/src/components/{SparkLine.js → SparkLine.jsx} +49 -18
- package/src/components/useIntersectionObserver.jsx +29 -0
- package/src/data/initial-state.js +44 -8
- package/src/hooks/{useColorPalette.ts → useColorPalette.js} +10 -28
- package/src/hooks/{useReduceData.ts → useReduceData.js} +27 -13
- package/src/hooks/useRightAxis.js +3 -1
- package/src/index.jsx +16 -0
- package/src/scss/DataTable.scss +23 -1
- package/src/scss/main.scss +83 -32
- package/vite.config.js +4 -0
- package/examples/private/filters.json +0 -170
- package/examples/private/line-test-data.json +0 -22
- package/examples/private/line-test-two.json +0 -210
- package/examples/private/line-test.json +0 -102
- package/examples/private/new.json +0 -48800
- package/examples/private/newtest.csv +0 -101
- package/examples/private/shawn.json +0 -1106
- package/examples/private/test.json +0 -10124
- package/examples/private/yaxis-testing.csv +0 -27
- package/examples/private/yaxis.json +0 -28
- package/src/components/BarChart.tsx +0 -579
- package/src/components/Legend.js +0 -284
- package/src/components/useIntersectionObserver.tsx +0 -27
- package/src/index.tsx +0 -18
- /package/src/{context.tsx → ConfigContext.jsx} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
x,y1,y2,y3,y4
|
|
2
|
+
1,8,37,72,82
|
|
3
|
+
2,2,30,75,83
|
|
4
|
+
3,15,42,51,95
|
|
5
|
+
4,10,38,61,96
|
|
6
|
+
5,1,38,66,86
|
|
7
|
+
60,6,37,70,85
|
|
8
|
+
10,19,47,59,91
|
|
9
|
+
24,18,32,68,89
|
|
10
|
+
3,7,38,74,89
|
|
11
|
+
26,10,39,56,91
|
|
12
|
+
42,16,38,55,76
|
|
13
|
+
32,20,46,52,94
|
|
14
|
+
11,9,41,57,86
|
|
15
|
+
22,10,47,56,80
|
|
16
|
+
73,1,36,71,94
|
|
17
|
+
23,13,30,66,78
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
|
-
"title": "
|
|
3
|
+
"title": "Scatter Plot",
|
|
4
4
|
"theme": "theme-blue",
|
|
5
5
|
"animate": false,
|
|
6
6
|
"fontSize": "medium",
|
|
@@ -18,55 +18,55 @@
|
|
|
18
18
|
"right": 5
|
|
19
19
|
},
|
|
20
20
|
"yAxis": {
|
|
21
|
+
"dataKey": "y",
|
|
21
22
|
"hideAxis": false,
|
|
22
23
|
"displayNumbersOnBar": false,
|
|
23
24
|
"hideLabel": false,
|
|
24
25
|
"hideTicks": false,
|
|
25
|
-
"
|
|
26
|
+
"size": 50,
|
|
27
|
+
"gridLines": true,
|
|
26
28
|
"min": "",
|
|
27
29
|
"max": "",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"labelColor": "orange",
|
|
41
|
-
"tickLabelColor": "orange",
|
|
42
|
-
"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": "Y Axis"
|
|
43
42
|
},
|
|
43
|
+
"boxplot": [],
|
|
44
44
|
"topAxis": {
|
|
45
|
-
"hasLine":
|
|
45
|
+
"hasLine": false
|
|
46
46
|
},
|
|
47
47
|
"barThickness": 0.35,
|
|
48
48
|
"barHeight": 25,
|
|
49
49
|
"height": 300,
|
|
50
50
|
"xAxis": {
|
|
51
|
-
"type": "
|
|
51
|
+
"type": "continuous",
|
|
52
52
|
"hideAxis": false,
|
|
53
53
|
"hideLabel": false,
|
|
54
54
|
"hideTicks": false,
|
|
55
|
-
"size":
|
|
56
|
-
"tickRotation":
|
|
55
|
+
"size": 75,
|
|
56
|
+
"tickRotation": 0,
|
|
57
57
|
"min": "",
|
|
58
58
|
"max": "",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
59
|
+
"labelColor": "#333",
|
|
60
|
+
"tickLabelColor": "#333",
|
|
61
|
+
"tickColor": "#333",
|
|
62
|
+
"isLegendValue": false,
|
|
63
|
+
"numTicks": "",
|
|
64
|
+
"dataKey": "x",
|
|
65
|
+
"label": "X Axis"
|
|
66
66
|
},
|
|
67
67
|
"table": {
|
|
68
68
|
"label": "Data Table",
|
|
69
|
-
"expanded":
|
|
69
|
+
"expanded": true,
|
|
70
70
|
"limitHeight": false,
|
|
71
71
|
"height": "",
|
|
72
72
|
"caption": "",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"legend": {
|
|
77
77
|
"behavior": "isolate",
|
|
78
78
|
"position": "right",
|
|
79
|
+
"singleRow": false,
|
|
79
80
|
"colorCode": "",
|
|
80
81
|
"reverseLabelOrder": false,
|
|
81
82
|
"description": "",
|
|
@@ -83,21 +84,20 @@
|
|
|
83
84
|
"dynamicLegendDefaultText": "Show All",
|
|
84
85
|
"dynamicLegendItemLimit": 5,
|
|
85
86
|
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
86
|
-
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
87
|
-
"hide": false
|
|
87
|
+
"dynamicLegendChartMessage": "Select Options from the Legend"
|
|
88
88
|
},
|
|
89
89
|
"exclusions": {
|
|
90
90
|
"active": false,
|
|
91
91
|
"keys": []
|
|
92
92
|
},
|
|
93
|
-
"palette": "
|
|
93
|
+
"palette": "qualitative1",
|
|
94
94
|
"isPaletteReversed": false,
|
|
95
95
|
"labels": false,
|
|
96
96
|
"dataFormat": {
|
|
97
97
|
"commas": false,
|
|
98
98
|
"prefix": "",
|
|
99
99
|
"suffix": "",
|
|
100
|
-
"
|
|
100
|
+
"useFormat": false
|
|
101
101
|
},
|
|
102
102
|
"confidenceKeys": {},
|
|
103
103
|
"visual": {
|
|
@@ -105,29 +105,32 @@
|
|
|
105
105
|
"accent": true,
|
|
106
106
|
"background": true
|
|
107
107
|
},
|
|
108
|
-
"dataUrl": "/examples/
|
|
109
|
-
"visualizationType": "
|
|
108
|
+
"dataUrl": "/examples/scatterplot-continuous.csv",
|
|
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"
|
|
117
|
+
},
|
|
110
118
|
"series": [
|
|
111
119
|
{
|
|
112
|
-
"dataKey": "
|
|
113
|
-
"type": "Bar"
|
|
114
|
-
"axis": "Left"
|
|
120
|
+
"dataKey": "y1",
|
|
121
|
+
"type": "Bar"
|
|
115
122
|
},
|
|
116
123
|
{
|
|
117
|
-
"dataKey": "
|
|
118
|
-
"type": "Bar"
|
|
119
|
-
"axis": "Left"
|
|
124
|
+
"dataKey": "y2",
|
|
125
|
+
"type": "Bar"
|
|
120
126
|
},
|
|
121
127
|
{
|
|
122
|
-
"dataKey": "
|
|
123
|
-
"type": "
|
|
124
|
-
"axis": "Left"
|
|
128
|
+
"dataKey": "y3",
|
|
129
|
+
"type": "Bar"
|
|
125
130
|
},
|
|
126
131
|
{
|
|
127
|
-
"dataKey": "
|
|
128
|
-
"type": "
|
|
129
|
-
"axis": "Right"
|
|
132
|
+
"dataKey": "y4",
|
|
133
|
+
"type": "Bar"
|
|
130
134
|
}
|
|
131
|
-
]
|
|
132
|
-
|
|
133
|
-
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Spark Line",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"fontSize": "medium",
|
|
6
|
+
"height": "375",
|
|
7
|
+
"compact": true,
|
|
8
|
+
"padding": {
|
|
9
|
+
"left": 5,
|
|
10
|
+
"right": 5
|
|
11
|
+
},
|
|
12
|
+
"yAxis": {
|
|
13
|
+
"size": "75",
|
|
14
|
+
"gridLines": false,
|
|
15
|
+
"label": "Y-Axis Example Label",
|
|
16
|
+
"numTicks": "9"
|
|
17
|
+
},
|
|
18
|
+
"barThickness": 0.35,
|
|
19
|
+
"xAxis": {
|
|
20
|
+
"size": "77",
|
|
21
|
+
"tickRotation": "25",
|
|
22
|
+
"dataKey": "Date",
|
|
23
|
+
"label": "X-Axis Example Label",
|
|
24
|
+
"type": "date",
|
|
25
|
+
"dateParseFormat": "%d/%m/%Y",
|
|
26
|
+
"dateDisplayFormat": "%d/%m/%Y"
|
|
27
|
+
},
|
|
28
|
+
"table": {
|
|
29
|
+
"label": "Data Table",
|
|
30
|
+
"expanded": true,
|
|
31
|
+
"download": true
|
|
32
|
+
},
|
|
33
|
+
"legend": {
|
|
34
|
+
"behavior": "isolate",
|
|
35
|
+
"position": "right",
|
|
36
|
+
"label": "Type of Data"
|
|
37
|
+
},
|
|
38
|
+
"palette": "qualitative-bold",
|
|
39
|
+
"labels": false,
|
|
40
|
+
"dataFormat": {},
|
|
41
|
+
"confidenceKeys": {},
|
|
42
|
+
"data": [
|
|
43
|
+
{
|
|
44
|
+
"Date": "1/15/2016",
|
|
45
|
+
"Data 1": "44"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"Date": "2/15/2016",
|
|
49
|
+
"Data 1": "25"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"Date": "3/15/2016",
|
|
53
|
+
"Data 1": "NA"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"Date": "4/15/2016",
|
|
57
|
+
"Data 1": "75"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"Date": "5/15/2016",
|
|
61
|
+
"Data 1": "100"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"Date": "6/15/2016",
|
|
65
|
+
"Data 1": "50"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"visualizationType": "Spark Line",
|
|
69
|
+
"series": [
|
|
70
|
+
{
|
|
71
|
+
"dataKey": "Data 1",
|
|
72
|
+
"type": "Bar"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups."
|
|
76
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Example Stacked Vertical",
|
|
3
|
+
"visualizationType": "Bar",
|
|
4
|
+
"visualizationSubType": "stacked",
|
|
5
|
+
"orientation": "vertical",
|
|
6
|
+
"animate": true,
|
|
7
|
+
"animateReplay": true,
|
|
8
|
+
"yAxis": {
|
|
9
|
+
"hideAxis": false,
|
|
10
|
+
"hideLabel": false,
|
|
11
|
+
"hideTicks": false,
|
|
12
|
+
"size": 50,
|
|
13
|
+
"gridLines": false
|
|
14
|
+
},
|
|
15
|
+
"barThickness": 0.35,
|
|
16
|
+
"height": 300,
|
|
17
|
+
"xAxis": {
|
|
18
|
+
"type": "categorical",
|
|
19
|
+
"hideAxis": false,
|
|
20
|
+
"hideLabel": false,
|
|
21
|
+
"hideTicks": false,
|
|
22
|
+
"size": 75,
|
|
23
|
+
"tickRotation": 0,
|
|
24
|
+
"dataKey": "Date"
|
|
25
|
+
},
|
|
26
|
+
"table": {
|
|
27
|
+
"label": "Data Table",
|
|
28
|
+
"expanded": true,
|
|
29
|
+
"show": true
|
|
30
|
+
},
|
|
31
|
+
"legend": {
|
|
32
|
+
"behavior": "isolate",
|
|
33
|
+
"position": "right",
|
|
34
|
+
"reverseLabelOrder": false
|
|
35
|
+
},
|
|
36
|
+
"series": [
|
|
37
|
+
{
|
|
38
|
+
"dataKey": "Data 1",
|
|
39
|
+
"type": "Bar"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"dataKey": "Data 2",
|
|
43
|
+
"type": "Bar"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"data": [
|
|
47
|
+
{
|
|
48
|
+
"Date": "1/15/2016",
|
|
49
|
+
"Data 1": "90",
|
|
50
|
+
"Data 2": "NA",
|
|
51
|
+
"Data 3": "300",
|
|
52
|
+
"Data 4": "95",
|
|
53
|
+
"Data 5": "120",
|
|
54
|
+
"Data 6": "310",
|
|
55
|
+
"Data 7": "40",
|
|
56
|
+
"Data 8": "90",
|
|
57
|
+
"Data 9": "240",
|
|
58
|
+
"Data 10": "60",
|
|
59
|
+
"Data 11": "160",
|
|
60
|
+
"Data 12": "200"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"Date": "2/15/2016",
|
|
64
|
+
"Data 1": "40",
|
|
65
|
+
"Data 2": "90",
|
|
66
|
+
"Data 3": "240",
|
|
67
|
+
"Data 4": "60",
|
|
68
|
+
"Data 5": "160",
|
|
69
|
+
"Data 6": "200",
|
|
70
|
+
"Data 7": "40",
|
|
71
|
+
"Data 8": "90",
|
|
72
|
+
"Data 9": "240",
|
|
73
|
+
"Data 10": "60",
|
|
74
|
+
"Data 11": "160",
|
|
75
|
+
"Data 12": "200"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"Date": "3/15/2016",
|
|
79
|
+
"Data 1": "50",
|
|
80
|
+
"Data 2": "300",
|
|
81
|
+
"Data 3": "290",
|
|
82
|
+
"Data 4": "100",
|
|
83
|
+
"Data 5": "200",
|
|
84
|
+
"Data 6": "250",
|
|
85
|
+
"Data 7": "80",
|
|
86
|
+
"Data 8": "350",
|
|
87
|
+
"Data 9": "300",
|
|
88
|
+
"Data 10": "150",
|
|
89
|
+
"Data 11": "130",
|
|
90
|
+
"Data 12": "100"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"Date": "4/15/2016",
|
|
94
|
+
"Data 1": "120",
|
|
95
|
+
"Data 2": "160",
|
|
96
|
+
"Data 3": "230",
|
|
97
|
+
"Data 4": "180",
|
|
98
|
+
"Data 5": "160",
|
|
99
|
+
"Data 6": "220",
|
|
100
|
+
"Data 7": "40",
|
|
101
|
+
"Data 8": "90",
|
|
102
|
+
"Data 9": "240",
|
|
103
|
+
"Data 10": "60",
|
|
104
|
+
"Data 11": "160",
|
|
105
|
+
"Data 12": "200"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"Date": "5/15/2016",
|
|
109
|
+
"Data 1": "80",
|
|
110
|
+
"Data 2": "350",
|
|
111
|
+
"Data 3": "300",
|
|
112
|
+
"Data 4": "150",
|
|
113
|
+
"Data 5": "130",
|
|
114
|
+
"Data 6": "100",
|
|
115
|
+
"Data 7": "120",
|
|
116
|
+
"Data 8": "160",
|
|
117
|
+
"Data 9": "230",
|
|
118
|
+
"Data 10": "180",
|
|
119
|
+
"Data 11": "160",
|
|
120
|
+
"Data 12": "220"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"Date": "6/15/2016",
|
|
124
|
+
"Data 1": "90",
|
|
125
|
+
"Data 2": "220",
|
|
126
|
+
"Data 3": "320",
|
|
127
|
+
"Data 4": "100",
|
|
128
|
+
"Data 5": "220",
|
|
129
|
+
"Data 6": "300",
|
|
130
|
+
"Data 7": "40",
|
|
131
|
+
"Data 8": "90",
|
|
132
|
+
"Data 9": "240",
|
|
133
|
+
"Data 10": "60",
|
|
134
|
+
"Data 11": "160",
|
|
135
|
+
"Data 12": "200"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"Date": "7/15/2016",
|
|
139
|
+
"Data 1": "120",
|
|
140
|
+
"Data 2": "160",
|
|
141
|
+
"Data 3": "230",
|
|
142
|
+
"Data 4": "180",
|
|
143
|
+
"Data 5": "160",
|
|
144
|
+
"Data 6": "220",
|
|
145
|
+
"Data 7": "80",
|
|
146
|
+
"Data 8": "350",
|
|
147
|
+
"Data 9": "300",
|
|
148
|
+
"Data 10": "150",
|
|
149
|
+
"Data 11": "130",
|
|
150
|
+
"Data 12": "100"
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
]
|
|
154
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Example Stacked Vertical",
|
|
3
|
+
"visualizationType": "Bar",
|
|
4
|
+
"visualizationSubType": "stacked",
|
|
5
|
+
"orientation": "vertical",
|
|
6
|
+
"animate": true,
|
|
7
|
+
"animateReplay": true,
|
|
8
|
+
"yAxis": {
|
|
9
|
+
"hideAxis": false,
|
|
10
|
+
"hideLabel": false,
|
|
11
|
+
"hideTicks": false,
|
|
12
|
+
"size": 50,
|
|
13
|
+
"gridLines": false
|
|
14
|
+
},
|
|
15
|
+
"barThickness": 0.35,
|
|
16
|
+
"height": 300,
|
|
17
|
+
"xAxis": {
|
|
18
|
+
"type": "categorical",
|
|
19
|
+
"hideAxis": false,
|
|
20
|
+
"hideLabel": false,
|
|
21
|
+
"hideTicks": false,
|
|
22
|
+
"size": 75,
|
|
23
|
+
"tickRotation": 0,
|
|
24
|
+
"dataKey": "Date"
|
|
25
|
+
},
|
|
26
|
+
"table": {
|
|
27
|
+
"label": "Data Table",
|
|
28
|
+
"expanded": true,
|
|
29
|
+
"show": true
|
|
30
|
+
},
|
|
31
|
+
"legend": {
|
|
32
|
+
"behavior": "isolate",
|
|
33
|
+
"position": "right",
|
|
34
|
+
"reverseLabelOrder": false
|
|
35
|
+
},
|
|
36
|
+
"series": [
|
|
37
|
+
{
|
|
38
|
+
"dataKey": "Data 1",
|
|
39
|
+
"type": "Bar"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"dataKey": "Data 2",
|
|
43
|
+
"type": "Bar"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"data": [
|
|
47
|
+
{
|
|
48
|
+
"Date": "1/15/2016",
|
|
49
|
+
"Data 1": "90",
|
|
50
|
+
"Data 2": "NA",
|
|
51
|
+
"Data 3": "300",
|
|
52
|
+
"Data 4": "95",
|
|
53
|
+
"Data 5": "120",
|
|
54
|
+
"Data 6": "310",
|
|
55
|
+
"Data 7": "40",
|
|
56
|
+
"Data 8": "90",
|
|
57
|
+
"Data 9": "240",
|
|
58
|
+
"Data 10": "60",
|
|
59
|
+
"Data 11": "160",
|
|
60
|
+
"Data 12": "200"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"Date": "2/15/2016",
|
|
64
|
+
"Data 1": "40",
|
|
65
|
+
"Data 2": "90",
|
|
66
|
+
"Data 3": "240",
|
|
67
|
+
"Data 4": "60",
|
|
68
|
+
"Data 5": "160",
|
|
69
|
+
"Data 6": "200",
|
|
70
|
+
"Data 7": "40",
|
|
71
|
+
"Data 8": "90",
|
|
72
|
+
"Data 9": "240",
|
|
73
|
+
"Data 10": "60",
|
|
74
|
+
"Data 11": "160",
|
|
75
|
+
"Data 12": "200"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"Date": "3/15/2016",
|
|
79
|
+
"Data 1": "50",
|
|
80
|
+
"Data 2": "300",
|
|
81
|
+
"Data 3": "290",
|
|
82
|
+
"Data 4": "100",
|
|
83
|
+
"Data 5": "200",
|
|
84
|
+
"Data 6": "250",
|
|
85
|
+
"Data 7": "80",
|
|
86
|
+
"Data 8": "350",
|
|
87
|
+
"Data 9": "300",
|
|
88
|
+
"Data 10": "150",
|
|
89
|
+
"Data 11": "130",
|
|
90
|
+
"Data 12": "100"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"Date": "4/15/2016",
|
|
94
|
+
"Data 1": "120",
|
|
95
|
+
"Data 2": "160",
|
|
96
|
+
"Data 3": "230",
|
|
97
|
+
"Data 4": "180",
|
|
98
|
+
"Data 5": "160",
|
|
99
|
+
"Data 6": "220",
|
|
100
|
+
"Data 7": "40",
|
|
101
|
+
"Data 8": "90",
|
|
102
|
+
"Data 9": "240",
|
|
103
|
+
"Data 10": "60",
|
|
104
|
+
"Data 11": "160",
|
|
105
|
+
"Data 12": "200"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"Date": "5/15/2016",
|
|
109
|
+
"Data 1": "80",
|
|
110
|
+
"Data 2": "350",
|
|
111
|
+
"Data 3": "300",
|
|
112
|
+
"Data 4": "150",
|
|
113
|
+
"Data 5": "130",
|
|
114
|
+
"Data 6": "100",
|
|
115
|
+
"Data 7": "120",
|
|
116
|
+
"Data 8": "160",
|
|
117
|
+
"Data 9": "230",
|
|
118
|
+
"Data 10": "180",
|
|
119
|
+
"Data 11": "160",
|
|
120
|
+
"Data 12": "220"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"Date": "6/15/2016",
|
|
124
|
+
"Data 1": "90",
|
|
125
|
+
"Data 2": "220",
|
|
126
|
+
"Data 3": "320",
|
|
127
|
+
"Data 4": "100",
|
|
128
|
+
"Data 5": "220",
|
|
129
|
+
"Data 6": "300",
|
|
130
|
+
"Data 7": "40",
|
|
131
|
+
"Data 8": "90",
|
|
132
|
+
"Data 9": "240",
|
|
133
|
+
"Data 10": "60",
|
|
134
|
+
"Data 11": "160",
|
|
135
|
+
"Data 12": "200"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"Date": "7/15/2016",
|
|
139
|
+
"Data 1": "120",
|
|
140
|
+
"Data 2": "160",
|
|
141
|
+
"Data 3": "230",
|
|
142
|
+
"Data 4": "180",
|
|
143
|
+
"Data 5": "160",
|
|
144
|
+
"Data 6": "220",
|
|
145
|
+
"Data 7": "80",
|
|
146
|
+
"Data 8": "350",
|
|
147
|
+
"Data 9": "300",
|
|
148
|
+
"Data 10": "150",
|
|
149
|
+
"Data 11": "130",
|
|
150
|
+
"Data 12": "100"
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
]
|
|
154
|
+
}
|
|
@@ -28,40 +28,47 @@
|
|
|
28
28
|
<option value="Hispanic or Latino">Test 2</option>
|
|
29
29
|
</select> -->
|
|
30
30
|
|
|
31
|
-
<div class="react-container" data-config="/examples/private/yaxis-test.json"></div>
|
|
32
31
|
<!-- <div class="react-container" data-config="/examples/dynamic-legends.json"></div> -->
|
|
33
32
|
<!-- <div class="react-container" data-config="/examples/cutoff-example-config.json"></div> -->
|
|
34
33
|
<!-- <div class="react-container" data-config="/examples/covid-confidence-example-config.json"></div> -->
|
|
35
34
|
<!-- <div class="react-container" data-config="/examples/planet-example-config.json"></div> -->
|
|
36
35
|
<!-- <div class="react-container" data-config="/examples/planet-chart-horizontal-example-config.json"></div> -->
|
|
37
|
-
<!-- <div class="react-container" data-config="/examples/planet-
|
|
38
|
-
<!-- <div class="react-container" data-config="/examples/planet-pie-example-config.json"></div>-->
|
|
36
|
+
<!-- <div class="react-container" data-config="/examples/planet-example-config.json"></div> -->
|
|
39
37
|
<!-- <div class="react-container" data-config="/examples/date-exclusions-config.json"></div> -->
|
|
40
|
-
|
|
38
|
+
<!-- <div class="react-container" data-config="/examples/case-rate-example-config.json"></div> -->
|
|
41
39
|
<!-- <div class="react-container" data-config="/examples/private/textelements.json"></div> -->
|
|
42
40
|
<!-- <div class="react-container" data-config="/examples/private/example-bar-chart.json"></div> -->
|
|
43
41
|
<!-- <div class="react-container" data-config="/examples/example-sparkline.json"></div> -->
|
|
44
42
|
<!-- DATA PRESENTATION GALLERY: https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/bar-chart.html#examples -->
|
|
45
43
|
|
|
44
|
+
<!-- NONNUMERIC TESTS -->
|
|
45
|
+
<!-- <div class="react-container" data-config="/examples/planet-pie-example-config-nonnumeric.json"></div> -->
|
|
46
|
+
<div class="react-container" data-config="/examples/example-combo-bar-nonnumeric.json"></div>
|
|
47
|
+
<!-- <div class="react-container" data-config="/examples/example-bar-chart-nonnumeric.json"></div> -->
|
|
48
|
+
<!-- <div class="react-container" data-config="/examples/line-chart-nonnumeric.json"></div> -->
|
|
49
|
+
<!-- <div class="react-container" data-config="/examples/sparkline-chart-nonnumeric.json"></div> -->
|
|
50
|
+
|
|
46
51
|
<!-- HORIZONTAL BAR CHARTS -->
|
|
47
52
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-bar-chart-with-numbers-on-bar.json"></div> -->
|
|
48
53
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-bar-chart.json"></div> -->
|
|
49
54
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-horizontal/horizontal-stacked.json"></div> -->
|
|
50
55
|
|
|
51
56
|
<!-- VERTICAL BAR CHARTS -->
|
|
52
|
-
<!--
|
|
57
|
+
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/combo-line-chart.json"></div> -->
|
|
53
58
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
|
|
54
59
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
|
|
60
|
+
<!-- <div class="react-container" data-config="/examples/stacked-vertical-bar-example-nonnumerics.json"></div> -->
|
|
55
61
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-with-confidence.json"></div> -->
|
|
56
62
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
|
|
63
|
+
<!-- <div class="react-container" data-config="/examples/box-plot.json"></div> -->
|
|
57
64
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<!-- PAIRED BAR CHARTS -->
|
|
62
|
-
<!-- <div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div> -->
|
|
65
|
+
<!-- Paired bar Chart -->
|
|
66
|
+
<div class="react-container" data-config="/examples/gallery/paired-bar/paired-bar-chart.json"></div>
|
|
63
67
|
|
|
64
68
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
65
69
|
</body>
|
|
66
70
|
|
|
67
|
-
|
|
71
|
+
<script type="module" src="./src/index.jsx"></script>
|
|
72
|
+
</body>
|
|
73
|
+
|
|
74
|
+
</html>
|