@cdc/chart 4.23.5 → 4.23.7

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