@cdc/chart 4.25.11 → 4.26.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.
Files changed (77) hide show
  1. package/dist/cdcchart.js +38898 -40013
  2. package/examples/feature/pie/planet-pie-example-config.json +48 -2
  3. package/examples/private/DEV-12100.json +1303 -0
  4. package/examples/private/cat-y.json +1235 -0
  5. package/examples/private/data-points.json +228 -0
  6. package/examples/private/height.json +3915 -0
  7. package/examples/private/links.json +569 -0
  8. package/examples/private/quadrant.txt +30 -0
  9. package/examples/private/test-forecast.json +5510 -0
  10. package/examples/private/warming-stripe-test.json +2578 -0
  11. package/examples/private/warming-stripes.json +4763 -0
  12. package/examples/tech-adoption-with-links.json +560 -0
  13. package/index.html +15 -20
  14. package/package.json +5 -4
  15. package/preview.html +1616 -0
  16. package/src/CdcChartComponent.tsx +111 -75
  17. package/src/_stories/Chart.Regions.Categorical.stories.tsx +148 -0
  18. package/src/_stories/Chart.Regions.DateScale.stories.tsx +197 -0
  19. package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +297 -0
  20. package/src/_stories/Chart.stories.tsx +8 -0
  21. package/src/_stories/ChartBar.Editor.stories.tsx +11 -6
  22. package/src/_stories/ChartBrush.Editor.stories.tsx +295 -0
  23. package/src/_stories/ChartBrush.stories.tsx +50 -0
  24. package/src/_stories/ChartEditor.Editor.stories.tsx +3 -5
  25. package/src/_stories/TechAdoptionWithLinks.stories.tsx +27 -0
  26. package/src/_stories/_mock/brush_enabled.json +326 -0
  27. package/src/_stories/_mock/brush_mock.json +2 -69
  28. package/src/_stories/_mock/horizontal-bars-dynamic-y-axis.json +413 -0
  29. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +1 -2
  30. package/src/components/Axis/Categorical.Axis.tsx +6 -7
  31. package/src/components/BarChart/components/BarChart.Horizontal.tsx +178 -24
  32. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +3 -1
  33. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +1 -0
  34. package/src/components/BarChart/components/BarChart.Vertical.tsx +6 -8
  35. package/src/components/BarChart/components/context.tsx +1 -0
  36. package/src/components/BarChart/helpers/useBarChart.ts +14 -2
  37. package/src/components/Brush/BrushSelector.tsx +1258 -0
  38. package/src/components/Brush/MiniChartPreview.tsx +283 -0
  39. package/src/components/DeviationBar.jsx +9 -7
  40. package/src/components/EditorPanel/EditorPanel.tsx +2711 -2586
  41. package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +56 -34
  42. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +57 -30
  43. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +2 -0
  44. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +30 -25
  45. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +21 -27
  46. package/src/components/EditorPanel/useEditorPermissions.ts +31 -18
  47. package/src/components/Legend/Legend.tsx +3 -2
  48. package/src/components/Legend/helpers/createFormatLabels.tsx +151 -2
  49. package/src/components/Legend/helpers/index.ts +10 -6
  50. package/src/components/LinearChart.tsx +495 -430
  51. package/src/components/PairedBarChart.jsx +20 -3
  52. package/src/components/Regions/components/Regions.tsx +365 -122
  53. package/src/components/ScatterPlot/ScatterPlot.jsx +2 -2
  54. package/src/components/SmallMultiples/SmallMultipleTile.tsx +5 -1
  55. package/src/components/WarmingStripes/WarmingStripes.tsx +160 -0
  56. package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +35 -0
  57. package/src/components/WarmingStripes/WarmingStripesGradientLegend.tsx +104 -0
  58. package/src/components/WarmingStripes/index.tsx +3 -0
  59. package/src/data/initial-state.js +3 -1
  60. package/src/helpers/calculateHorizontalBarCategoryLabelWidth.ts +57 -0
  61. package/src/helpers/getMinMax.ts +12 -7
  62. package/src/helpers/sizeHelpers.ts +0 -20
  63. package/src/helpers/smallMultiplesHelpers.ts +1 -1
  64. package/src/hooks/useChartHoverAnalytics.tsx +10 -9
  65. package/src/hooks/useScales.ts +11 -1
  66. package/src/hooks/useTooltip.tsx +31 -10
  67. package/src/scss/DataTable.scss +0 -4
  68. package/src/scss/main.scss +17 -3
  69. package/src/test/CdcChart.test.jsx +1 -1
  70. package/src/types/ChartConfig.ts +3 -0
  71. package/src/types/Label.ts +1 -0
  72. package/src/utils/analyticsTracking.ts +19 -0
  73. package/LICENSE +0 -201
  74. package/src/components/Brush/BrushChart.tsx +0 -128
  75. package/src/components/Brush/BrushController.tsx +0 -71
  76. package/src/components/Brush/types.tsx +0 -8
  77. package/src/components/BrushChart.tsx +0 -223
@@ -0,0 +1,560 @@
1
+ {
2
+ "annotations": [],
3
+ "type": "chart",
4
+ "debugSvg": false,
5
+ "chartMessage": {
6
+ "noData": "No Data Available"
7
+ },
8
+ "title": "Technology Adoption Statistics",
9
+ "showTitle": true,
10
+ "showDownloadMediaButton": false,
11
+ "theme": "theme-blue",
12
+ "animate": true,
13
+ "lineDatapointStyle": "hover",
14
+ "lineDatapointColor": "Same as Line",
15
+ "barHasBorder": "true",
16
+ "isLollipopChart": false,
17
+ "lollipopShape": "circle",
18
+ "lollipopColorStyle": "two-tone",
19
+ "visualizationSubType": "regular",
20
+ "barStyle": "rounded",
21
+ "roundingStyle": "standard",
22
+ "tipRounding": "top",
23
+ "isResponsiveTicks": false,
24
+ "general": {
25
+ "annotationDropdownText": "Annotations",
26
+ "showMissingDataLabel": false,
27
+ "showSuppressedSymbol": true,
28
+ "showZeroValueData": true,
29
+ "hideNullValue": true,
30
+ "palette": {
31
+ "isReversed": false,
32
+ "version": "2.0",
33
+ "name": "divergent_green_orange"
34
+ }
35
+ },
36
+ "padding": {
37
+ "left": 5,
38
+ "right": 5
39
+ },
40
+ "preliminaryData": [],
41
+ "yAxis": {
42
+ "hideAxis": false,
43
+ "displayNumbersOnBar": true,
44
+ "hideLabel": false,
45
+ "hideTicks": false,
46
+ "size": "75",
47
+ "gridLines": false,
48
+ "enablePadding": false,
49
+ "min": "",
50
+ "max": "",
51
+ "labelColor": "#1c1d1f",
52
+ "tickLabelColor": "#1c1d1f",
53
+ "tickColor": "#1c1d1f",
54
+ "rightHideAxis": false,
55
+ "rightAxisSize": 0,
56
+ "rightLabel": "",
57
+ "rightLabelOffsetSize": 0,
58
+ "rightAxisLabelColor": "#1c1d1f",
59
+ "rightAxisTickLabelColor": "#1c1d1f",
60
+ "rightAxisTickColor": "#1c1d1f",
61
+ "numTicks": "6",
62
+ "axisPadding": 0,
63
+ "scalePadding": 10,
64
+ "tickRotation": 0,
65
+ "anchors": [],
66
+ "shoMissingDataLabel": true,
67
+ "showMissingDataLine": true,
68
+ "categories": [],
69
+ "label": "Adoption Rate (%)",
70
+ "labelPlacement": "Below Bar"
71
+ },
72
+ "boxplot": {
73
+ "plots": [],
74
+ "borders": "true",
75
+ "plotOutlierValues": false,
76
+ "plotNonOutlierValues": true,
77
+ "labels": {
78
+ "q1": "Lower Quartile",
79
+ "q2": "q2",
80
+ "q3": "Upper Quartile",
81
+ "q4": "q4",
82
+ "minimum": "Minimum",
83
+ "maximum": "Maximum",
84
+ "mean": "Mean",
85
+ "median": "Median",
86
+ "sd": "Standard Deviation",
87
+ "iqr": "Interquartile Range",
88
+ "count": "Count",
89
+ "outliers": "Outliers",
90
+ "values": "Values",
91
+ "lowerBounds": "Lower Bounds",
92
+ "upperBounds": "Upper Bounds"
93
+ }
94
+ },
95
+ "topAxis": {
96
+ "hasLine": false
97
+ },
98
+ "isLegendValue": false,
99
+ "barThickness": "0.37",
100
+ "barHeight": 25,
101
+ "barSpace": 15,
102
+ "heights": {
103
+ "vertical": 300,
104
+ "horizontal": 250
105
+ },
106
+ "xAxis": {
107
+ "sortDates": false,
108
+ "anchors": [],
109
+ "type": "categorical",
110
+ "showTargetLabel": true,
111
+ "targetLabel": "Target",
112
+ "hideAxis": false,
113
+ "hideLabel": false,
114
+ "hideTicks": false,
115
+ "size": "50",
116
+ "tickRotation": 0,
117
+ "min": "",
118
+ "max": "100",
119
+ "labelColor": "#1c1d1f",
120
+ "tickLabelColor": "#1c1d1f",
121
+ "tickColor": "#1c1d1f",
122
+ "numTicks": "",
123
+ "labelOffset": 0,
124
+ "axisPadding": 200,
125
+ "target": 0,
126
+ "maxTickRotation": "90",
127
+ "padding": 5,
128
+ "showYearsOnce": false,
129
+ "sortByRecentDate": false,
130
+ "brushActive": false,
131
+ "dataKey": "Technology",
132
+ "tickWidthMax": 43,
133
+ "label": "Technology"
134
+ },
135
+ "table": {
136
+ "label": "Data Table",
137
+ "expanded": false,
138
+ "limitHeight": false,
139
+ "height": "500",
140
+ "caption": "",
141
+ "showDownloadUrl": false,
142
+ "showDataTableLink": true,
143
+ "showDownloadLinkBelow": false,
144
+ "indexLabel": "",
145
+ "download": true,
146
+ "showVertical": true,
147
+ "dateDisplayFormat": "",
148
+ "showMissingDataLabel": true,
149
+ "showSuppressedSymbol": true,
150
+ "collapsible": true,
151
+ "show": true,
152
+ "showDownloadImgButton": true,
153
+ "includeContextInDownload": true,
154
+ "groupBy": "",
155
+ "cellMinWidth": "150"
156
+ },
157
+ "orientation": "horizontal",
158
+ "columns": {
159
+ "Users (millions)": {
160
+ "label": "Users (millions)",
161
+ "dataTable": true,
162
+ "tooltips": true,
163
+ "prefix": "",
164
+ "suffix": "M",
165
+ "forestPlot": false,
166
+ "startingPoint": "0",
167
+ "forestPlotAlignRight": false,
168
+ "roundToPlace": 1,
169
+ "commas": true,
170
+ "showInViz": false,
171
+ "forestPlotStartingPoint": 0,
172
+ "name": "Users (millions)"
173
+ },
174
+ "Growth Rate": {
175
+ "label": "Growth Rate",
176
+ "dataTable": true,
177
+ "tooltips": true,
178
+ "prefix": "",
179
+ "suffix": "%",
180
+ "forestPlot": false,
181
+ "startingPoint": "0",
182
+ "forestPlotAlignRight": false,
183
+ "roundToPlace": 1,
184
+ "commas": false,
185
+ "showInViz": false,
186
+ "forestPlotStartingPoint": 0,
187
+ "name": "Growth Rate"
188
+ },
189
+ "Learn More": {
190
+ "label": "Learn More",
191
+ "dataTable": true,
192
+ "tooltips": false,
193
+ "prefix": "",
194
+ "suffix": "",
195
+ "forestPlot": false,
196
+ "startingPoint": "0",
197
+ "forestPlotAlignRight": false,
198
+ "roundToPlace": 0,
199
+ "commas": false,
200
+ "showInViz": false,
201
+ "forestPlotStartingPoint": 0,
202
+ "name": "Learn More"
203
+ }
204
+ },
205
+ "legend": {
206
+ "hide": true,
207
+ "behavior": "isolate",
208
+ "axisAlign": true,
209
+ "singleRow": true,
210
+ "colorCode": "",
211
+ "reverseLabelOrder": false,
212
+ "description": "",
213
+ "dynamicLegend": false,
214
+ "dynamicLegendDefaultText": "Show All",
215
+ "dynamicLegendItemLimit": 5,
216
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
217
+ "dynamicLegendChartMessage": "Select Options from the Legend",
218
+ "label": "",
219
+ "lineMode": false,
220
+ "verticalSorted": false,
221
+ "highlightOnHover": false,
222
+ "hideSuppressedLabels": false,
223
+ "hideSuppressionLink": false,
224
+ "seriesHighlight": [],
225
+ "style": "circles",
226
+ "subStyle": "linear blocks",
227
+ "groupBy": "",
228
+ "shape": "circle",
229
+ "tickRotation": "",
230
+ "order": "dataColumn",
231
+ "hideBorder": {
232
+ "side": false,
233
+ "topBottom": true
234
+ },
235
+ "position": "right",
236
+ "orderedValues": [],
237
+ "patterns": {},
238
+ "patternField": "",
239
+ "unified": true
240
+ },
241
+ "smallMultiples": {
242
+ "mode": "",
243
+ "tileColumn": "",
244
+ "tilesPerRowDesktop": 3,
245
+ "tilesPerRowMobile": 1,
246
+ "tileOrder": [],
247
+ "tileOrderType": "asc",
248
+ "tileTitles": {},
249
+ "independentYAxis": false,
250
+ "colorMode": "same",
251
+ "synchronizedTooltips": true,
252
+ "showAreaUnderLine": true
253
+ },
254
+ "exclusions": {
255
+ "active": false,
256
+ "keys": []
257
+ },
258
+ "twoColor": {
259
+ "palette": "monochrome-1",
260
+ "isPaletteReversed": false
261
+ },
262
+ "labels": false,
263
+ "dataFormat": {
264
+ "commas": true,
265
+ "prefix": "",
266
+ "suffix": "%",
267
+ "abbreviated": false,
268
+ "bottomSuffix": "",
269
+ "bottomPrefix": "",
270
+ "bottomAbbreviated": false
271
+ },
272
+ "filters": [
273
+ {
274
+ "values": ["Social Media", "Cloud Services", "Development Tools", "Communication"],
275
+ "filterStyle": "dropdown",
276
+ "id": 1765208699247,
277
+ "showDropdown": true,
278
+ "active": "Social Media",
279
+ "columnName": "Category",
280
+ "orderedValues": ["Social Media", "Cloud Services", "Development Tools", "Communication"],
281
+ "label": "Select technology category",
282
+ "order": "cust"
283
+ }
284
+ ],
285
+ "confidenceKeys": {},
286
+ "visual": {
287
+ "border": true,
288
+ "accent": true,
289
+ "background": true,
290
+ "verticalHoverLine": false,
291
+ "horizontalHoverLine": false,
292
+ "lineDatapointSymbol": "none",
293
+ "maximumShapeAmount": 7
294
+ },
295
+ "useLogScale": false,
296
+ "filterBehavior": "Filter Change",
297
+ "highlightedBarValues": [],
298
+ "series": [
299
+ {
300
+ "dataKey": "Adoption Rate",
301
+ "type": "Bar",
302
+ "axis": "Left",
303
+ "tooltip": true,
304
+ "dynamicCategory": ""
305
+ }
306
+ ],
307
+ "tooltips": {
308
+ "opacity": 90,
309
+ "singleSeries": false,
310
+ "dateDisplayFormat": ""
311
+ },
312
+ "forestPlot": {
313
+ "startAt": 0,
314
+ "colors": {
315
+ "line": "",
316
+ "shape": ""
317
+ },
318
+ "lineOfNoEffect": {
319
+ "show": true
320
+ },
321
+ "type": "",
322
+ "pooledResult": {
323
+ "diamondHeight": 5,
324
+ "column": ""
325
+ },
326
+ "estimateField": "",
327
+ "estimateRadius": "",
328
+ "shape": "square",
329
+ "rowHeight": 20,
330
+ "description": {
331
+ "show": true,
332
+ "text": "description",
333
+ "location": 0
334
+ },
335
+ "result": {
336
+ "show": true,
337
+ "text": "result",
338
+ "location": 100
339
+ },
340
+ "radius": {
341
+ "min": 2,
342
+ "max": 10,
343
+ "scalingColumn": ""
344
+ },
345
+ "regression": {
346
+ "lower": 0,
347
+ "upper": 0,
348
+ "estimateField": 0
349
+ },
350
+ "leftWidthOffset": 0,
351
+ "rightWidthOffset": 0,
352
+ "showZeroLine": false,
353
+ "leftLabel": "",
354
+ "rightLabel": ""
355
+ },
356
+ "area": {
357
+ "isStacked": false
358
+ },
359
+ "sankey": {
360
+ "title": {
361
+ "defaultColor": "black"
362
+ },
363
+ "iterations": 1,
364
+ "rxValue": 0.9,
365
+ "overallSize": {
366
+ "width": 900,
367
+ "height": 700
368
+ },
369
+ "margin": {
370
+ "margin_y": 25,
371
+ "margin_x": 0
372
+ },
373
+ "nodeSize": {
374
+ "nodeWidth": 26,
375
+ "nodeHeight": 40
376
+ },
377
+ "nodePadding": 55,
378
+ "nodeFontColor": "black",
379
+ "nodeColor": {
380
+ "default": "#ff8500",
381
+ "inactive": "#808080"
382
+ },
383
+ "linkColor": {
384
+ "default": "#ffc900",
385
+ "inactive": "#D3D3D3"
386
+ },
387
+ "opacity": {
388
+ "nodeOpacityDefault": 1,
389
+ "nodeOpacityInactive": 0.1,
390
+ "LinkOpacityDefault": 1,
391
+ "LinkOpacityInactive": 0.1
392
+ },
393
+ "storyNodeFontColor": "#006778",
394
+ "storyNodeText": [],
395
+ "nodeValueStyle": {
396
+ "textBefore": "(",
397
+ "textAfter": ")"
398
+ },
399
+ "data": []
400
+ },
401
+ "markupVariables": [],
402
+ "enableMarkupVariables": false,
403
+ "errors": [],
404
+ "currentViewport": "lg",
405
+ "id": 1,
406
+ "category": "Charts",
407
+ "label": "Bar",
408
+ "subType": "Bar",
409
+ "icon": {
410
+ "key": null,
411
+ "ref": null,
412
+ "props": {},
413
+ "_owner": null
414
+ },
415
+ "content": "Use bars to show comparisons between data categories.",
416
+ "visualizationType": "Bar",
417
+ "activeVizButtonID": 1,
418
+ "dataFileName": "",
419
+ "dataFileSourceType": "data",
420
+ "dataDescription": {
421
+ "horizontal": false,
422
+ "series": false
423
+ },
424
+ "version": "4.25.11",
425
+ "migrations": {
426
+ "addColorMigration": true
427
+ },
428
+ "dynamicMarginTop": 0,
429
+ "data": [
430
+ {
431
+ "Category": "Social Media",
432
+ "Technology": "<a href=\"https://developer.twitter.com/en/docs\">Twitter/X</a>",
433
+ "Adoption Rate": "68.2",
434
+ "Users (millions)": "528.3",
435
+ "Growth Rate": "2.1",
436
+ "Learn More": "<a href=\"https://developer.twitter.com/en/docs\">View API Documentation &raquo;</a>"
437
+ },
438
+ {
439
+ "Category": "Social Media",
440
+ "Technology": "<a href=\"https://developers.facebook.com/docs/instagram\">Instagram</a>",
441
+ "Adoption Rate": "82.5",
442
+ "Users (millions)": "1478.0",
443
+ "Growth Rate": "8.7",
444
+ "Learn More": "<a href=\"https://developers.facebook.com/docs/instagram\">Learn more about Instagram API &raquo;</a>"
445
+ },
446
+ {
447
+ "Category": "Social Media",
448
+ "Technology": "<a href=\"https://developers.tiktok.com/\">TikTok</a>",
449
+ "Adoption Rate": "73.1",
450
+ "Users (millions)": "1051.0",
451
+ "Growth Rate": "15.2",
452
+ "Learn More": "<a href=\"https://developers.tiktok.com/\">Explore TikTok Developer Platform &raquo;</a>"
453
+ },
454
+ {
455
+ "Category": "Social Media",
456
+ "Technology": "<a href=\"https://developer.linkedin.com/\">LinkedIn</a>",
457
+ "Adoption Rate": "45.8",
458
+ "Users (millions)": "875.0",
459
+ "Growth Rate": "5.3",
460
+ "Learn More": "<a href=\"https://developer.linkedin.com/\">LinkedIn Developer Resources &raquo;</a>"
461
+ },
462
+ {
463
+ "Category": "Cloud Services",
464
+ "Technology": "<a href=\"https://aws.amazon.com/documentation/\">AWS</a>",
465
+ "Adoption Rate": "91.3",
466
+ "Users (millions)": "2500.0",
467
+ "Growth Rate": "12.5",
468
+ "Learn More": "<a href=\"https://aws.amazon.com/documentation/\">AWS Documentation &raquo;</a>"
469
+ },
470
+ {
471
+ "Category": "Cloud Services",
472
+ "Technology": "<a href=\"https://docs.microsoft.com/azure/\">Azure</a>",
473
+ "Adoption Rate": "78.9",
474
+ "Users (millions)": "1800.0",
475
+ "Growth Rate": "18.3",
476
+ "Learn More": "<a href=\"https://docs.microsoft.com/azure/\">Azure Documentation &raquo;</a>"
477
+ },
478
+ {
479
+ "Category": "Cloud Services",
480
+ "Technology": "<a href=\"https://cloud.google.com/docs\">Google Cloud</a>",
481
+ "Adoption Rate": "62.4",
482
+ "Users (millions)": "1200.0",
483
+ "Growth Rate": "22.1",
484
+ "Learn More": "<a href=\"https://cloud.google.com/docs\">Google Cloud Docs &raquo;</a>"
485
+ },
486
+ {
487
+ "Category": "Cloud Services",
488
+ "Technology": "<a href=\"https://docs.digitalocean.com/\">DigitalOcean</a>",
489
+ "Adoption Rate": "34.2",
490
+ "Users (millions)": "385.0",
491
+ "Growth Rate": "6.8",
492
+ "Learn More": "<a href=\"https://docs.digitalocean.com/\">DigitalOcean Documentation &raquo;</a>"
493
+ },
494
+ {
495
+ "Category": "Really really long long Development Tools",
496
+ "Technology": "<a href=\"https://docs.github.com/\">GitHub</a>",
497
+ "Adoption Rate": "94.6",
498
+ "Users (millions)": "100.0",
499
+ "Growth Rate": "9.2",
500
+ "Learn More": "<a href=\"https://docs.github.com/\">GitHub Documentation &raquo;</a>"
501
+ },
502
+ {
503
+ "Category": "Really really long long Development Tools",
504
+ "Technology": "<a href=\"https://code.visualstudio.com/docs\">VS Code</a>",
505
+ "Adoption Rate": "87.3",
506
+ "Users (millions)": "14.0",
507
+ "Growth Rate": "11.5",
508
+ "Learn More": "<a href=\"https://code.visualstudio.com/docs\">VS Code Documentation &raquo;</a>"
509
+ },
510
+ {
511
+ "Category": "Really really long long Development Tools",
512
+ "Technology": "<a href=\"https://docs.docker.com/\">Docker</a>",
513
+ "Adoption Rate": "79.8",
514
+ "Users (millions)": "13.0",
515
+ "Growth Rate": "14.3",
516
+ "Learn More": "<a href=\"https://docs.docker.com/\">Docker Documentation &raquo;</a>"
517
+ },
518
+ {
519
+ "Category": "Really really long long Development Tools",
520
+ "Technology": "<a href=\"https://docs.npmjs.com/\">npm</a>",
521
+ "Adoption Rate": "85.2",
522
+ "Users (millions)": "17.0",
523
+ "Growth Rate": "7.9",
524
+ "Learn More": "<a href=\"https://docs.npmjs.com/\">npm Documentation &raquo;</a>"
525
+ },
526
+ {
527
+ "Category": "Communication",
528
+ "Technology": "<a href=\"https://api.slack.com/\">Slack</a>",
529
+ "Adoption Rate": "71.5",
530
+ "Users (millions)": "18.0",
531
+ "Growth Rate": "10.2",
532
+ "Learn More": "<a href=\"https://api.slack.com/\">Slack API Documentation &raquo;</a>"
533
+ },
534
+ {
535
+ "Category": "Communication",
536
+ "Technology": "<a href=\"https://docs.microsoft.com/microsoftteams/\">Microsoft Teams</a>",
537
+ "Adoption Rate": "68.9",
538
+ "Users (millions)": "280.0",
539
+ "Growth Rate": "25.7",
540
+ "Learn More": "<a href=\"https://docs.microsoft.com/microsoftteams/\">Teams Documentation &raquo;</a>"
541
+ },
542
+ {
543
+ "Category": "Communication",
544
+ "Technology": "<a href=\"https://developers.zoom.us/\">Zoom</a>",
545
+ "Adoption Rate": "75.2",
546
+ "Users (millions)": "300.0",
547
+ "Growth Rate": "8.4",
548
+ "Learn More": "<a href=\"https://developers.zoom.us/\">Zoom Developer Platform &raquo;</a>"
549
+ },
550
+ {
551
+ "Category": "Communication",
552
+ "Technology": "<a href=\"https://discord.com/developers/docs/\">Discord</a>",
553
+ "Adoption Rate": "56.3",
554
+ "Users (millions)": "150.0",
555
+ "Growth Rate": "19.6",
556
+ "Learn More": "<a href=\"https://discord.com/developers/docs/\">Discord Developer Portal &raquo;</a>"
557
+ }
558
+ ],
559
+ "datasets": {}
560
+ }
package/index.html CHANGED
@@ -1,32 +1,27 @@
1
- <!DOCTYPE html>
1
+ <!DOCTYPE html>
2
2
  <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
7
- <style>
8
- body {
9
- margin: 0;
10
- border-top: none !important;
11
- }
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6
+ <style>
7
+ body {
8
+ margin: 0;
9
+ border-top: none !important;
10
+ /* Force scrollbar so page stays consistent width */
11
+ min-height: calc(100vh + 1px);
12
+ }
12
13
 
13
14
  .cdc-map-outer-container {
14
15
  min-height: 100vh;
15
16
  }
16
17
 
17
- /* .react-container + .react-container {
18
- margin-top: 3rem;
19
- } */
20
- </style>
21
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
22
- </head>
18
+ <body>
19
+ <!-- GENERIC CHART TYPES -->
20
+ <div class="react-container" data-config="/examples/private/height.json"></div>
23
21
 
24
22
  <body>
25
-
26
23
  <!-- GENERIC CHART TYPES -->
27
- <div class="react-container" data-config="/examples/feature/combo/planet-combo-example-config.json"></div>
28
-
29
-
24
+ <div class="react-container" data-config="/examples/private/height.json"></div>
30
25
 
31
26
  <noscript>You need to enable JavaScript to run this app.</noscript>
32
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/chart",
3
- "version": "4.25.11",
3
+ "version": "4.26.1",
4
4
  "description": "React component for visualizing tabular data in various types of charts",
5
5
  "moduleName": "CdcChart",
6
6
  "main": "dist/cdcchart",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@cdc/core": "^4.25.11",
29
+ "@cdc/core": "^4.26.1",
30
30
  "@hello-pangea/dnd": "^16.2.0",
31
31
  "@react-spring/web": "^9.7.5",
32
32
  "@rollup/plugin-dsv": "^3.0.2",
@@ -63,17 +63,18 @@
63
63
  "react-icons": "5.5.0",
64
64
  "react-tooltip": "5.8.2-beta.3",
65
65
  "resize-observer-polyfill": "^1.5.1",
66
+ "sass": "^1.89.2",
66
67
  "use-debounce": "^6.0.1",
67
68
  "vite": "^5.4.21",
68
69
  "vite-plugin-css-injected-by-js": "^2.4.0",
69
- "vite-plugin-svgr": "^2.4.0",
70
+ "vite-plugin-svgr": "^4.2.0",
70
71
  "whatwg-fetch": "3.6.20"
71
72
  },
72
73
  "peerDependencies": {
73
74
  "react": "^18.2.0",
74
75
  "react-dom": "^18.2.0"
75
76
  },
76
- "gitHead": "5f09a137c22f454111ab5f4cd7fdf1d2d58e31bd",
77
+ "gitHead": "7e3b27098c4eb7a24bc9c3654ad53f88d6419f16",
77
78
  "devDependencies": {
78
79
  "@types/d3-array": "^3.2.1",
79
80
  "@types/d3-format": "^3.0.4",