@cdc/data-bite 4.23.11 → 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/cdcdatabite.js +1127 -1115
- package/examples/private/data-bite.json +157 -0
- package/package.json +3 -3
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "data-bite",
|
|
3
|
+
"dataBite": "",
|
|
4
|
+
"dataFunction": "Sum",
|
|
5
|
+
"dataColumn": "activity_level",
|
|
6
|
+
"bitePosition": "Left",
|
|
7
|
+
"biteFontSize": 24,
|
|
8
|
+
"fontSize": "medium",
|
|
9
|
+
"biteBody": "Nationally, the wastewater viral activity level for COVID-19 is currently <strong><span class=\"label\">FromDB</span></strong>.",
|
|
10
|
+
"imageData": {
|
|
11
|
+
"display": "dynamic",
|
|
12
|
+
"url": "",
|
|
13
|
+
"alt": "",
|
|
14
|
+
"options": [
|
|
15
|
+
{
|
|
16
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_1-MIN-1.png",
|
|
17
|
+
"arguments": [
|
|
18
|
+
{
|
|
19
|
+
"operator": "<=",
|
|
20
|
+
"threshold": "1"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"alt": "minimal",
|
|
24
|
+
"secondArgument": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_2-MIN-2.png",
|
|
28
|
+
"arguments": [
|
|
29
|
+
{
|
|
30
|
+
"operator": "<=",
|
|
31
|
+
"threshold": "1"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"alt": "minimal",
|
|
35
|
+
"secondArgument": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_3-LOW-1.png",
|
|
39
|
+
"arguments": [
|
|
40
|
+
{
|
|
41
|
+
"operator": "<=",
|
|
42
|
+
"threshold": "2"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"alt": "Low",
|
|
46
|
+
"secondArgument": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_4-LOW-2.png",
|
|
50
|
+
"arguments": [
|
|
51
|
+
{
|
|
52
|
+
"operator": "<=",
|
|
53
|
+
"threshold": "4"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"alt": "Low",
|
|
57
|
+
"secondArgument": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_5-MOD-1.png",
|
|
61
|
+
"arguments": [
|
|
62
|
+
{
|
|
63
|
+
"operator": "<=",
|
|
64
|
+
"threshold": "5"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"alt": "Moderate",
|
|
68
|
+
"secondArgument": false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_6-MOD-2.png",
|
|
72
|
+
"arguments": [
|
|
73
|
+
{
|
|
74
|
+
"operator": "<=",
|
|
75
|
+
"threshold": "6"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"alt": "Moderate",
|
|
79
|
+
"secondArgument": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_7-H-1.png",
|
|
83
|
+
"arguments": [
|
|
84
|
+
{
|
|
85
|
+
"operator": "<=",
|
|
86
|
+
"threshold": "7"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"alt": "High",
|
|
90
|
+
"secondArgument": false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_8-H-2.png",
|
|
94
|
+
"arguments": [
|
|
95
|
+
{
|
|
96
|
+
"operator": "<=",
|
|
97
|
+
"threshold": "8"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"alt": "High",
|
|
101
|
+
"secondArgument": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_9-VH-1.png",
|
|
105
|
+
"arguments": [
|
|
106
|
+
{
|
|
107
|
+
"operator": "<=",
|
|
108
|
+
"threshold": "9"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"alt": "Very high",
|
|
112
|
+
"secondArgument": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"source": "/nwss/rv/images/new-condition/WastewaterWeb_10-VH-2.png",
|
|
116
|
+
"arguments": [
|
|
117
|
+
{
|
|
118
|
+
"operator": "",
|
|
119
|
+
"threshold": "10"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"alt": "Very high",
|
|
123
|
+
"secondArgument": false
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"dataFormat": {
|
|
128
|
+
"roundToPlace": 0,
|
|
129
|
+
"commas": true,
|
|
130
|
+
"prefix": "",
|
|
131
|
+
"suffix": ""
|
|
132
|
+
},
|
|
133
|
+
"biteStyle": "title",
|
|
134
|
+
"filters": [],
|
|
135
|
+
"subtext": "",
|
|
136
|
+
"title": "",
|
|
137
|
+
"theme": "theme-blue",
|
|
138
|
+
"shadow": false,
|
|
139
|
+
"visual": {
|
|
140
|
+
"border": false,
|
|
141
|
+
"accent": false,
|
|
142
|
+
"background": false,
|
|
143
|
+
"hideBackgroundColor": false,
|
|
144
|
+
"borderColorTheme": false
|
|
145
|
+
},
|
|
146
|
+
"general": {
|
|
147
|
+
"isCompactStyle": false
|
|
148
|
+
},
|
|
149
|
+
"dataFileName": "/wcms/vizdata/NCEZID_DIDRI/nwss_data_bites.json",
|
|
150
|
+
"dataFileSourceType": "url",
|
|
151
|
+
"dataUrl": "/wcms/vizdata/NCEZID_DIDRI/nwss_data_bites.json?2023-11-28T18:30:00.000Z?2023-11-28T18:30:00.000Z?2023-11-28T18:30:00.000Z?2023-11-28T18:30:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:15:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z?2023-11-28T20:45:00.000Z",
|
|
152
|
+
"dataDescription": {
|
|
153
|
+
"horizontal": false,
|
|
154
|
+
"series": false
|
|
155
|
+
},
|
|
156
|
+
"validated": 4.23
|
|
157
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/data-bite",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.1",
|
|
4
4
|
"description": "React component for displaying a single piece of data in a card module",
|
|
5
5
|
"moduleName": "CdcDataBite",
|
|
6
6
|
"main": "dist/cdcdatabite",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cdc/core": "^4.
|
|
29
|
+
"@cdc/core": "^4.24.1",
|
|
30
30
|
"chroma": "0.0.1",
|
|
31
31
|
"chroma-js": "^2.1.0",
|
|
32
32
|
"html-react-parser": "^3.0.8",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react": "^18.2.0",
|
|
40
40
|
"react-dom": "^18.2.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a352a3f74f4b681191e3244061dbb3621f36eec3"
|
|
43
43
|
}
|