@cdc/chart 4.25.6-2 → 4.25.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.
Files changed (54) hide show
  1. package/dist/cdcchart.js +52634 -30848
  2. package/package.json +3 -2
  3. package/src/CdcChartComponent.tsx +13 -9
  4. package/src/_stories/Chart.BoxPlot.stories.tsx +35 -0
  5. package/src/_stories/Chart.stories.tsx +0 -7
  6. package/src/_stories/Chart.tooltip.stories.tsx +35 -275
  7. package/src/_stories/_mock/bar-chart-suppressed.json +2 -80
  8. package/src/_stories/_mock/boxplot_multiseries.json +252 -166
  9. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +1 -1
  10. package/src/components/AreaChart/components/AreaChart.jsx +4 -8
  11. package/src/components/BarChart/components/BarChart.Horizontal.tsx +34 -2
  12. package/src/components/BarChart/components/BarChart.Vertical.tsx +15 -0
  13. package/src/components/BoxPlot/BoxPlot.Horizontal.tsx +131 -0
  14. package/src/components/BoxPlot/{BoxPlot.tsx → BoxPlot.Vertical.tsx} +4 -4
  15. package/src/components/BoxPlot/helpers/index.ts +32 -12
  16. package/src/components/BrushChart.tsx +1 -1
  17. package/src/components/EditorPanel/EditorPanel.tsx +3 -3
  18. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +2 -2
  19. package/src/components/Forecasting/{Forecasting.jsx → Forecasting.tsx} +32 -12
  20. package/src/components/Legend/LegendGroup/LegendGroup.tsx +1 -0
  21. package/src/components/Legend/helpers/index.ts +2 -2
  22. package/src/components/LinearChart.tsx +63 -15
  23. package/src/data/initial-state.js +1 -5
  24. package/src/helpers/filterAndShiftLinearDateTicks.ts +58 -0
  25. package/src/helpers/getBridgedData.ts +13 -0
  26. package/src/helpers/tests/getBridgedData.test.ts +64 -0
  27. package/src/hooks/useScales.ts +42 -42
  28. package/src/hooks/useTooltip.tsx +3 -2
  29. package/src/scss/main.scss +2 -8
  30. package/src/store/chart.actions.ts +2 -2
  31. package/src/store/chart.reducer.ts +4 -12
  32. package/src/types/ChartConfig.ts +0 -5
  33. package/examples/private/0527.json +0 -1
  34. package/examples/private/DEV-8850-2.json +0 -493
  35. package/examples/private/DEV-9822.json +0 -574
  36. package/examples/private/DEV-9840.json +0 -553
  37. package/examples/private/DEV-9850-3.json +0 -461
  38. package/examples/private/chart.json +0 -1084
  39. package/examples/private/ci_formatted.json +0 -202
  40. package/examples/private/ci_issue.json +0 -3016
  41. package/examples/private/completed.json +0 -634
  42. package/examples/private/dem-data-long.csv +0 -20
  43. package/examples/private/dem-data-long.json +0 -36
  44. package/examples/private/demographic_data.csv +0 -157
  45. package/examples/private/demographic_data.json +0 -2654
  46. package/examples/private/demographic_dynamic.json +0 -443
  47. package/examples/private/demographic_standard.json +0 -560
  48. package/examples/private/ehdi.json +0 -29939
  49. package/examples/private/line-issue.json +0 -497
  50. package/examples/private/not-loading.json +0 -360
  51. package/examples/private/test.json +0 -493
  52. package/examples/private/testing-pie.json +0 -436
  53. package/src/components/BoxPlot/index.tsx +0 -3
  54. /package/src/components/Brush/{BrushController..tsx → BrushController.tsx} +0 -0
@@ -1,360 +0,0 @@
1
- {
2
- "errors": [],
3
- "currentViewport": "lg",
4
- "id": 1,
5
- "category": "Charts",
6
- "label": "Bar",
7
- "type": "chart",
8
- "subType": "Bar",
9
- "orientation": "vertical",
10
- "barThickness": "0.37",
11
- "visualizationSubType": "regular",
12
- "xAxis": {
13
- "sortDates": false,
14
- "anchors": [],
15
- "type": "categorical",
16
- "showTargetLabel": true,
17
- "targetLabel": "Target",
18
- "hideAxis": false,
19
- "hideLabel": false,
20
- "hideTicks": false,
21
- "size": 75,
22
- "tickRotation": 0,
23
- "min": "",
24
- "max": "",
25
- "labelColor": "#333",
26
- "tickLabelColor": "#333",
27
- "tickColor": "#333",
28
- "numTicks": "",
29
- "labelOffset": 0,
30
- "axisPadding": 200,
31
- "target": 0,
32
- "maxTickRotation": 45,
33
- "padding": 5,
34
- "showYearsOnce": false,
35
- "sortByRecentDate": false,
36
- "dataKey": "date",
37
- "tickWidthMax": 86
38
- },
39
- "icon": {
40
- "key": null,
41
- "ref": null,
42
- "props": {},
43
- "_owner": null,
44
- "_store": {}
45
- },
46
- "content": "Use bars to show comparisons between data categories.",
47
- "visualizationType": "Bar",
48
- "datasets": {},
49
- "activeVizButtonID": 1,
50
- "dataFileName": "http://localhost:8080/example/data-vertical.json",
51
- "dataFileSourceType": "url",
52
- "formattedData": [
53
- {
54
- "date": "01/01/2020",
55
- "value": 90
56
- },
57
- {
58
- "date": "02/01/2020",
59
- "value": 120
60
- },
61
- {
62
- "date": "03/01/2020",
63
- "value": 150
64
- }
65
- ],
66
- "dataUrl": "http://localhost:8080/examples/data-vertical.json",
67
- "dataDescription": {
68
- "horizontal": false,
69
- "series": false
70
- },
71
- "annotations": [],
72
- "debugSvg": false,
73
- "chartMessage": {
74
- "noData": "No Data Available"
75
- },
76
- "title": "Chart Title",
77
- "showTitle": true,
78
- "showDownloadMediaButton": false,
79
- "theme": "theme-blue",
80
- "animate": false,
81
- "lineDatapointStyle": "hover",
82
- "lineDatapointColor": "Same as Line",
83
- "barHasBorder": "true",
84
- "isLollipopChart": false,
85
- "lollipopShape": "circle",
86
- "lollipopColorStyle": "two-tone",
87
- "barStyle": "",
88
- "roundingStyle": "standard",
89
- "tipRounding": "top",
90
- "isResponsiveTicks": false,
91
- "general": {
92
- "annotationDropdownText": "Annotations",
93
- "showDownloadButton": false,
94
- "showMissingDataLabel": true,
95
- "showSuppressedSymbol": true,
96
- "showZeroValueData": true,
97
- "hideNullValue": true
98
- },
99
- "padding": {
100
- "left": 5,
101
- "right": 5
102
- },
103
- "preliminaryData": [],
104
- "yAxis": {
105
- "hideAxis": false,
106
- "displayNumbersOnBar": false,
107
- "hideLabel": false,
108
- "hideTicks": false,
109
- "size": 50,
110
- "gridLines": false,
111
- "enablePadding": false,
112
- "min": "",
113
- "max": "",
114
- "labelColor": "#333",
115
- "tickLabelColor": "#333",
116
- "tickColor": "#333",
117
- "rightHideAxis": false,
118
- "rightAxisSize": 0,
119
- "rightLabel": "",
120
- "rightLabelOffsetSize": 0,
121
- "rightAxisLabelColor": "#333",
122
- "rightAxisTickLabelColor": "#333",
123
- "rightAxisTickColor": "#333",
124
- "numTicks": "",
125
- "axisPadding": 0,
126
- "scalePadding": 10,
127
- "tickRotation": 0,
128
- "anchors": [],
129
- "shoMissingDataLabel": true,
130
- "showMissingDataLine": true,
131
- "categories": []
132
- },
133
- "boxplot": {
134
- "plots": [],
135
- "borders": "true",
136
- "plotOutlierValues": false,
137
- "plotNonOutlierValues": true,
138
- "labels": {
139
- "q1": "Lower Quartile",
140
- "q2": "q2",
141
- "q3": "Upper Quartile",
142
- "q4": "q4",
143
- "minimum": "Minimum",
144
- "maximum": "Maximum",
145
- "mean": "Mean",
146
- "median": "Median",
147
- "sd": "Standard Deviation",
148
- "iqr": "Interquartile Range",
149
- "count": "Count",
150
- "outliers": "Outliers",
151
- "values": "Values",
152
- "lowerBounds": "Lower Bounds",
153
- "upperBounds": "Upper Bounds"
154
- }
155
- },
156
- "topAxis": {
157
- "hasLine": false
158
- },
159
- "isLegendValue": false,
160
- "barHeight": 25,
161
- "barSpace": 15,
162
- "heights": {
163
- "vertical": 300,
164
- "horizontal": 750
165
- },
166
- "table": {
167
- "label": "Data Table",
168
- "expanded": true,
169
- "limitHeight": false,
170
- "height": "",
171
- "caption": "",
172
- "showDownloadUrl": false,
173
- "showDataTableLink": true,
174
- "showDownloadLinkBelow": true,
175
- "indexLabel": "",
176
- "download": true,
177
- "showVertical": true,
178
- "dateDisplayFormat": "",
179
- "showMissingDataLabel": true,
180
- "showSuppressedSymbol": true,
181
- "show": true
182
- },
183
- "color": "pinkpurple",
184
- "columns": {},
185
- "legend": {
186
- "hide": false,
187
- "behavior": "isolate",
188
- "axisAlign": true,
189
- "singleRow": true,
190
- "colorCode": "",
191
- "reverseLabelOrder": false,
192
- "description": "",
193
- "dynamicLegend": false,
194
- "dynamicLegendDefaultText": "Show All",
195
- "dynamicLegendItemLimit": 5,
196
- "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
197
- "dynamicLegendChartMessage": "Select Options from the Legend",
198
- "label": "",
199
- "lineMode": false,
200
- "verticalSorted": false,
201
- "highlightOnHover": false,
202
- "hideSuppressedLabels": false,
203
- "hideSuppressionLink": false,
204
- "seriesHighlight": [],
205
- "style": "circles",
206
- "subStyle": "linear blocks",
207
- "shape": "circle",
208
- "tickRotation": "",
209
- "hideBorder": {
210
- "side": false,
211
- "topBottom": true
212
- },
213
- "position": "right"
214
- },
215
- "brush": {
216
- "height": 45,
217
- "active": false
218
- },
219
- "exclusions": {
220
- "active": false,
221
- "keys": []
222
- },
223
- "palette": "qualitative-bold",
224
- "isPaletteReversed": false,
225
- "twoColor": {
226
- "palette": "monochrome-1",
227
- "isPaletteReversed": false
228
- },
229
- "labels": true,
230
- "dataFormat": {
231
- "commas": false,
232
- "prefix": "",
233
- "suffix": "",
234
- "abbreviated": false,
235
- "bottomSuffix": "",
236
- "bottomPrefix": "",
237
- "bottomAbbreviated": false
238
- },
239
- "filters": [],
240
- "confidenceKeys": {},
241
- "visual": {
242
- "border": true,
243
- "accent": true,
244
- "background": true,
245
- "verticalHoverLine": false,
246
- "horizontalHoverLine": false,
247
- "lineDatapointSymbol": "none",
248
- "maximumShapeAmount": 7
249
- },
250
- "useLogScale": false,
251
- "filterBehavior": "Filter Change",
252
- "highlightedBarValues": [],
253
- "series": [
254
- {
255
- "dataKey": "value",
256
- "type": "Bar",
257
- "axis": "Left",
258
- "tooltip": true
259
- }
260
- ],
261
- "tooltips": {
262
- "opacity": 90,
263
- "singleSeries": false,
264
- "dateDisplayFormat": ""
265
- },
266
- "forestPlot": {
267
- "startAt": 0,
268
- "colors": {
269
- "line": "",
270
- "shape": ""
271
- },
272
- "lineOfNoEffect": {
273
- "show": true
274
- },
275
- "type": "",
276
- "pooledResult": {
277
- "diamondHeight": 5,
278
- "column": ""
279
- },
280
- "estimateField": "",
281
- "estimateRadius": "",
282
- "shape": "square",
283
- "rowHeight": 20,
284
- "description": {
285
- "show": true,
286
- "text": "description",
287
- "location": 0
288
- },
289
- "result": {
290
- "show": true,
291
- "text": "result",
292
- "location": 100
293
- },
294
- "radius": {
295
- "min": 2,
296
- "max": 10,
297
- "scalingColumn": ""
298
- },
299
- "regression": {
300
- "lower": 0,
301
- "upper": 0,
302
- "estimateField": 0
303
- },
304
- "leftWidthOffset": 0,
305
- "rightWidthOffset": 0,
306
- "showZeroLine": false,
307
- "leftLabel": "",
308
- "rightLabel": ""
309
- },
310
- "area": {
311
- "isStacked": false
312
- },
313
- "sankey": {
314
- "title": {
315
- "defaultColor": "black"
316
- },
317
- "iterations": 1,
318
- "rxValue": 0.9,
319
- "overallSize": {
320
- "width": 900,
321
- "height": 700
322
- },
323
- "margin": {
324
- "margin_y": 25,
325
- "margin_x": 0
326
- },
327
- "nodeSize": {
328
- "nodeWidth": 26,
329
- "nodeHeight": 40
330
- },
331
- "nodePadding": 55,
332
- "nodeFontColor": "black",
333
- "nodeColor": {
334
- "default": "#ff8500",
335
- "inactive": "#808080"
336
- },
337
- "linkColor": {
338
- "default": "#ffc900",
339
- "inactive": "#D3D3D3"
340
- },
341
- "opacity": {
342
- "nodeOpacityDefault": 1,
343
- "nodeOpacityInactive": 0.1,
344
- "LinkOpacityDefault": 1,
345
- "LinkOpacityInactive": 0.1
346
- },
347
- "storyNodeFontColor": "#006778",
348
- "storyNodeText": [],
349
- "nodeValueStyle": {
350
- "textBefore": "(",
351
- "textAfter": ")"
352
- },
353
- "data": []
354
- },
355
- "version": "4.25.1",
356
- "migrations": {
357
- "addColorMigration": true
358
- },
359
- "dynamicMarginTop": 0
360
- }