@cdc/editor 4.26.1 → 4.26.2

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/index.html CHANGED
@@ -1,20 +1 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6
- <style type="text/css">
7
- body {
8
- margin: 0;
9
- }
10
- .react-container {
11
- min-height: 100vh;
12
- }
13
- </style>
14
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
15
- </head>
16
- <body>
17
- <div class="react-container react--editor"></div>
18
- <script type="module" src="./src/index.jsx"></script>
19
- </body>
20
- </html>
1
+ <!-- index.html is generated by @cdc/core/generateViteConfig.js using the files in @cdc/core/devTemplate/ -->
package/package.json CHANGED
@@ -1,51 +1,49 @@
1
1
  {
2
2
  "name": "@cdc/editor",
3
- "version": "4.26.1",
3
+ "version": "4.26.2",
4
4
  "description": "React component for generating a new component entry",
5
- "moduleName": "CdcEditor",
6
- "main": "dist/cdceditor",
7
- "type": "module",
8
- "scripts": {
9
- "start": "vite --open",
10
- "build": "vite build",
11
- "preview": "vite preview",
12
- "graph": "nx graph",
13
- "prepublishOnly": "lerna run --scope @cdc/editor build",
14
- "test": "vitest run --reporter verbose",
15
- "test-watch": "vitest watch --reporter verbose",
16
- "test-watch:ui": "vitest --ui"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/CDCgov/cdc-open-viz",
21
- "directory": "packages/editor"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/CDCgov/cdc-open-viz/issues"
25
- },
26
5
  "license": "Apache-2.0",
6
+ "bugs": "https://github.com/CDCgov/cdc-open-viz/issues",
27
7
  "dependencies": {
28
- "@cdc/chart": "^4.26.1",
29
- "@cdc/core": "^4.26.1",
30
- "@cdc/dashboard": "^4.26.1",
31
- "@cdc/data-bite": "^4.26.1",
32
- "@cdc/map": "^4.26.1",
33
- "@cdc/markup-include": "^4.26.1",
34
- "@cdc/waffle-chart": "^4.26.1",
35
- "axios": "^1.9.0",
8
+ "@cdc/chart": "^4.26.2",
9
+ "@cdc/core": "^4.26.2",
10
+ "@cdc/dashboard": "^4.26.2",
11
+ "@cdc/data-bite": "^4.26.2",
12
+ "@cdc/map": "^4.26.2",
13
+ "@cdc/markup-include": "^4.26.2",
14
+ "@cdc/waffle-chart": "^4.26.2",
15
+ "axios": "^1.13.2",
36
16
  "d3": "^7.9.0",
37
17
  "react-dropzone": "^14.3.8",
38
- "use-debounce": "^10.0.5"
39
- },
40
- "peerDependencies": {
41
- "react": "^18.2.0",
42
- "react-dom": "^18.2.0"
18
+ "use-debounce": "^10.1.0"
43
19
  },
44
20
  "devDependencies": {
45
21
  "@rollup/plugin-dsv": "^3.0.2",
46
- "@vitejs/plugin-react": "^4.3.4",
22
+ "@vitejs/plugin-react": "^5.1.2",
47
23
  "vite-plugin-css-injected-by-js": "^2.4.0",
48
24
  "vite-plugin-svgr": "^4.2.0"
49
25
  },
50
- "gitHead": "7e3b27098c4eb7a24bc9c3654ad53f88d6419f16"
26
+ "gitHead": "be3413e8e1149abf94225108f86a7910f56e0616",
27
+ "main": "dist/cdceditor",
28
+ "moduleName": "CdcEditor",
29
+ "peerDependencies": {
30
+ "react": "^18.2.0",
31
+ "react-dom": "^18.2.0"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/CDCgov/cdc-open-viz",
36
+ "directory": "packages/editor"
37
+ },
38
+ "scripts": {
39
+ "build": "vite build",
40
+ "graph": "nx graph",
41
+ "prepublishOnly": "lerna run --scope @cdc/editor build",
42
+ "preview": "vite preview",
43
+ "start": "vite --open",
44
+ "test": "vitest run --reporter verbose",
45
+ "test-watch": "vitest watch --reporter verbose",
46
+ "test-watch:ui": "vitest --ui"
47
+ },
48
+ "type": "module"
51
49
  }
package/src/CdcEditor.tsx CHANGED
@@ -1,7 +1,4 @@
1
1
  import React, { useState, useEffect, useCallback, useReducer, useMemo } from 'react'
2
-
3
- // IE11
4
- // import 'core-js/stable' // temp remove, appears to be used with html2pdf.js which we're temp removing
5
2
  import ResizeObserver from 'resize-observer-polyfill'
6
3
 
7
4
  import getViewport from '@cdc/core/helpers/getViewport'
@@ -4,30 +4,33 @@ import '../scss/choose-vis-tab.scss'
4
4
  import ConfigContext, { EditorDispatchContext } from '@cdc/core/contexts/EditorContext'
5
5
  import Tooltip from '@cdc/core/components/ui/Tooltip'
6
6
 
7
- import DashboardIcon from '@cdc/core/assets/icon-dashboard.svg'
7
+ import AlabamaGraphic from '@cdc/core/assets/icon-map-alabama.svg'
8
+ import AreaChartIcon from '@cdc/core/assets/icon-area-chart.svg'
8
9
  import BarIcon from '@cdc/core/assets/icon-chart-bar.svg'
10
+ import BoxPlotIcon from '@cdc/core/assets/icon-chart-box-whisker.svg'
11
+ import CodeIcon from '@cdc/core/assets/icon-code.svg'
12
+ import ComboChartIcon from '@cdc/core/assets/icon-combo-chart.svg'
13
+ import DashboardIcon from '@cdc/core/assets/icon-dashboard.svg'
14
+ import DataBiteIcon from '@cdc/core/assets/icon-databite.svg'
15
+ import DeviationIcon from '@cdc/core/assets/icon-deviation-bar.svg'
16
+ import EpiChartIcon from '@cdc/core/assets/icon-epi-chart.svg'
17
+ import ForecastIcon from '@cdc/core/assets/icon-chart-forecast.svg'
18
+ import GaugeChartIcon from '@cdc/core/assets/icon-linear-gauge.svg'
19
+ import GlobeIcon from '@cdc/core/assets/icon-map-world.svg'
20
+ import HorizonChartIcon from '@cdc/core/assets/icon-chart-area.svg'
21
+ import HorizontalStackIcon from '@cdc/core/assets/icon-chart-bar-stacked.svg'
22
+ import Icon from '@cdc/core/components/ui/Icon'
9
23
  import LineIcon from '@cdc/core/assets/icon-chart-line.svg'
24
+ import PairedBarIcon from '@cdc/core/assets/icon-chart-bar-paired.svg'
10
25
  import PieIcon from '@cdc/core/assets/icon-chart-pie.svg'
11
- import GlobeIcon from '@cdc/core/assets/icon-map-world.svg'
26
+ import RadarChartIcon from '@cdc/core/assets/icon-chart-radar.svg'
27
+ import SankeyIcon from '@cdc/core/assets/icon-sankey.svg'
28
+ import ScatterPlotIcon from '@cdc/core/assets/icon-chart-scatterplot.svg'
29
+ import TableIcon from '@cdc/core/assets/icon-table.svg'
12
30
  import UsaIcon from '@cdc/core/assets/icon-map-usa.svg'
13
31
  import UsaRegionIcon from '@cdc/core/assets/usa-region-graphic.svg'
14
- import DataBiteIcon from '@cdc/core/assets/icon-databite.svg'
15
32
  import WaffleChartIcon from '@cdc/core/assets/icon-grid.svg'
16
- import AlabamaGraphic from '@cdc/core/assets/icon-map-alabama.svg'
17
- import PairedBarIcon from '@cdc/core/assets/icon-chart-bar-paired.svg'
18
- import HorizontalStackIcon from '@cdc/core/assets/icon-chart-bar-stacked.svg'
19
- import ScatterPlotIcon from '@cdc/core/assets/icon-chart-scatterplot.svg'
20
- import BoxPlotIcon from '@cdc/core/assets/icon-chart-box-whisker.svg'
21
- import AreaChartIcon from '@cdc/core/assets/icon-area-chart.svg'
22
- import GaugeChartIcon from '@cdc/core/assets/icon-linear-gauge.svg'
23
- import ForecastIcon from '@cdc/core/assets/icon-chart-forecast.svg'
24
- import DeviationIcon from '@cdc/core/assets/icon-deviation-bar.svg'
25
- import SankeyIcon from '@cdc/core/assets/icon-sankey.svg'
26
- import ComboChartIcon from '@cdc/core/assets/icon-combo-chart.svg'
27
- import EpiChartIcon from '@cdc/core/assets/icon-epi-chart.svg'
28
- import TableIcon from '@cdc/core/assets/icon-table.svg'
29
33
  import WarmingStripesIcon from '@cdc/core/assets/icon-warming-stripes.svg'
30
- import Icon from '@cdc/core/components/ui/Icon'
31
34
 
32
35
  import {
33
36
  convertVegaConfig,
@@ -317,6 +320,16 @@ const buttons = [
317
320
  content: `Specify the calculation of a single data point (such as a percentage value) and present it on a horizontal
318
321
  scale.`
319
322
  },
323
+ {
324
+ id: 26,
325
+ category: 'General',
326
+ label: 'Markup Include',
327
+ type: 'markup-include',
328
+ subType: null,
329
+ orientation: null,
330
+ icon: <CodeIcon />,
331
+ content: 'Include custom HTML markup or embed content from external URLs.'
332
+ },
320
333
  {
321
334
  id: 17,
322
335
  category: 'General',
@@ -415,6 +428,16 @@ const buttons = [
415
428
  icon: <ForecastIcon />,
416
429
  content: 'Display a forecasting chart to predict future data trends.'
417
430
  },
431
+ {
432
+ id: 27,
433
+ category: 'Charts',
434
+ label: 'Horizon Chart',
435
+ type: 'chart',
436
+ subType: 'Horizon Chart',
437
+ orientation: 'vertical',
438
+ icon: <HorizonChartIcon />,
439
+ content: 'Display a horizon chart to visualize quantities over time in a smaller space.'
440
+ },
418
441
  {
419
442
  id: 12,
420
443
  category: 'Charts',
@@ -456,6 +479,16 @@ const buttons = [
456
479
  icon: <PieIcon />,
457
480
  content: 'Present the numerical proportions of a data series.'
458
481
  },
482
+ {
483
+ id: 27,
484
+ category: 'Charts',
485
+ label: 'Radar',
486
+ type: 'chart',
487
+ subType: 'Radar',
488
+ orientation: 'vertical',
489
+ icon: <RadarChartIcon />,
490
+ content: 'Compare multiple quantitative variables across categories using a radial layout.'
491
+ },
459
492
  {
460
493
  id: 10,
461
494
  category: 'Charts',
@@ -33,7 +33,8 @@ export default function ConfigureTab({ containerEl }) {
33
33
  if (
34
34
  config.visualizationType === 'Waffle' ||
35
35
  config.visualizationType === 'TP5 Waffle' ||
36
- config.visualizationType === 'Gauge'
36
+ config.visualizationType === 'Gauge' ||
37
+ config.visualizationType === 'TP5 Gauge'
37
38
  ) {
38
39
  return (
39
40
  <ErrorBoundary component='CdcWaffleChart'>
@@ -3,20 +3,22 @@ import SampleDataContext from './samples/SampleDataContext'
3
3
  import { cityTemperature } from '@visx/mock-data'
4
4
 
5
5
  // Data Samples
6
- import validMapData from './samples/valid-data-map.csv?raw'
7
- import validMapDataFootnotes from './samples/valid-data-map-footnotes.csv?raw'
6
+ import pivotData from './samples/pivotData.json?raw'
7
+ import vaidWorldData from './samples/valid-world-data.json?raw'
8
+ import validAreaChart from './samples/valid-area-chart.json?raw'
9
+ import validBoxPlotData from './samples/valid-boxplot.csv?raw'
8
10
  import validChartData from './samples/valid-data-chart.csv?raw'
9
11
  import validCountyMapData from './samples/valid-county-data.csv?raw'
10
- import validGeoPoint from './samples/valid-geo-point.csv?raw'
11
- import validScatterPlot from './samples/valid-scatterplot.csv?raw'
12
- import validBoxPlotData from './samples/valid-boxplot.csv?raw'
13
- import validAreaChart from './samples/valid-area-chart.json?raw'
14
- import validWorldGeocodeData from './samples/valid-world-geocode.json?raw'
15
12
  import validForecastData from './samples/valid-forecast-data.csv?raw'
16
- import vaidWorldData from './samples/valid-world-data.json?raw'
13
+ import validGeoPoint from './samples/valid-geo-point.csv?raw'
14
+ import validHorizonData from './samples/valid-horizon-chart.json?raw'
15
+ import validMapData from './samples/valid-data-map.csv?raw'
16
+ import validMapDataFootnotes from './samples/valid-data-map-footnotes.csv?raw'
17
+ import validRadarData from './samples/valid-radar-chart.csv?raw'
17
18
  import validRegionData from './samples/valid-region-data.json?raw'
18
19
  import validSankeyData from './samples/valid-sankey-data.json?raw'
19
- import pivotData from './samples/pivotData.json?raw'
20
+ import validScatterPlot from './samples/valid-scatterplot.csv?raw'
21
+ import validWorldGeocodeData from './samples/valid-world-geocode.json?raw'
20
22
 
21
23
  // Convert visx cityTemperature data to CSV format
22
24
  const visxTemperatureData = (() => {
@@ -53,11 +55,21 @@ const sampleData = {
53
55
  fileName: 'valid-forecast-data.csv',
54
56
  data: validForecastData
55
57
  },
58
+ {
59
+ text: 'Horizon Chart Data',
60
+ fileName: 'valid-horizon-data.json',
61
+ data: validHorizonData
62
+ },
56
63
  {
57
64
  text: 'Sankey Chart Data',
58
65
  fileName: 'valid-sankey-data.json',
59
66
  data: validSankeyData
60
67
  },
68
+ {
69
+ text: 'Radar Chart Data (Program Comparison)',
70
+ fileName: 'valid-radar-chart.csv',
71
+ data: validRadarData
72
+ },
61
73
  {
62
74
  text: 'Pivot Table Data',
63
75
  fileName: 'pivotData.json',
@@ -0,0 +1,373 @@
1
+ [
2
+ {
3
+ "Date": "01/01/2022",
4
+ "Data 1": "2",
5
+ "Data 2": "3",
6
+ "Data 3": "2",
7
+ "Data 4": "2"
8
+ },
9
+ {
10
+ "Date": "01/08/2022",
11
+ "Data 1": "3",
12
+ "Data 2": "4",
13
+ "Data 3": "3",
14
+ "Data 4": "2"
15
+ },
16
+ {
17
+ "Date": "01/15/2022",
18
+ "Data 1": "4",
19
+ "Data 2": "5",
20
+ "Data 3": "4",
21
+ "Data 4": "3"
22
+ },
23
+ {
24
+ "Date": "01/22/2022",
25
+ "Data 1": "6",
26
+ "Data 2": "7",
27
+ "Data 3": "6",
28
+ "Data 4": "5"
29
+ },
30
+ {
31
+ "Date": "01/29/2022",
32
+ "Data 1": "8",
33
+ "Data 2": "10",
34
+ "Data 3": "8",
35
+ "Data 4": "7"
36
+ },
37
+ {
38
+ "Date": "02/05/2022",
39
+ "Data 1": "15",
40
+ "Data 2": "18",
41
+ "Data 3": "14",
42
+ "Data 4": "12"
43
+ },
44
+ {
45
+ "Date": "02/12/2022",
46
+ "Data 1": "25",
47
+ "Data 2": "28",
48
+ "Data 3": "22",
49
+ "Data 4": "20"
50
+ },
51
+ {
52
+ "Date": "02/19/2022",
53
+ "Data 1": "45",
54
+ "Data 2": "40",
55
+ "Data 3": "35",
56
+ "Data 4": "32"
57
+ },
58
+ {
59
+ "Date": "02/26/2022",
60
+ "Data 1": "80",
61
+ "Data 2": "55",
62
+ "Data 3": "60",
63
+ "Data 4": "58"
64
+ },
65
+ {
66
+ "Date": "03/05/2022",
67
+ "Data 1": "150",
68
+ "Data 2": "70",
69
+ "Data 3": "85",
70
+ "Data 4": "95"
71
+ },
72
+ {
73
+ "Date": "03/12/2022",
74
+ "Data 1": "230",
75
+ "Data 2": "85",
76
+ "Data 3": "110",
77
+ "Data 4": "120"
78
+ },
79
+ {
80
+ "Date": "03/19/2022",
81
+ "Data 1": "300",
82
+ "Data 2": "95",
83
+ "Data 3": "130",
84
+ "Data 4": "145"
85
+ },
86
+ {
87
+ "Date": "03/26/2022",
88
+ "Data 1": "260",
89
+ "Data 2": "105",
90
+ "Data 3": "145",
91
+ "Data 4": "160"
92
+ },
93
+ {
94
+ "Date": "04/02/2022",
95
+ "Data 1": "230",
96
+ "Data 2": "120",
97
+ "Data 3": "165",
98
+ "Data 4": "175"
99
+ },
100
+ {
101
+ "Date": "04/09/2022",
102
+ "Data 1": "210",
103
+ "Data 2": "135",
104
+ "Data 3": "185",
105
+ "Data 4": "190"
106
+ },
107
+ {
108
+ "Date": "04/16/2022",
109
+ "Data 1": "190",
110
+ "Data 2": "150",
111
+ "Data 3": "205",
112
+ "Data 4": "205"
113
+ },
114
+ {
115
+ "Date": "04/23/2022",
116
+ "Data 1": "175",
117
+ "Data 2": "165",
118
+ "Data 3": "225",
119
+ "Data 4": "215"
120
+ },
121
+ {
122
+ "Date": "04/30/2022",
123
+ "Data 1": "160",
124
+ "Data 2": "180",
125
+ "Data 3": "245",
126
+ "Data 4": "225"
127
+ },
128
+ {
129
+ "Date": "05/07/2022",
130
+ "Data 1": "145",
131
+ "Data 2": "200",
132
+ "Data 3": "265",
133
+ "Data 4": "240"
134
+ },
135
+ {
136
+ "Date": "05/14/2022",
137
+ "Data 1": "135",
138
+ "Data 2": "220",
139
+ "Data 3": "285",
140
+ "Data 4": "255"
141
+ },
142
+ {
143
+ "Date": "05/21/2022",
144
+ "Data 1": "125",
145
+ "Data 2": "240",
146
+ "Data 3": "305",
147
+ "Data 4": "270"
148
+ },
149
+ {
150
+ "Date": "05/28/2022",
151
+ "Data 1": "115",
152
+ "Data 2": "260",
153
+ "Data 3": "325",
154
+ "Data 4": "285"
155
+ },
156
+ {
157
+ "Date": "06/04/2022",
158
+ "Data 1": "105",
159
+ "Data 2": "280",
160
+ "Data 3": "345",
161
+ "Data 4": "300"
162
+ },
163
+ {
164
+ "Date": "06/11/2022",
165
+ "Data 1": "95",
166
+ "Data 2": "300",
167
+ "Data 3": "365",
168
+ "Data 4": "315"
169
+ },
170
+ {
171
+ "Date": "06/18/2022",
172
+ "Data 1": "90",
173
+ "Data 2": "320",
174
+ "Data 3": "385",
175
+ "Data 4": "330"
176
+ },
177
+ {
178
+ "Date": "06/25/2022",
179
+ "Data 1": "85",
180
+ "Data 2": "340",
181
+ "Data 3": "405",
182
+ "Data 4": "340"
183
+ },
184
+ {
185
+ "Date": "07/02/2022",
186
+ "Data 1": "80",
187
+ "Data 2": "360",
188
+ "Data 3": "420",
189
+ "Data 4": "350"
190
+ },
191
+ {
192
+ "Date": "07/09/2022",
193
+ "Data 1": "75",
194
+ "Data 2": "380",
195
+ "Data 3": "435",
196
+ "Data 4": "360"
197
+ },
198
+ {
199
+ "Date": "07/16/2022",
200
+ "Data 1": "70",
201
+ "Data 2": "400",
202
+ "Data 3": "450",
203
+ "Data 4": "365"
204
+ },
205
+ {
206
+ "Date": "07/23/2022",
207
+ "Data 1": "65",
208
+ "Data 2": "420",
209
+ "Data 3": "460",
210
+ "Data 4": "370"
211
+ },
212
+ {
213
+ "Date": "07/30/2022",
214
+ "Data 1": "60",
215
+ "Data 2": "440",
216
+ "Data 3": "470",
217
+ "Data 4": "372"
218
+ },
219
+ {
220
+ "Date": "08/06/2022",
221
+ "Data 1": "55",
222
+ "Data 2": "470",
223
+ "Data 3": "460",
224
+ "Data 4": "370"
225
+ },
226
+ {
227
+ "Date": "08/13/2022",
228
+ "Data 1": "50",
229
+ "Data 2": "495",
230
+ "Data 3": "445",
231
+ "Data 4": "365"
232
+ },
233
+ {
234
+ "Date": "08/20/2022",
235
+ "Data 1": "48",
236
+ "Data 2": "480",
237
+ "Data 3": "430",
238
+ "Data 4": "355"
239
+ },
240
+ {
241
+ "Date": "08/27/2022",
242
+ "Data 1": "45",
243
+ "Data 2": "455",
244
+ "Data 3": "410",
245
+ "Data 4": "345"
246
+ },
247
+ {
248
+ "Date": "09/03/2022",
249
+ "Data 1": "42",
250
+ "Data 2": "420",
251
+ "Data 3": "380",
252
+ "Data 4": "325"
253
+ },
254
+ {
255
+ "Date": "09/10/2022",
256
+ "Data 1": "38",
257
+ "Data 2": "380",
258
+ "Data 3": "345",
259
+ "Data 4": "300"
260
+ },
261
+ {
262
+ "Date": "09/17/2022",
263
+ "Data 1": "34",
264
+ "Data 2": "330",
265
+ "Data 3": "300",
266
+ "Data 4": "270"
267
+ },
268
+ {
269
+ "Date": "09/24/2022",
270
+ "Data 1": "30",
271
+ "Data 2": "280",
272
+ "Data 3": "255",
273
+ "Data 4": "240"
274
+ },
275
+ {
276
+ "Date": "10/01/2022",
277
+ "Data 1": "25",
278
+ "Data 2": "230",
279
+ "Data 3": "210",
280
+ "Data 4": "205"
281
+ },
282
+ {
283
+ "Date": "10/08/2022",
284
+ "Data 1": "20",
285
+ "Data 2": "185",
286
+ "Data 3": "165",
287
+ "Data 4": "170"
288
+ },
289
+ {
290
+ "Date": "10/15/2022",
291
+ "Data 1": "15",
292
+ "Data 2": "140",
293
+ "Data 3": "120",
294
+ "Data 4": "130"
295
+ },
296
+ {
297
+ "Date": "10/22/2022",
298
+ "Data 1": "10",
299
+ "Data 2": "95",
300
+ "Data 3": "80",
301
+ "Data 4": "90"
302
+ },
303
+ {
304
+ "Date": "10/29/2022",
305
+ "Data 1": "8",
306
+ "Data 2": "70",
307
+ "Data 3": "55",
308
+ "Data 4": "65"
309
+ },
310
+ {
311
+ "Date": "11/05/2022",
312
+ "Data 1": "6",
313
+ "Data 2": "45",
314
+ "Data 3": "35",
315
+ "Data 4": "40"
316
+ },
317
+ {
318
+ "Date": "11/12/2022",
319
+ "Data 1": "5",
320
+ "Data 2": "30",
321
+ "Data 3": "22",
322
+ "Data 4": "28"
323
+ },
324
+ {
325
+ "Date": "11/19/2022",
326
+ "Data 1": "4",
327
+ "Data 2": "18",
328
+ "Data 3": "12",
329
+ "Data 4": "15"
330
+ },
331
+ {
332
+ "Date": "11/26/2022",
333
+ "Data 1": "3",
334
+ "Data 2": "10",
335
+ "Data 3": "6",
336
+ "Data 4": "8"
337
+ },
338
+ {
339
+ "Date": "12/03/2022",
340
+ "Data 1": "3",
341
+ "Data 2": "8",
342
+ "Data 3": "5",
343
+ "Data 4": "6"
344
+ },
345
+ {
346
+ "Date": "12/10/2022",
347
+ "Data 1": "2",
348
+ "Data 2": "6",
349
+ "Data 3": "4",
350
+ "Data 4": "4"
351
+ },
352
+ {
353
+ "Date": "12/17/2022",
354
+ "Data 1": "2",
355
+ "Data 2": "5",
356
+ "Data 3": "3",
357
+ "Data 4": "3"
358
+ },
359
+ {
360
+ "Date": "12/24/2022",
361
+ "Data 1": "1",
362
+ "Data 2": "3",
363
+ "Data 3": "2",
364
+ "Data 4": "2"
365
+ },
366
+ {
367
+ "Date": "12/31/2022",
368
+ "Data 1": "1",
369
+ "Data 2": "2",
370
+ "Data 3": "1",
371
+ "Data 4": "1"
372
+ }
373
+ ]
@@ -0,0 +1,3 @@
1
+ Program,Reach,Engagement,Effectiveness,Adoption,Maintenance,Cost Efficiency
2
+ Program A,85,70,90,65,75,80
3
+ Program B,60,85,70,90,80,55
@@ -1,5 +1,4 @@
1
1
  import React, { useEffect } from 'react'
2
- // import FocusLock from "react-focus-lock";
3
2
  import ReactDOM from 'react-dom'
4
3
  import CloseIcon from '../../assets/icons/close.svg'
5
4
 
@@ -21,7 +20,6 @@ export const Modal = ({ isShown, hide, modalContent, headerText }) => {
21
20
  const modal = (
22
21
  <>
23
22
  <div className='modal-backdrop' onClick={hide} />
24
- {/* <FocusLock> */}
25
23
  <div className='modal-wrapper' aria-modal aria-labelledby={headerText} tabIndex={-1} role='dialog'>
26
24
  <div className='modal'>
27
25
  <div className='modal-header'>
@@ -31,7 +29,6 @@ export const Modal = ({ isShown, hide, modalContent, headerText }) => {
31
29
  <div className='modal-content'>{modalContent}</div>
32
30
  </div>
33
31
  </div>
34
- {/* </FocusLock> */}
35
32
  </>
36
33
  )
37
34