@cdc/chart 4.23.6 → 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.
@@ -44,7 +44,7 @@
44
44
  {
45
45
  "name": "Pluto",
46
46
  "Radius": "200",
47
- "Diameter": "-22",
47
+ "Diameter": "22",
48
48
  "distance": "0"
49
49
  }
50
50
  ]
@@ -176,7 +176,7 @@
176
176
  "series": [
177
177
  {
178
178
  "dataKey": "Radius",
179
- "type": "Bar"
179
+ "type": "Line"
180
180
  },
181
181
  {
182
182
  "dataKey": "Diameter",
@@ -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
@@ -41,7 +46,11 @@
41
46
  "numTicks": "",
42
47
  "axisPadding": 0,
43
48
  "tickRotation": 0,
44
- "anchors": [],
49
+ "anchors": [
50
+ {
51
+ "value": "10/15/2022"
52
+ }
53
+ ],
45
54
  "label": "Cases by Date of Report"
46
55
  },
47
56
  "boxplot": {
@@ -84,6 +93,12 @@
84
93
  "horizontal": 750
85
94
  },
86
95
  "xAxis": {
96
+ "anchors": [
97
+ {
98
+ "value": "500",
99
+ "lineStyle": "dashed-md"
100
+ }
101
+ ],
87
102
  "type": "date",
88
103
  "showTargetLabel": true,
89
104
  "targetLabel": "Target",
@@ -101,12 +116,7 @@
101
116
  "labelOffset": 65,
102
117
  "axisPadding": 0,
103
118
  "target": 0,
104
- "anchors": [
105
- {
106
- "value": "10/19/2022",
107
- "lineStyle": "dashed-md"
108
- }
109
- ],
119
+ "maxTickRotation": 0,
110
120
  "label": "",
111
121
  "dataKey": "date",
112
122
  "dateParseFormat": "%m/%d/%Y",
@@ -120,9 +130,14 @@
120
130
  "caption": "",
121
131
  "showDownloadUrl": false,
122
132
  "showDataTableLink": true,
133
+ "indexLabel": "",
134
+ "download": false,
135
+ "showVertical": false,
123
136
  "show": true
124
137
  },
125
138
  "orientation": "vertical",
139
+ "color": "pinkpurple",
140
+ "columns": {},
126
141
  "legend": {
127
142
  "behavior": "isolate",
128
143
  "singleRow": false,
@@ -162,49 +177,19 @@
162
177
  "visual": {
163
178
  "border": true,
164
179
  "accent": true,
165
- "background": true
180
+ "background": true,
181
+ "verticalHoverLine": false,
182
+ "horizontalHoverLine": false
166
183
  },
184
+ "useLogScale": false,
167
185
  "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",
186
+ "highlightedBarValues": [],
203
187
  "series": [
204
188
  {
205
189
  "dataKey": "confirm",
206
190
  "type": "Bar",
207
- "axis": "Left"
191
+ "axis": "Left",
192
+ "tooltip": true
208
193
  },
209
194
  {
210
195
  "dataKey": "type",
@@ -239,7 +224,48 @@
239
224
  "key": "forecast",
240
225
  "color": "sequential-blue"
241
226
  }
242
- ]
227
+ ],
228
+ "tooltip": true
243
229
  }
244
- ]
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
245
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
  }
@@ -15,6 +15,7 @@
15
15
  "barStyle": "",
16
16
  "roundingStyle": "standard",
17
17
  "tipRounding": "top",
18
+ "isResponsiveTicks": false,
18
19
  "general": {
19
20
  "showDownloadButton": false
20
21
  },
@@ -30,6 +31,8 @@
30
31
  "size": 50,
31
32
  "gridLines": false,
32
33
  "enablePadding": false,
34
+ "min": "",
35
+ "max": "",
33
36
  "labelColor": "#333",
34
37
  "tickLabelColor": "#333",
35
38
  "tickColor": "#333",
@@ -105,6 +108,7 @@
105
108
  "labelOffset": 65,
106
109
  "axisPadding": 0,
107
110
  "target": 0,
111
+ "maxTickRotation": 0,
108
112
  "dataKey": "date",
109
113
  "dateParseFormat": "%m/%d/%Y",
110
114
  "dateDisplayFormat": "%m/%d/%Y"
@@ -184,11 +188,11 @@
184
188
  },
185
189
  {
186
190
  "key": "quarter three",
187
- "color": "qualitative1reverse"
191
+ "color": "qualitative-softreverse"
188
192
  },
189
193
  {
190
194
  "key": "quarter four",
191
- "color": "qualitative1reverse"
195
+ "color": "qualitative4reverse"
192
196
  }
193
197
  ],
194
198
  "stageColumn": "quarter",
@@ -200,6 +204,9 @@
200
204
  ]
201
205
  }
202
206
  ],
207
+ "tooltips": {
208
+ "opacity": 90
209
+ },
203
210
  "datasets": {},
204
211
  "visualizationType": "Forecasting",
205
212
  "data": [
@@ -5321,5 +5328,7 @@
5321
5328
  "dataDescription": {
5322
5329
  "horizontal": false,
5323
5330
  "series": false
5324
- }
5331
+ },
5332
+ "validated": 4.23,
5333
+ "dynamicMarginTop": 0
5325
5334
  }
@@ -42,28 +42,28 @@
42
42
  {
43
43
  "Date": "1/15/2016",
44
44
  "Data 1": "foo",
45
- "Data 2": "135",
45
+ "Data 2": "1350",
46
46
  "Data 3": "300",
47
- "Data 4": "95",
48
- "Data 5": "120",
49
- "Data 6": "310"
47
+ "Data 4": "950",
48
+ "Data 5": "1200",
49
+ "Data 6": "3100"
50
50
  },
51
51
  {
52
52
  "Date": "2/15/2016",
53
53
  "Data 1": "40",
54
- "Data 2": "90",
54
+ "Data 2": "900",
55
55
  "Data 3": "240",
56
56
  "Data 4": "60",
57
- "Data 5": "160",
58
- "Data 6": "200"
57
+ "Data 5": "1600",
58
+ "Data 6": "2000"
59
59
  },
60
60
  {
61
61
  "Date": "3/15/2016",
62
62
  "Data 1": "50",
63
63
  "Data 2": "300",
64
- "Data 3": "290",
64
+ "Data 3": "2900",
65
65
  "Data 4": "100",
66
- "Data 5": "200",
66
+ "Data 5": "2000",
67
67
  "Data 6": "250"
68
68
  },
69
69
  {
@@ -71,7 +71,7 @@
71
71
  "Data 1": "",
72
72
  "Data 2": "160",
73
73
  "Data 3": "230",
74
- "Data 4": "180",
74
+ "Data 4": "1800",
75
75
  "Data 5": "160",
76
76
  "Data 6": "220"
77
77
  },
@@ -121,4 +121,4 @@
121
121
  "type": "Line"
122
122
  }
123
123
  ]
124
- }
124
+ }
@@ -1,40 +1,201 @@
1
1
  {
2
2
  "type": "chart",
3
3
  "title": "Categorical Bar Chart",
4
+ "showTitle": true,
5
+ "showDownloadMediaButton": false,
4
6
  "theme": "theme-blue",
7
+ "animate": false,
5
8
  "fontSize": "medium",
6
- "height": 300,
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
+ },
7
21
  "padding": {
8
22
  "left": 5,
9
23
  "right": 5
10
24
  },
11
25
  "yAxis": {
26
+ "hideAxis": false,
27
+ "displayNumbersOnBar": false,
28
+ "hideLabel": false,
29
+ "hideTicks": false,
12
30
  "size": "71",
13
- "gridLines": true,
31
+ "gridLines": false,
32
+ "enablePadding": false,
33
+ "min": "",
34
+ "max": "",
35
+ "labelColor": "#333",
36
+ "tickLabelColor": "#333",
37
+ "tickColor": "#333",
38
+ "rightHideAxis": false,
39
+ "rightAxisSize": 0,
40
+ "rightLabel": "",
41
+ "rightLabelOffsetSize": 0,
42
+ "rightAxisLabelColor": "#333",
43
+ "rightAxisTickLabelColor": "#333",
44
+ "rightAxisTickColor": "#333",
45
+ "numTicks": "",
46
+ "axisPadding": 0,
47
+ "tickRotation": 0,
48
+ "anchors": [],
14
49
  "label": "Y-Axis Example Label"
15
50
  },
51
+ "boxplot": {
52
+ "plots": [],
53
+ "borders": "true",
54
+ "firstQuartilePercentage": 25,
55
+ "thirdQuartilePercentage": 75,
56
+ "boxWidthPercentage": 40,
57
+ "plotOutlierValues": false,
58
+ "plotNonOutlierValues": true,
59
+ "legend": {
60
+ "showHowToReadText": false,
61
+ "howToReadText": ""
62
+ },
63
+ "labels": {
64
+ "q1": "Lower Quartile",
65
+ "q2": "q2",
66
+ "q3": "Upper Quartile",
67
+ "q4": "q4",
68
+ "minimum": "Minimum",
69
+ "maximum": "Maximum",
70
+ "mean": "Mean",
71
+ "median": "Median",
72
+ "sd": "Standard Deviation",
73
+ "iqr": "Interquartile Range",
74
+ "total": "Total",
75
+ "outliers": "Outliers",
76
+ "values": "Values",
77
+ "lowerBounds": "Lower Bounds",
78
+ "upperBounds": "Upper Bounds"
79
+ }
80
+ },
81
+ "topAxis": {
82
+ "hasLine": false
83
+ },
84
+ "isLegendValue": false,
16
85
  "barThickness": "0.5",
86
+ "barHeight": 25,
87
+ "barSpace": 15,
88
+ "heights": {
89
+ "vertical": 300,
90
+ "horizontal": 750
91
+ },
17
92
  "xAxis": {
93
+ "anchors": [],
94
+ "type": "categorical",
95
+ "showTargetLabel": true,
96
+ "targetLabel": "Target",
97
+ "hideAxis": false,
98
+ "hideLabel": false,
99
+ "hideTicks": false,
18
100
  "size": "58",
19
101
  "tickRotation": 0,
102
+ "min": "",
103
+ "max": "",
104
+ "labelColor": "#333",
105
+ "tickLabelColor": "#333",
106
+ "tickColor": "#333",
107
+ "numTicks": "",
108
+ "labelOffset": 65,
109
+ "axisPadding": 0,
110
+ "target": 0,
20
111
  "dataKey": "Location",
21
112
  "label": "X-Axis Example Label"
22
113
  },
23
114
  "table": {
24
115
  "label": "Data Table",
25
- "expanded": true
116
+ "expanded": true,
117
+ "limitHeight": false,
118
+ "height": "",
119
+ "caption": "",
120
+ "showDownloadUrl": false,
121
+ "showDataTableLink": true,
122
+ "indexLabel": "",
123
+ "download": false,
124
+ "showVertical": false,
125
+ "show": true
26
126
  },
127
+ "orientation": "vertical",
128
+ "color": "pinkpurple",
129
+ "columns": {},
27
130
  "legend": {
28
131
  "behavior": "highlight",
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",
29
141
  "position": "right",
30
142
  "label": "Sample Groups"
31
143
  },
144
+ "exclusions": {
145
+ "active": false,
146
+ "keys": []
147
+ },
32
148
  "palette": "qualitative-bold",
149
+ "isPaletteReversed": false,
150
+ "twoColor": {
151
+ "palette": "monochrome-1",
152
+ "isPaletteReversed": false
153
+ },
33
154
  "labels": false,
34
155
  "dataFormat": {
35
- "suffix": " "
156
+ "commas": false,
157
+ "prefix": "",
158
+ "suffix": " ",
159
+ "abbreviated": false,
160
+ "bottomSuffix": "",
161
+ "bottomPrefix": "",
162
+ "bottomAbbreviated": false
36
163
  },
37
164
  "confidenceKeys": {},
165
+ "visual": {
166
+ "border": true,
167
+ "accent": true,
168
+ "background": true,
169
+ "verticalHoverLine": false,
170
+ "horizontalHoverLine": false
171
+ },
172
+ "useLogScale": false,
173
+ "filterBehavior": "Filter Change",
174
+ "highlightedBarValues": [],
175
+ "series": [
176
+ {
177
+ "dataKey": "Group A",
178
+ "type": "Bar",
179
+ "tooltip": true,
180
+ "axis": "Left"
181
+ },
182
+ {
183
+ "dataKey": "Group B",
184
+ "type": "Bar",
185
+ "tooltip": true,
186
+ "axis": "Left"
187
+ },
188
+ {
189
+ "dataKey": "Group C",
190
+ "type": "Bar",
191
+ "tooltip": true,
192
+ "axis": "Left"
193
+ }
194
+ ],
195
+ "tooltips": {
196
+ "opacity": 100
197
+ },
198
+ "height": 300,
38
199
  "data": [
39
200
  {
40
201
  "Location": "Vehicle",
@@ -61,20 +222,6 @@
61
222
  "Group C": "80"
62
223
  }
63
224
  ],
64
- "visualizationType": "Bar",
65
- "series": [
66
- {
67
- "dataKey": "Group A",
68
- "type": "Bar"
69
- },
70
- {
71
- "dataKey": "Group B",
72
- "type": "Bar"
73
- },
74
- {
75
- "dataKey": "Group C",
76
- "type": "Bar"
77
- }
78
- ],
225
+ "visualizationType": "Combo",
79
226
  "description": "This example shows a Standard Categorical (Non-Time-Based) Bar Chart created in the visualization editor in WCMS"
80
- }
227
+ }