@cdc/chart 4.23.5 → 4.23.6

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.
@@ -0,0 +1,190 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Planet Radius (Combo Example)",
4
+ "showTitle": true,
5
+ "showDownloadMediaButton": false,
6
+ "theme": "theme-blue",
7
+ "animate": true,
8
+ "fontSize": "medium",
9
+ "lineDatapointStyle": "hover",
10
+ "barHasBorder": "false",
11
+ "isLollipopChart": false,
12
+ "lollipopShape": "circle",
13
+ "lollipopColorStyle": "two-tone",
14
+ "visualizationSubType": "regular",
15
+ "barStyle": "",
16
+ "roundingStyle": "standard",
17
+ "tipRounding": "top",
18
+ "general": {
19
+ "showDownloadButton": false
20
+ },
21
+ "padding": {
22
+ "left": 0,
23
+ "right": 0
24
+ },
25
+ "yAxis": {
26
+ "hideAxis": false,
27
+ "displayNumbersOnBar": false,
28
+ "hideLabel": false,
29
+ "hideTicks": false,
30
+ "size": "150",
31
+ "gridLines": false,
32
+ "enablePadding": false,
33
+ "min": "",
34
+ "max": "",
35
+ "labelColor": "#333",
36
+ "tickLabelColor": "#333",
37
+ "tickColor": "#333",
38
+ "rightHideAxis": false,
39
+ "rightAxisSize": 50,
40
+ "rightLabel": "Diameter",
41
+ "rightLabelOffsetSize": "40",
42
+ "rightAxisLabelColor": "#333",
43
+ "rightAxisTickLabelColor": "#333",
44
+ "rightAxisTickColor": "#333",
45
+ "numTicks": "",
46
+ "axisPadding": 0,
47
+ "tickRotation": 0,
48
+ "anchors": [],
49
+ "label": "Measurement (1000km)",
50
+ "rightNumTicks": "7",
51
+ "rightHideLabel": false
52
+ },
53
+ "boxplot": {
54
+ "plots": [],
55
+ "borders": "true",
56
+ "firstQuartilePercentage": 25,
57
+ "thirdQuartilePercentage": 75,
58
+ "boxWidthPercentage": 40,
59
+ "plotOutlierValues": false,
60
+ "plotNonOutlierValues": true,
61
+ "legend": {
62
+ "showHowToReadText": false,
63
+ "howToReadText": ""
64
+ },
65
+ "labels": {
66
+ "q1": "Lower Quartile",
67
+ "q2": "q2",
68
+ "q3": "Upper Quartile",
69
+ "q4": "q4",
70
+ "minimum": "Minimum",
71
+ "maximum": "Maximum",
72
+ "mean": "Mean",
73
+ "median": "Median",
74
+ "sd": "Standard Deviation",
75
+ "iqr": "Interquartile Range",
76
+ "count": "Count",
77
+ "outliers": "Outliers",
78
+ "values": "Values"
79
+ }
80
+ },
81
+ "topAxis": {
82
+ "hasLine": true
83
+ },
84
+ "isLegendValue": false,
85
+ "barThickness": 0.35,
86
+ "barHeight": 25,
87
+ "barSpace": 15,
88
+ "heights": {
89
+ "vertical": 300,
90
+ "horizontal": 750
91
+ },
92
+ "xAxis": {
93
+ "anchors": [],
94
+ "type": "categorical",
95
+ "showTargetLabel": true,
96
+ "targetLabel": "Target",
97
+ "hideAxis": false,
98
+ "hideLabel": false,
99
+ "hideTicks": false,
100
+ "size": 75,
101
+ "tickRotation": 30,
102
+ "min": "",
103
+ "max": "",
104
+ "labelColor": "#333",
105
+ "tickLabelColor": "#333",
106
+ "tickColor": "#333",
107
+ "numTicks": "",
108
+ "labelOffset": 65,
109
+ "axisPadding": 0,
110
+ "target": 0,
111
+ "label": "Planet",
112
+ "dataKey": "name"
113
+ },
114
+ "table": {
115
+ "label": "Data Table",
116
+ "expanded": false,
117
+ "limitHeight": false,
118
+ "height": "",
119
+ "caption": "",
120
+ "showDownloadUrl": false,
121
+ "showDataTableLink": true,
122
+ "indexLabel": "",
123
+ "download": false,
124
+ "showVertical": false,
125
+ "show": true
126
+ },
127
+ "orientation": "vertical",
128
+ "color": "pinkpurple",
129
+ "columns": {},
130
+ "legend": {
131
+ "behavior": "isolate",
132
+ "singleRow": false,
133
+ "colorCode": "",
134
+ "reverseLabelOrder": false,
135
+ "description": "",
136
+ "dynamicLegend": false,
137
+ "dynamicLegendDefaultText": "Show All",
138
+ "dynamicLegendItemLimit": 5,
139
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
140
+ "dynamicLegendChartMessage": "Select Options from the Legend",
141
+ "position": "right",
142
+ "hide": false
143
+ },
144
+ "exclusions": {
145
+ "active": false,
146
+ "keys": []
147
+ },
148
+ "palette": "qualitative-bold",
149
+ "isPaletteReversed": false,
150
+ "twoColor": {
151
+ "palette": "monochrome-1",
152
+ "isPaletteReversed": false
153
+ },
154
+ "labels": false,
155
+ "dataFormat": {
156
+ "commas": false,
157
+ "prefix": "",
158
+ "suffix": "km",
159
+ "abbreviated": false,
160
+ "bottomSuffix": "",
161
+ "bottomPrefix": "",
162
+ "bottomAbbreviated": false,
163
+ "roundTo": 1
164
+ },
165
+ "confidenceKeys": {},
166
+ "visual": {
167
+ "border": true,
168
+ "accent": true,
169
+ "background": true,
170
+ "verticalHoverLine": false,
171
+ "horizontalHoverLine": false
172
+ },
173
+ "useLogScale": false,
174
+ "filterBehavior": "Filter Change",
175
+ "highlightedBarValues": [],
176
+ "series": [
177
+ {
178
+ "dataKey": "Radius",
179
+ "type": "Bar"
180
+ },
181
+ {
182
+ "dataKey": "Diameter",
183
+ "type": "Line",
184
+ "axis": "Right"
185
+ }
186
+ ],
187
+ "dataUrl": "/examples/feature/__data__/planet-example-data.json",
188
+ "animateReplay": true,
189
+ "visualizationType": "Combo"
190
+ }
@@ -0,0 +1,245 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Forecasting Chart Example",
4
+ "showTitle": true,
5
+ "theme": "theme-blue",
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",
17
+ "padding": {
18
+ "left": 0,
19
+ "right": 0
20
+ },
21
+ "yAxis": {
22
+ "hideAxis": false,
23
+ "displayNumbersOnBar": false,
24
+ "hideLabel": false,
25
+ "hideTicks": false,
26
+ "size": "75",
27
+ "gridLines": false,
28
+ "enablePadding": false,
29
+ "min": "0",
30
+ "max": "900",
31
+ "labelColor": "#333",
32
+ "tickLabelColor": "#333",
33
+ "tickColor": "#333",
34
+ "rightHideAxis": false,
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,
44
+ "anchors": [],
45
+ "label": "Cases by Date of Report"
46
+ },
47
+ "boxplot": {
48
+ "plots": [],
49
+ "borders": "true",
50
+ "firstQuartilePercentage": 25,
51
+ "thirdQuartilePercentage": 75,
52
+ "boxWidthPercentage": 40,
53
+ "plotOutlierValues": false,
54
+ "plotNonOutlierValues": true,
55
+ "legend": {
56
+ "showHowToReadText": false,
57
+ "howToReadText": ""
58
+ },
59
+ "labels": {
60
+ "q1": "Lower Quartile",
61
+ "q2": "q2",
62
+ "q3": "Upper Quartile",
63
+ "q4": "q4",
64
+ "minimum": "Minimum",
65
+ "maximum": "Maximum",
66
+ "mean": "Mean",
67
+ "median": "Median",
68
+ "sd": "Standard Deviation",
69
+ "iqr": "Interquartile Range",
70
+ "count": "Count",
71
+ "outliers": "Outliers",
72
+ "values": "Values"
73
+ }
74
+ },
75
+ "topAxis": {
76
+ "hasLine": true
77
+ },
78
+ "isLegendValue": false,
79
+ "barThickness": 0.35,
80
+ "barHeight": 25,
81
+ "barSpace": 15,
82
+ "heights": {
83
+ "vertical": 300,
84
+ "horizontal": 750
85
+ },
86
+ "xAxis": {
87
+ "type": "date",
88
+ "showTargetLabel": true,
89
+ "targetLabel": "Target",
90
+ "hideAxis": false,
91
+ "hideLabel": false,
92
+ "hideTicks": false,
93
+ "size": 75,
94
+ "tickRotation": 30,
95
+ "min": "",
96
+ "max": "",
97
+ "labelColor": "#333",
98
+ "tickLabelColor": "#333",
99
+ "tickColor": "#333",
100
+ "numTicks": "",
101
+ "labelOffset": 65,
102
+ "axisPadding": 0,
103
+ "target": 0,
104
+ "anchors": [
105
+ {
106
+ "value": "10/19/2022",
107
+ "lineStyle": "dashed-md"
108
+ }
109
+ ],
110
+ "label": "",
111
+ "dataKey": "date",
112
+ "dateParseFormat": "%m/%d/%Y",
113
+ "dateDisplayFormat": "%m/%d/%Y"
114
+ },
115
+ "table": {
116
+ "label": "Data Table",
117
+ "expanded": false,
118
+ "limitHeight": false,
119
+ "height": "",
120
+ "caption": "",
121
+ "showDownloadUrl": false,
122
+ "showDataTableLink": true,
123
+ "show": true
124
+ },
125
+ "orientation": "vertical",
126
+ "legend": {
127
+ "behavior": "isolate",
128
+ "singleRow": false,
129
+ "colorCode": "",
130
+ "reverseLabelOrder": false,
131
+ "description": "",
132
+ "dynamicLegend": false,
133
+ "dynamicLegendDefaultText": "Show All",
134
+ "dynamicLegendItemLimit": 5,
135
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
136
+ "dynamicLegendChartMessage": "Select Options from the Legend",
137
+ "position": "right",
138
+ "hide": false
139
+ },
140
+ "exclusions": {
141
+ "active": false,
142
+ "keys": []
143
+ },
144
+ "palette": "sequential-bluereverse",
145
+ "isPaletteReversed": true,
146
+ "twoColor": {
147
+ "palette": "monochrome-1",
148
+ "isPaletteReversed": false
149
+ },
150
+ "labels": false,
151
+ "dataFormat": {
152
+ "commas": false,
153
+ "prefix": "",
154
+ "suffix": "",
155
+ "abbreviated": false,
156
+ "bottomSuffix": "",
157
+ "bottomPrefix": "",
158
+ "bottomAbbreviated": false,
159
+ "roundTo": "0"
160
+ },
161
+ "confidenceKeys": {},
162
+ "visual": {
163
+ "border": true,
164
+ "accent": true,
165
+ "background": true
166
+ },
167
+ "filterBehavior": "Filter Change",
168
+ "forecastingChart": {
169
+ "showBars": false,
170
+ "barColumn": "confirm",
171
+ "barColor": "#918e90",
172
+ "confidenceIntervals": [
173
+ {
174
+ "low": "lower_20",
175
+ "high": "upper_20"
176
+ },
177
+ {
178
+ "low": "lower_50",
179
+ "high": "upper_50"
180
+ },
181
+ {
182
+ "low": "lower_90",
183
+ "high": "upper_90"
184
+ },
185
+ {}
186
+ ],
187
+ "stages": "type",
188
+ "colors": [
189
+ "sequential-greenreverse",
190
+ "sequential-orange-(MPX)reverse",
191
+ "sequential-blue-2-(MPX)reverse"
192
+ ],
193
+ "groups": [
194
+ "estimate",
195
+ "estimate based on partial data",
196
+ "forecast"
197
+ ],
198
+ "showBarColumn": true
199
+ },
200
+ "dataUrl": "./examples/feature/forecasting/case_date_example.csv",
201
+ "animateReplay": true,
202
+ "visualizationType": "Combo",
203
+ "series": [
204
+ {
205
+ "dataKey": "confirm",
206
+ "type": "Bar",
207
+ "axis": "Left"
208
+ },
209
+ {
210
+ "dataKey": "type",
211
+ "type": "Forecasting",
212
+ "axis": "Left",
213
+ "confidenceIntervals": [
214
+ {
215
+ "high": "upper_90",
216
+ "low": "lower_90"
217
+ },
218
+ {
219
+ "high": "upper_50",
220
+ "low": "lower_50"
221
+ },
222
+ {
223
+ "high": "upper_20",
224
+ "low": "lower_20"
225
+ }
226
+ ],
227
+ "stageColumn": "type",
228
+ "stageItem": "estimate",
229
+ "stages": [
230
+ {
231
+ "key": "estimate",
232
+ "color": "sequential-green"
233
+ },
234
+ {
235
+ "key": "estimate based on partial data",
236
+ "color": "sequential-orange-(MPX)"
237
+ },
238
+ {
239
+ "key": "forecast",
240
+ "color": "sequential-blue"
241
+ }
242
+ ]
243
+ }
244
+ ]
245
+ }