@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,203 @@
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-green",
145
+ "isPaletteReversed": false,
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
+ "stages": "type",
187
+ "colors": [
188
+ "sequential-greenreverse",
189
+ "sequential-orange-(MPX)reverse",
190
+ "sequential-blue-2-(MPX)reverse"
191
+ ],
192
+ "groups": [
193
+ "estimate",
194
+ "estimate based on partial data",
195
+ "forecast"
196
+ ],
197
+ "showBarColumn": true
198
+ },
199
+ "dataUrl": "./examples/feature/forecasting/case_date_example.csv",
200
+ "animateReplay": true,
201
+ "visualizationType": "Forecasting",
202
+ "series": []
203
+ }
@@ -42,36 +42,36 @@
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
  {
70
70
  "Date": "4/15/2016",
71
- "Data 1": "120",
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
+ }
@@ -1 +1,173 @@
1
- {"type":"chart","title":"Example Line Chart","theme":"theme-green","animate":true,"fontSize":"medium","lineDatapointStyle":"hover","barHasBorder":"false","isLollipopChart":false,"lollipopShape":"circle","lollipopColorStyle":"two-tone","visualizationSubType":"regular","barStyle":"","roundingStyle":"standard","tipRounding":"top","padding":{"left":5,"right":5},"yAxis":{"hideAxis":false,"displayNumbersOnBar":false,"hideLabel":false,"hideTicks":false,"size":"75","gridLines":false,"min":"","max":"","label":"Y-Axis Example Label","numTicks":"9"},"barThickness":0.35,"barHeight":25,"height":"375","xAxis":{"type":"date","hideAxis":false,"hideLabel":false,"hideTicks":false,"size":"77","tickRotation":"25","min":"","max":"","dataKey":"Date","label":"X-Axis Example Label","dateParseFormat":"%d/%m/%Y","dateDisplayFormat":"%d/%m/%Y"},"table":{"label":"Data Table","expanded":true,"limitHeight":false,"height":"","caption":"","download":true,"show":true},"orientation":"vertical","legend":{"behavior":"isolate","position":"right","colorCode":"","reverseLabelOrder":false,"description":"","dynamicLegend":false,"dynamicLegendDefaultText":"Show All","dynamicLegendItemLimit":5,"dynamicLegendItemLimitMessage":"Dynamic Legend Item Limit Hit.","dynamicLegendChartMessage":"Select Options from the Legend","label":"Type of Data"},"exclusions":{"active":false,"keys":[]},"palette":"qualitative-bold","isPaletteReversed":false,"labels":false,"dataFormat":{"commas":false,"prefix":"","suffix":""},"confidenceKeys":{},"visual":{"border":true,"accent":true,"background":true},"data":[{"Date":"1/15/2016","Data 1":"90","Data 2":"135","Data 3":"300","Data 4":"95","Data 5":"120","Data 6":"310"},{"Date":"2/15/2016","Data 1":"40","Data 2":"90","Data 3":"240","Data 4":"60","Data 5":"160","Data 6":"200"},{"Date":"3/15/2016","Data 1":"50","Data 2":"300","Data 3":"290","Data 4":"100","Data 5":"200","Data 6":"250"},{"Date":"4/15/2016","Data 1":"120","Data 2":"160","Data 3":"230","Data 4":"180","Data 5":"160","Data 6":"220"},{"Date":"5/15/2016","Data 1":"80","Data 2":"350","Data 3":"300","Data 4":"150","Data 5":"130","Data 6":"100"},{"Date":"6/15/2016","Data 1":"90","Data 2":"220","Data 3":"320","Data 4":"100","Data 5":"220","Data 6":"300"}],"visualizationType":"Line","series":[{"dataKey":"Data 1","type":"Bar"},{"dataKey":"Data 2","type":"Bar"},{"dataKey":"Data 3","type":"Bar"},{"dataKey":"Data 4","type":"Bar"},{"dataKey":"Data 5","type":"Bar"},{"dataKey":"Data 6","type":"Bar"}]}
1
+ {
2
+ "type": "chart",
3
+ "title": "Example Line Chart",
4
+ "theme": "theme-green",
5
+ "animate": true,
6
+ "fontSize": "medium",
7
+ "lineDatapointStyle": "hover",
8
+ "barHasBorder": "false",
9
+ "isLollipopChart": false,
10
+ "lollipopShape": "circle",
11
+ "lollipopColorStyle": "two-tone",
12
+ "visualizationSubType": "regular",
13
+ "barStyle": "",
14
+ "roundingStyle": "standard",
15
+ "tipRounding": "top",
16
+ "padding": {
17
+ "left": 5,
18
+ "right": 5
19
+ },
20
+ "yAxis": {
21
+ "hideAxis": false,
22
+ "displayNumbersOnBar": false,
23
+ "hideLabel": false,
24
+ "hideTicks": false,
25
+ "size": "75",
26
+ "gridLines": false,
27
+ "min": "",
28
+ "max": "",
29
+ "label": "Y-Axis Example Label",
30
+ "numTicks": "9"
31
+ },
32
+ "barThickness": 0.35,
33
+ "barHeight": 25,
34
+ "height": "375",
35
+ "xAxis": {
36
+ "type": "date",
37
+ "hideAxis": false,
38
+ "hideLabel": false,
39
+ "hideTicks": false,
40
+ "size": "77",
41
+ "tickRotation": "25",
42
+ "min": "",
43
+ "max": "",
44
+ "dataKey": "Date",
45
+ "label": "X-Axis Example Label",
46
+ "dateParseFormat": "%d/%m/%Y",
47
+ "dateDisplayFormat": "%d/%m/%Y"
48
+ },
49
+ "table": {
50
+ "label": "Data Table",
51
+ "expanded": true,
52
+ "limitHeight": false,
53
+ "height": "",
54
+ "caption": "",
55
+ "download": true,
56
+ "show": true
57
+ },
58
+ "orientation": "vertical",
59
+ "legend": {
60
+ "behavior": "isolate",
61
+ "position": "right",
62
+ "colorCode": "",
63
+ "reverseLabelOrder": false,
64
+ "description": "",
65
+ "dynamicLegend": false,
66
+ "dynamicLegendDefaultText": "Show All",
67
+ "dynamicLegendItemLimit": 5,
68
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
69
+ "dynamicLegendChartMessage": "Select Options from the Legend",
70
+ "label": "Type of Data"
71
+ },
72
+ "exclusions": {
73
+ "active": false,
74
+ "keys": []
75
+ },
76
+ "palette": "qualitative-bold",
77
+ "isPaletteReversed": false,
78
+ "labels": false,
79
+ "dataFormat": {
80
+ "commas": false,
81
+ "prefix": "",
82
+ "suffix": ""
83
+ },
84
+ "confidenceKeys": {},
85
+ "visual": {
86
+ "border": true,
87
+ "accent": true,
88
+ "background": true
89
+ },
90
+ "data": [
91
+ {
92
+ "Date": "1/15/2016",
93
+ "Data 1": "90",
94
+ "Data 2": "135",
95
+ "Data 3": "300",
96
+ "Data 4": "95",
97
+ "Data 5": "120",
98
+ "Data 6": "310"
99
+ },
100
+ {
101
+ "Date": "2/15/2016",
102
+ "Data 1": "40",
103
+ "Data 2": "90",
104
+ "Data 3": "240",
105
+ "Data 4": "60",
106
+ "Data 5": "160",
107
+ "Data 6": "200"
108
+ },
109
+ {
110
+ "Date": "3/15/2016",
111
+ "Data 1": "50",
112
+ "Data 2": "300",
113
+ "Data 3": "290",
114
+ "Data 4": "100",
115
+ "Data 5": "200",
116
+ "Data 6": "250"
117
+ },
118
+ {
119
+ "Date": "4/15/2016",
120
+ "Data 1": "120",
121
+ "Data 2": "160",
122
+ "Data 3": "230",
123
+ "Data 4": "180",
124
+ "Data 5": "160",
125
+ "Data 6": "220"
126
+ },
127
+ {
128
+ "Date": "5/15/2016",
129
+ "Data 1": "80",
130
+ "Data 2": "350",
131
+ "Data 3": "300",
132
+ "Data 4": "150",
133
+ "Data 5": "130",
134
+ "Data 6": "100"
135
+ },
136
+ {
137
+ "Date": "6/15/2016",
138
+ "Data 1": "90",
139
+ "Data 2": "220",
140
+ "Data 3": "320",
141
+ "Data 4": "100",
142
+ "Data 5": "220",
143
+ "Data 6": "300"
144
+ }
145
+ ],
146
+ "visualizationType": "Line",
147
+ "series": [
148
+ {
149
+ "dataKey": "Data 1",
150
+ "type": "Bar"
151
+ },
152
+ {
153
+ "dataKey": "Data 2",
154
+ "type": "Bar"
155
+ },
156
+ {
157
+ "dataKey": "Data 3",
158
+ "type": "Bar"
159
+ },
160
+ {
161
+ "dataKey": "Data 4",
162
+ "type": "Bar"
163
+ },
164
+ {
165
+ "dataKey": "Data 5",
166
+ "type": "Bar"
167
+ },
168
+ {
169
+ "dataKey": "Data 6",
170
+ "type": "Bar"
171
+ }
172
+ ]
173
+ }