@cdc/chart 4.23.10 → 4.24.1
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 +34606 -32218
- package/examples/feature/bar/additional-column-tooltip.json +446 -0
- package/examples/feature/bar/example-bar-chart.json +1 -46
- package/examples/feature/bar/lollipop.json +156 -0
- package/examples/feature/bar/tall-data.json +98 -0
- package/examples/feature/combo/planet-combo-example-config.json +99 -9
- package/examples/feature/dev-4261.json +399 -0
- package/examples/feature/forest-plot/forest-plot.json +63 -19
- package/examples/feature/forest-plot/{broken.json → linear.json} +77 -23
- package/examples/feature/forest-plot/log.json +26 -0
- package/examples/feature/forest-plot/logarithmic.json +271 -0
- package/examples/feature/line/line-chart-preliminary.json +346 -0
- package/examples/feature/line/line-points.json +340 -0
- package/examples/feature/regions/index.json +462 -0
- package/examples/feature/scatterplot/scatterplot.json +272 -33
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +181 -48
- package/examples/private/chart-t.json +3740 -0
- package/examples/private/combo.json +369 -0
- package/examples/private/epi-data.csv +13 -0
- package/examples/private/epi-data.json +62 -0
- package/examples/private/epi.json +403 -0
- package/examples/private/occupancy.json +109283 -0
- package/examples/private/prod-line-config.json +401 -0
- package/examples/private/region-data.json +822 -0
- package/examples/private/region-testing.json +312 -0
- package/examples/private/scaling.json +45325 -0
- package/examples/private/testing-data.json +1739 -0
- package/examples/private/testing.json +816 -0
- package/examples/sparkline-multilple.json +846 -0
- package/index.html +12 -8
- package/package.json +3 -3
- package/src/CdcChart.tsx +42 -211
- package/src/ConfigContext.tsx +6 -0
- package/src/_stories/Chart.stories.tsx +188 -0
- package/src/_stories/Chart.tooltip.stories.tsx +305 -0
- package/src/_stories/ChartBrush.stories.tsx +19 -0
- package/src/_stories/ChartEditor.stories.tsx +22 -0
- package/src/_stories/ChartLine.preliminary.tsx +19 -0
- package/src/_stories/ChartSuppress.stories.tsx +19 -0
- package/src/_stories/_mock/brush_mock.json +393 -0
- package/src/_stories/_mock/pie_config.json +191 -0
- package/src/_stories/_mock/pie_data.json +218 -0
- package/src/_stories/_mock/preliminary_mock.json +346 -0
- package/src/_stories/_mock/suppress_mock.json +911 -0
- package/src/components/{AreaChart.Stacked.jsx → AreaChart/components/AreaChart.Stacked.jsx} +6 -7
- package/src/components/{AreaChart.jsx → AreaChart/components/AreaChart.jsx} +7 -36
- package/src/components/AreaChart/index.tsx +4 -0
- package/src/components/{BarChart.Horizontal.jsx → BarChart/components/BarChart.Horizontal.tsx} +111 -34
- package/src/components/{BarChart.StackedHorizontal.jsx → BarChart/components/BarChart.StackedHorizontal.tsx} +55 -20
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +106 -0
- package/src/components/{BarChart.Vertical.jsx → BarChart/components/BarChart.Vertical.tsx} +162 -34
- package/src/components/BarChart/components/BarChart.jsx +39 -0
- package/src/components/{BarChartType.jsx → BarChart/components/BarChartType.jsx} +0 -2
- package/src/components/BarChart/components/context.tsx +13 -0
- package/src/components/BarChart/index.tsx +3 -0
- package/src/components/{BoxPlot.jsx → BoxPlot/BoxPlot.jsx} +1 -1
- package/src/components/BoxPlot/index.tsx +3 -0
- package/src/components/DeviationBar.jsx +4 -3
- package/src/components/{EditorPanel.jsx → EditorPanel/EditorPanel.tsx} +807 -865
- package/src/components/EditorPanel/components/Panel.DateHighlighting.tsx +109 -0
- package/src/components/{ForestPlotSettings.jsx → EditorPanel/components/Panel.ForestPlotSettings.tsx} +190 -220
- package/src/components/EditorPanel/components/Panel.Regions.tsx +168 -0
- package/src/components/{Series.jsx → EditorPanel/components/Panel.Series.tsx} +23 -4
- package/src/components/EditorPanel/components/PanelProps.ts +3 -0
- package/src/components/EditorPanel/components/Panels.tsx +13 -0
- package/src/components/EditorPanel/components/panels.scss +72 -0
- package/src/components/EditorPanel/editor-panel.scss +751 -0
- package/src/components/EditorPanel/index.tsx +3 -0
- package/src/{hooks → components/EditorPanel}/useEditorPermissions.js +50 -5
- package/src/components/{Forecasting.jsx → Forecasting/Forecasting.jsx} +1 -1
- package/src/components/Forecasting/index.tsx +3 -0
- package/src/components/ForestPlot/ForestPlot.tsx +254 -0
- package/src/components/ForestPlot/ForestPlotProps.ts +18 -0
- package/src/components/ForestPlot/index.scss +1 -0
- package/src/components/ForestPlot/index.tsx +3 -0
- package/src/components/Legend/Legend.tsx +347 -0
- package/src/components/Legend/index.tsx +3 -0
- package/src/components/LineChart/LineChartProps.ts +46 -0
- package/src/components/{LineChart.Circle.tsx → LineChart/components/LineChart.Circle.tsx} +36 -30
- package/src/components/LineChart/helpers.ts +45 -0
- package/src/components/LineChart/index.scss +1 -0
- package/src/components/{LineChart.tsx → LineChart/index.tsx} +83 -42
- package/src/components/LinearChart.jsx +125 -82
- package/src/components/PairedBarChart.jsx +2 -2
- package/src/components/{PieChart.jsx → PieChart/PieChart.tsx} +16 -7
- package/src/components/PieChart/index.tsx +3 -0
- package/src/components/Regions/components/Regions.tsx +135 -0
- package/src/components/Regions/index.tsx +3 -0
- package/src/components/{ScatterPlot.jsx → ScatterPlot/ScatterPlot.jsx} +3 -3
- package/src/components/ScatterPlot/index.tsx +3 -0
- package/src/components/{SparkLine.jsx → Sparkline/SparkLine.jsx} +2 -2
- package/src/components/Sparkline/index.tsx +3 -0
- package/src/components/ZoomBrush.tsx +168 -0
- package/src/data/initial-state.js +30 -16
- package/src/helpers/abbreviateNumber.ts +17 -0
- package/src/helpers/computeMarginBottom.ts +55 -0
- package/src/helpers/filterData.ts +18 -0
- package/src/helpers/generateColorsArray.ts +8 -0
- package/src/helpers/getQuartiles.ts +30 -0
- package/src/helpers/handleChartAriaLabels.ts +19 -0
- package/src/helpers/handleLineType.ts +18 -0
- package/src/helpers/lineOptions.ts +18 -0
- package/src/helpers/sort.ts +7 -0
- package/src/helpers/tests/computeMarginBottom.test.ts +20 -0
- package/src/hooks/useBarChart.js +72 -7
- package/src/hooks/useColorScale.ts +50 -0
- package/src/hooks/{useMinMax.js → useMinMax.ts} +75 -23
- package/src/hooks/{useRightAxis.js → useRightAxis.ts} +10 -2
- package/src/hooks/{useScales.js → useScales.ts} +64 -17
- package/src/hooks/{useTooltip.jsx → useTooltip.tsx} +84 -55
- package/src/scss/main.scss +70 -38
- package/src/types/ChartConfig.ts +178 -0
- package/src/types/ChartContext.ts +54 -0
- package/src/types/ForestPlot.ts +53 -0
- package/examples/feature/scatterplot/scatterplot-continuous.csv +0 -17
- package/src/ConfigContext.jsx +0 -5
- package/src/components/BarChart.StackedVertical.jsx +0 -95
- package/src/components/BarChart.jsx +0 -30
- package/src/components/ForestPlot.jsx +0 -191
- package/src/components/Legend.jsx +0 -277
- package/src/scss/LinearChart.scss +0 -0
- package/src/scss/editor-panel.scss +0 -745
- package/src/scss/legend.scss +0 -206
- package/src/scss/mixins.scss +0 -0
- package/src/scss/variables.scss +0 -1
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"debugSvg": false,
|
|
4
|
+
"chartMessage": {
|
|
5
|
+
"noData": "No Data Available"
|
|
6
|
+
},
|
|
7
|
+
"title": "",
|
|
8
|
+
"showTitle": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
10
|
+
"theme": "theme-blue",
|
|
11
|
+
"animate": false,
|
|
12
|
+
"fontSize": "medium",
|
|
13
|
+
"lineDatapointStyle": "hover",
|
|
14
|
+
"lineDatapointColor": "Same as Line",
|
|
15
|
+
"barHasBorder": "false",
|
|
16
|
+
"isLollipopChart": false,
|
|
17
|
+
"lollipopShape": "circle",
|
|
18
|
+
"lollipopColorStyle": "two-tone",
|
|
19
|
+
"visualizationSubType": "regular",
|
|
20
|
+
"barStyle": "",
|
|
21
|
+
"roundingStyle": "standard",
|
|
22
|
+
"tipRounding": "top",
|
|
23
|
+
"isResponsiveTicks": false,
|
|
24
|
+
"general": {
|
|
25
|
+
"showDownloadButton": false
|
|
26
|
+
},
|
|
27
|
+
"padding": {
|
|
28
|
+
"left": 5,
|
|
29
|
+
"right": 5
|
|
30
|
+
},
|
|
31
|
+
"suppressedData": [],
|
|
32
|
+
"yAxis": {
|
|
33
|
+
"hideAxis": false,
|
|
34
|
+
"displayNumbersOnBar": false,
|
|
35
|
+
"hideLabel": false,
|
|
36
|
+
"hideTicks": false,
|
|
37
|
+
"size": 50,
|
|
38
|
+
"gridLines": false,
|
|
39
|
+
"enablePadding": false,
|
|
40
|
+
"min": "",
|
|
41
|
+
"max": "",
|
|
42
|
+
"labelColor": "#333",
|
|
43
|
+
"tickLabelColor": "#333",
|
|
44
|
+
"tickColor": "#333",
|
|
45
|
+
"rightHideAxis": true,
|
|
46
|
+
"rightAxisSize": 0,
|
|
47
|
+
"rightLabel": "",
|
|
48
|
+
"rightLabelOffsetSize": 0,
|
|
49
|
+
"rightAxisLabelColor": "#333",
|
|
50
|
+
"rightAxisTickLabelColor": "#333",
|
|
51
|
+
"rightAxisTickColor": "#333",
|
|
52
|
+
"numTicks": "",
|
|
53
|
+
"axisPadding": 0,
|
|
54
|
+
"tickRotation": 0,
|
|
55
|
+
"anchors": []
|
|
56
|
+
},
|
|
57
|
+
"boxplot": {
|
|
58
|
+
"plots": [],
|
|
59
|
+
"borders": "true",
|
|
60
|
+
"firstQuartilePercentage": 25,
|
|
61
|
+
"thirdQuartilePercentage": 75,
|
|
62
|
+
"boxWidthPercentage": 40,
|
|
63
|
+
"plotOutlierValues": false,
|
|
64
|
+
"plotNonOutlierValues": true,
|
|
65
|
+
"legend": {
|
|
66
|
+
"showHowToReadText": false,
|
|
67
|
+
"howToReadText": ""
|
|
68
|
+
},
|
|
69
|
+
"labels": {
|
|
70
|
+
"q1": "Lower Quartile",
|
|
71
|
+
"q2": "q2",
|
|
72
|
+
"q3": "Upper Quartile",
|
|
73
|
+
"q4": "q4",
|
|
74
|
+
"minimum": "Minimum",
|
|
75
|
+
"maximum": "Maximum",
|
|
76
|
+
"mean": "Mean",
|
|
77
|
+
"median": "Median",
|
|
78
|
+
"sd": "Standard Deviation",
|
|
79
|
+
"iqr": "Interquartile Range",
|
|
80
|
+
"total": "Total",
|
|
81
|
+
"outliers": "Outliers",
|
|
82
|
+
"values": "Values",
|
|
83
|
+
"lowerBounds": "Lower Bounds",
|
|
84
|
+
"upperBounds": "Upper Bounds"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"topAxis": {
|
|
88
|
+
"hasLine": false
|
|
89
|
+
},
|
|
90
|
+
"isLegendValue": false,
|
|
91
|
+
"barThickness": 0.35,
|
|
92
|
+
"barHeight": 25,
|
|
93
|
+
"barSpace": 15,
|
|
94
|
+
"heights": {
|
|
95
|
+
"vertical": 300,
|
|
96
|
+
"horizontal": 750
|
|
97
|
+
},
|
|
98
|
+
"xAxis": {
|
|
99
|
+
"sortDates": false,
|
|
100
|
+
"anchors": [],
|
|
101
|
+
"type": "categorical",
|
|
102
|
+
"showTargetLabel": true,
|
|
103
|
+
"targetLabel": "Target",
|
|
104
|
+
"hideAxis": false,
|
|
105
|
+
"hideLabel": false,
|
|
106
|
+
"hideTicks": false,
|
|
107
|
+
"size": 75,
|
|
108
|
+
"tickRotation": 0,
|
|
109
|
+
"min": "",
|
|
110
|
+
"max": "",
|
|
111
|
+
"labelColor": "#333",
|
|
112
|
+
"tickLabelColor": "#333",
|
|
113
|
+
"tickColor": "#333",
|
|
114
|
+
"numTicks": "",
|
|
115
|
+
"labelOffset": 65,
|
|
116
|
+
"axisPadding": 0,
|
|
117
|
+
"target": 0,
|
|
118
|
+
"maxTickRotation": 0,
|
|
119
|
+
"dataKey": "date",
|
|
120
|
+
"tickWidthMax": 51
|
|
121
|
+
},
|
|
122
|
+
"table": {
|
|
123
|
+
"label": "Data Table",
|
|
124
|
+
"expanded": true,
|
|
125
|
+
"limitHeight": false,
|
|
126
|
+
"height": "",
|
|
127
|
+
"caption": "",
|
|
128
|
+
"showDownloadUrl": false,
|
|
129
|
+
"showDataTableLink": true,
|
|
130
|
+
"indexLabel": "",
|
|
131
|
+
"download": false,
|
|
132
|
+
"showVertical": true,
|
|
133
|
+
"show": true
|
|
134
|
+
},
|
|
135
|
+
"orientation": "vertical",
|
|
136
|
+
"color": "pinkpurple",
|
|
137
|
+
"columns": {
|
|
138
|
+
"additionalColumn1": {
|
|
139
|
+
"label": "COVID Lower CI",
|
|
140
|
+
"dataTable": false,
|
|
141
|
+
"tooltips": true,
|
|
142
|
+
"prefix": "",
|
|
143
|
+
"suffix": "",
|
|
144
|
+
"forestPlot": false,
|
|
145
|
+
"startingPoint": "0",
|
|
146
|
+
"forestPlotAlignRight": false,
|
|
147
|
+
"series": "COVID-value",
|
|
148
|
+
"name": "COVID-lower_ci"
|
|
149
|
+
},
|
|
150
|
+
"additionalColumn2": {
|
|
151
|
+
"label": "COVID Upper CI",
|
|
152
|
+
"dataTable": false,
|
|
153
|
+
"tooltips": true,
|
|
154
|
+
"prefix": "",
|
|
155
|
+
"suffix": "",
|
|
156
|
+
"forestPlot": false,
|
|
157
|
+
"startingPoint": "0",
|
|
158
|
+
"forestPlotAlignRight": false,
|
|
159
|
+
"name": "COVID-upper_ci",
|
|
160
|
+
"series": "COVID-value"
|
|
161
|
+
},
|
|
162
|
+
"additionalColumn3": {
|
|
163
|
+
"label": "RSV Lower CI",
|
|
164
|
+
"dataTable": false,
|
|
165
|
+
"tooltips": true,
|
|
166
|
+
"prefix": "",
|
|
167
|
+
"suffix": "",
|
|
168
|
+
"forestPlot": false,
|
|
169
|
+
"startingPoint": "0",
|
|
170
|
+
"forestPlotAlignRight": false,
|
|
171
|
+
"series": "RSV-value",
|
|
172
|
+
"name": "RSV-lower_ci"
|
|
173
|
+
},
|
|
174
|
+
"additionalColumn4": {
|
|
175
|
+
"label": "RSV Upper CI",
|
|
176
|
+
"dataTable": false,
|
|
177
|
+
"tooltips": true,
|
|
178
|
+
"prefix": "",
|
|
179
|
+
"suffix": "",
|
|
180
|
+
"forestPlot": false,
|
|
181
|
+
"startingPoint": "0",
|
|
182
|
+
"forestPlotAlignRight": false,
|
|
183
|
+
"name": "RSV-upper_ci",
|
|
184
|
+
"series": "RSV-value"
|
|
185
|
+
},
|
|
186
|
+
"additionalColumn5": {
|
|
187
|
+
"label": "Flu Lower CI",
|
|
188
|
+
"dataTable": false,
|
|
189
|
+
"tooltips": true,
|
|
190
|
+
"prefix": "",
|
|
191
|
+
"suffix": "",
|
|
192
|
+
"forestPlot": false,
|
|
193
|
+
"startingPoint": "0",
|
|
194
|
+
"forestPlotAlignRight": false,
|
|
195
|
+
"name": "Flu-lower_ci",
|
|
196
|
+
"series": "Flu-value"
|
|
197
|
+
},
|
|
198
|
+
"additionalColumn6": {
|
|
199
|
+
"label": "Flu Upper CI",
|
|
200
|
+
"dataTable": false,
|
|
201
|
+
"tooltips": true,
|
|
202
|
+
"prefix": "",
|
|
203
|
+
"suffix": "",
|
|
204
|
+
"forestPlot": false,
|
|
205
|
+
"startingPoint": "0",
|
|
206
|
+
"forestPlotAlignRight": false,
|
|
207
|
+
"name": "Flu-upper_ci",
|
|
208
|
+
"series": "Flu-value"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"legend": {
|
|
212
|
+
"hide": false,
|
|
213
|
+
"behavior": "isolate",
|
|
214
|
+
"singleRow": false,
|
|
215
|
+
"colorCode": "",
|
|
216
|
+
"reverseLabelOrder": false,
|
|
217
|
+
"description": "",
|
|
218
|
+
"dynamicLegend": false,
|
|
219
|
+
"dynamicLegendDefaultText": "Show All",
|
|
220
|
+
"dynamicLegendItemLimit": 5,
|
|
221
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
222
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
223
|
+
"lineMode": false,
|
|
224
|
+
"verticalSorted": false,
|
|
225
|
+
"highlightOnHover": false
|
|
226
|
+
},
|
|
227
|
+
"brush": {
|
|
228
|
+
"height": 25,
|
|
229
|
+
"data": [
|
|
230
|
+
{
|
|
231
|
+
"date": "1/1/23",
|
|
232
|
+
"filter1": "value1",
|
|
233
|
+
"COVID-value": 23,
|
|
234
|
+
"COVID-lower_ci": 20,
|
|
235
|
+
"COVID-upper_ci": 47,
|
|
236
|
+
"RSV-value": 33,
|
|
237
|
+
"RSV-lower_ci": 10,
|
|
238
|
+
"RSV-upper_ci": 57,
|
|
239
|
+
"Flu-value": 53,
|
|
240
|
+
"Flu-lower_ci": 40,
|
|
241
|
+
"Flu-upper_ci": 67
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"date": "1/2/23",
|
|
245
|
+
"filter1": "value1",
|
|
246
|
+
"COVID-value": 60,
|
|
247
|
+
"COVID-lower_ci": 20,
|
|
248
|
+
"COVID-upper_ci": 87,
|
|
249
|
+
"RSV-value": 33,
|
|
250
|
+
"RSV-lower_ci": 10,
|
|
251
|
+
"RSV-upper_ci": 57,
|
|
252
|
+
"Flu-value": 53,
|
|
253
|
+
"Flu-lower_ci": 40,
|
|
254
|
+
"Flu-upper_ci": 67
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"active": false
|
|
258
|
+
},
|
|
259
|
+
"exclusions": {
|
|
260
|
+
"active": false,
|
|
261
|
+
"keys": []
|
|
262
|
+
},
|
|
263
|
+
"palette": "qualitative-bold",
|
|
264
|
+
"isPaletteReversed": false,
|
|
265
|
+
"twoColor": {
|
|
266
|
+
"palette": "monochrome-1",
|
|
267
|
+
"isPaletteReversed": false
|
|
268
|
+
},
|
|
269
|
+
"labels": false,
|
|
270
|
+
"dataFormat": {
|
|
271
|
+
"commas": false,
|
|
272
|
+
"prefix": "",
|
|
273
|
+
"suffix": "",
|
|
274
|
+
"abbreviated": false,
|
|
275
|
+
"bottomSuffix": "",
|
|
276
|
+
"bottomPrefix": "",
|
|
277
|
+
"bottomAbbreviated": false
|
|
278
|
+
},
|
|
279
|
+
"confidenceKeys": {},
|
|
280
|
+
"visual": {
|
|
281
|
+
"border": true,
|
|
282
|
+
"accent": true,
|
|
283
|
+
"background": true,
|
|
284
|
+
"verticalHoverLine": false,
|
|
285
|
+
"horizontalHoverLine": false
|
|
286
|
+
},
|
|
287
|
+
"useLogScale": false,
|
|
288
|
+
"filterBehavior": "Filter Change",
|
|
289
|
+
"highlightedBarValues": [],
|
|
290
|
+
"series": [
|
|
291
|
+
{
|
|
292
|
+
"dataKey": "COVID-value",
|
|
293
|
+
"type": "Bar",
|
|
294
|
+
"axis": "Left",
|
|
295
|
+
"tooltip": true
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"dataKey": "RSV-value",
|
|
299
|
+
"type": "Bar",
|
|
300
|
+
"axis": "Left",
|
|
301
|
+
"tooltip": true
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"dataKey": "Flu-value",
|
|
305
|
+
"type": "Bar",
|
|
306
|
+
"axis": "Left",
|
|
307
|
+
"tooltip": true
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"tooltips": {
|
|
311
|
+
"opacity": 90,
|
|
312
|
+
"singleSeries": true
|
|
313
|
+
},
|
|
314
|
+
"forestPlot": {
|
|
315
|
+
"startAt": 0,
|
|
316
|
+
"colors": {
|
|
317
|
+
"line": "",
|
|
318
|
+
"shape": ""
|
|
319
|
+
},
|
|
320
|
+
"lineOfNoEffect": {
|
|
321
|
+
"show": true
|
|
322
|
+
},
|
|
323
|
+
"type": "",
|
|
324
|
+
"pooledResult": {
|
|
325
|
+
"diamondHeight": 5,
|
|
326
|
+
"column": ""
|
|
327
|
+
},
|
|
328
|
+
"estimateField": "",
|
|
329
|
+
"estimateRadius": "",
|
|
330
|
+
"shape": "",
|
|
331
|
+
"rowHeight": 20,
|
|
332
|
+
"description": {
|
|
333
|
+
"show": true,
|
|
334
|
+
"text": "description",
|
|
335
|
+
"location": 0
|
|
336
|
+
},
|
|
337
|
+
"result": {
|
|
338
|
+
"show": true,
|
|
339
|
+
"text": "result",
|
|
340
|
+
"location": 100
|
|
341
|
+
},
|
|
342
|
+
"radius": {
|
|
343
|
+
"min": 1,
|
|
344
|
+
"max": 8,
|
|
345
|
+
"scalingColumn": ""
|
|
346
|
+
},
|
|
347
|
+
"regression": {
|
|
348
|
+
"lower": 0,
|
|
349
|
+
"upper": 0,
|
|
350
|
+
"estimateField": 0
|
|
351
|
+
},
|
|
352
|
+
"leftWidthOffset": 0,
|
|
353
|
+
"rightWidthOffset": 0,
|
|
354
|
+
"showZeroLine": false,
|
|
355
|
+
"hideDateCategoryCol": false,
|
|
356
|
+
"leftLabel": "",
|
|
357
|
+
"rightLabel": ""
|
|
358
|
+
},
|
|
359
|
+
"area": {
|
|
360
|
+
"isStacked": false
|
|
361
|
+
},
|
|
362
|
+
"visualizationType": "Bar",
|
|
363
|
+
"dataUrl": "examples/feature/bar/tall-data.json",
|
|
364
|
+
"dataFileName": "tall-data.json",
|
|
365
|
+
"dataFileSourceType": "file",
|
|
366
|
+
"dataDescription": {
|
|
367
|
+
"horizontal": false,
|
|
368
|
+
"series": true,
|
|
369
|
+
"singleRow": false,
|
|
370
|
+
"seriesKey": "pathogen",
|
|
371
|
+
"xKey": "date",
|
|
372
|
+
"valueKeys": [
|
|
373
|
+
"value",
|
|
374
|
+
"lower_ci",
|
|
375
|
+
"upper_ci"
|
|
376
|
+
]
|
|
377
|
+
},
|
|
378
|
+
"validated": 4.23,
|
|
379
|
+
"filters": [
|
|
380
|
+
{
|
|
381
|
+
"values": [
|
|
382
|
+
"value1",
|
|
383
|
+
"value2"
|
|
384
|
+
],
|
|
385
|
+
"active": "value1",
|
|
386
|
+
"filterStyle": "dropdown",
|
|
387
|
+
"columnName": "filter1",
|
|
388
|
+
"order": "asc"
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"dynamicMarginTop": 0,
|
|
392
|
+
"data": [
|
|
393
|
+
{
|
|
394
|
+
"date": "1/1/23",
|
|
395
|
+
"filter1": "value1",
|
|
396
|
+
"COVID-value": 23,
|
|
397
|
+
"COVID-lower_ci": 20,
|
|
398
|
+
"COVID-upper_ci": 47,
|
|
399
|
+
"RSV-value": 33,
|
|
400
|
+
"RSV-lower_ci": 10,
|
|
401
|
+
"RSV-upper_ci": 57,
|
|
402
|
+
"Flu-value": 53,
|
|
403
|
+
"Flu-lower_ci": 40,
|
|
404
|
+
"Flu-upper_ci": 67
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"date": "1/2/23",
|
|
408
|
+
"filter1": "value1",
|
|
409
|
+
"COVID-value": 60,
|
|
410
|
+
"COVID-lower_ci": 20,
|
|
411
|
+
"COVID-upper_ci": 87,
|
|
412
|
+
"RSV-value": 33,
|
|
413
|
+
"RSV-lower_ci": 10,
|
|
414
|
+
"RSV-upper_ci": 57,
|
|
415
|
+
"Flu-value": 53,
|
|
416
|
+
"Flu-lower_ci": 40,
|
|
417
|
+
"Flu-upper_ci": 67
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"date": "1/1/23",
|
|
421
|
+
"filter1": "value2",
|
|
422
|
+
"COVID-value": 23,
|
|
423
|
+
"COVID-lower_ci": 20,
|
|
424
|
+
"COVID-upper_ci": 47,
|
|
425
|
+
"RSV-value": 33,
|
|
426
|
+
"RSV-lower_ci": 10,
|
|
427
|
+
"RSV-upper_ci": 57,
|
|
428
|
+
"Flu-value": 53,
|
|
429
|
+
"Flu-lower_ci": 40,
|
|
430
|
+
"Flu-upper_ci": 67
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"date": "1/2/23",
|
|
434
|
+
"filter1": "value2",
|
|
435
|
+
"COVID-value": 23,
|
|
436
|
+
"COVID-lower_ci": 20,
|
|
437
|
+
"COVID-upper_ci": 47,
|
|
438
|
+
"RSV-value": 33,
|
|
439
|
+
"RSV-lower_ci": 10,
|
|
440
|
+
"RSV-upper_ci": 57,
|
|
441
|
+
"Flu-value": 53,
|
|
442
|
+
"Flu-lower_ci": 40,
|
|
443
|
+
"Flu-upper_ci": 67
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
}
|
|
@@ -498,58 +498,13 @@
|
|
|
498
498
|
"height": 300,
|
|
499
499
|
"data": [
|
|
500
500
|
{
|
|
501
|
-
"Date": "
|
|
501
|
+
"Date": "2023-08-28T00:00:00",
|
|
502
502
|
"Data 1": "90",
|
|
503
503
|
"Data 2": "135",
|
|
504
504
|
"Data 3": "300",
|
|
505
505
|
"Data 4": "95",
|
|
506
506
|
"Data 5": "120",
|
|
507
507
|
"Data 6": "Bad"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"Date": "2/15/2016",
|
|
511
|
-
"Data 1": "40",
|
|
512
|
-
"Data 2": "90",
|
|
513
|
-
"Data 3": "240",
|
|
514
|
-
"Data 4": "60",
|
|
515
|
-
"Data 5": "160",
|
|
516
|
-
"Data 6": "Good"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"Date": "3/15/2016",
|
|
520
|
-
"Data 1": "50",
|
|
521
|
-
"Data 2": "300",
|
|
522
|
-
"Data 3": "290",
|
|
523
|
-
"Data 4": "100",
|
|
524
|
-
"Data 5": "200",
|
|
525
|
-
"Data 6": "Good"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"Date": "4/15/2016",
|
|
529
|
-
"Data 1": "120",
|
|
530
|
-
"Data 2": "160",
|
|
531
|
-
"Data 3": "230",
|
|
532
|
-
"Data 4": "180",
|
|
533
|
-
"Data 5": "160",
|
|
534
|
-
"Data 6": "Good"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"Date": "5/15/2016",
|
|
538
|
-
"Data 1": "80",
|
|
539
|
-
"Data 2": "350",
|
|
540
|
-
"Data 3": "300",
|
|
541
|
-
"Data 4": "150",
|
|
542
|
-
"Data 5": "130",
|
|
543
|
-
"Data 6": "Good"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"Date": "6/15/2016",
|
|
547
|
-
"Data 1": "80",
|
|
548
|
-
"Data 2": "220",
|
|
549
|
-
"Data 3": "320",
|
|
550
|
-
"Data 4": "100",
|
|
551
|
-
"Data 5": "220",
|
|
552
|
-
"Data 6": "ABC"
|
|
553
508
|
}
|
|
554
509
|
],
|
|
555
510
|
"visualizationType": "Bar",
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Planet Radius (Bar Example)",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
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": 50,
|
|
26
|
+
"gridLines": false,
|
|
27
|
+
"min": "",
|
|
28
|
+
"max": "",
|
|
29
|
+
"labelColor": "#333",
|
|
30
|
+
"tickLabelColor": "#333",
|
|
31
|
+
"tickColor": "#333",
|
|
32
|
+
"rightHideAxis": true,
|
|
33
|
+
"rightAxisSize": 50,
|
|
34
|
+
"rightLabel": "testing",
|
|
35
|
+
"rightLabelOffsetSize": 0,
|
|
36
|
+
"rightAxisLabelColor": "#333",
|
|
37
|
+
"rightAxisTickLabelColor": "#333",
|
|
38
|
+
"rightAxisTickColor": "#333",
|
|
39
|
+
"numTicks": "11",
|
|
40
|
+
"axisPadding": 0,
|
|
41
|
+
"tickRotation": 0,
|
|
42
|
+
"label": "Measurement (1000km)",
|
|
43
|
+
"rightSeries": "Diameter"
|
|
44
|
+
},
|
|
45
|
+
"boxplot": {
|
|
46
|
+
"plots": [],
|
|
47
|
+
"borders": "true",
|
|
48
|
+
"firstQuartilePercentage": 25,
|
|
49
|
+
"thirdQuartilePercentage": 75,
|
|
50
|
+
"boxWidthPercentage": 40,
|
|
51
|
+
"plotOutlierValues": false,
|
|
52
|
+
"plotNonOutlierValues": true,
|
|
53
|
+
"legend": {
|
|
54
|
+
"showHowToReadText": false,
|
|
55
|
+
"howToReadText": ""
|
|
56
|
+
},
|
|
57
|
+
"labels": {
|
|
58
|
+
"q1": "Lower Quartile",
|
|
59
|
+
"q2": "q2",
|
|
60
|
+
"q3": "Upper Quartile",
|
|
61
|
+
"q4": "q4",
|
|
62
|
+
"minimum": "Minimum",
|
|
63
|
+
"maximum": "Maximum",
|
|
64
|
+
"mean": "Mean",
|
|
65
|
+
"median": "Median",
|
|
66
|
+
"sd": "Standard Deviation",
|
|
67
|
+
"iqr": "Interquartile Range",
|
|
68
|
+
"count": "Count",
|
|
69
|
+
"outliers": "Outliers",
|
|
70
|
+
"values": "Values"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"topAxis": {
|
|
74
|
+
"hasLine": false
|
|
75
|
+
},
|
|
76
|
+
"isLegendValue": false,
|
|
77
|
+
"barThickness": 0.35,
|
|
78
|
+
"barHeight": 25,
|
|
79
|
+
"barSpace": 15,
|
|
80
|
+
"heights": {
|
|
81
|
+
"vertical": 300,
|
|
82
|
+
"horizontal": 405
|
|
83
|
+
},
|
|
84
|
+
"xAxis": {
|
|
85
|
+
"type": "categorical",
|
|
86
|
+
"hideAxis": false,
|
|
87
|
+
"hideLabel": false,
|
|
88
|
+
"hideTicks": false,
|
|
89
|
+
"size": 75,
|
|
90
|
+
"tickRotation": "0",
|
|
91
|
+
"min": "",
|
|
92
|
+
"max": "",
|
|
93
|
+
"labelColor": "#333",
|
|
94
|
+
"tickLabelColor": "#333",
|
|
95
|
+
"tickColor": "#333",
|
|
96
|
+
"numTicks": "",
|
|
97
|
+
"labelOffset": 65,
|
|
98
|
+
"axisPadding": 0,
|
|
99
|
+
"label": "Planet",
|
|
100
|
+
"dataKey": "name"
|
|
101
|
+
},
|
|
102
|
+
"table": {
|
|
103
|
+
"label": "Data Table",
|
|
104
|
+
"expanded": false,
|
|
105
|
+
"limitHeight": false,
|
|
106
|
+
"height": "",
|
|
107
|
+
"caption": "",
|
|
108
|
+
"showDownloadUrl": false,
|
|
109
|
+
"show": true
|
|
110
|
+
},
|
|
111
|
+
"orientation": "horizontal",
|
|
112
|
+
"legend": {
|
|
113
|
+
"behavior": "isolate",
|
|
114
|
+
"position": "right",
|
|
115
|
+
"singleRow": false,
|
|
116
|
+
"colorCode": "",
|
|
117
|
+
"reverseLabelOrder": false,
|
|
118
|
+
"description": "",
|
|
119
|
+
"dynamicLegend": false,
|
|
120
|
+
"dynamicLegendDefaultText": "Show All",
|
|
121
|
+
"dynamicLegendItemLimit": 5,
|
|
122
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
123
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
124
|
+
"hide": false
|
|
125
|
+
},
|
|
126
|
+
"exclusions": {
|
|
127
|
+
"active": false,
|
|
128
|
+
"keys": []
|
|
129
|
+
},
|
|
130
|
+
"palette": "qualitative-bold",
|
|
131
|
+
"isPaletteReversed": false,
|
|
132
|
+
"labels": false,
|
|
133
|
+
"dataFormat": {
|
|
134
|
+
"commas": false,
|
|
135
|
+
"prefix": "",
|
|
136
|
+
"suffix": "km",
|
|
137
|
+
"abbreviated": false,
|
|
138
|
+
"roundTo": 1
|
|
139
|
+
},
|
|
140
|
+
"confidenceKeys": {},
|
|
141
|
+
"visual": {
|
|
142
|
+
"border": true,
|
|
143
|
+
"accent": true,
|
|
144
|
+
"background": true
|
|
145
|
+
},
|
|
146
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
147
|
+
"visualizationType": "Deviation Bar",
|
|
148
|
+
"series": [
|
|
149
|
+
{
|
|
150
|
+
"dataKey": "Radius",
|
|
151
|
+
"type": "Deviation Bar",
|
|
152
|
+
"axis": "Left"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"dataCutoff": "0.5"
|
|
156
|
+
}
|