@cdc/data-bite 4.22.10 → 4.23.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/README.md +4 -4
- package/dist/cdcdatabite.js +2 -2
- package/examples/example-config.json +24 -24
- package/examples/example-data.json +833 -833
- package/examples/gallery/calculated-average.json +3166 -3166
- package/examples/gallery/calculated-with-pic.json +3172 -3172
- package/examples/gallery/max-value.json +3166 -3166
- package/examples/gallery/sum-of-data.json +3160 -3160
- package/examples/private/WCMSRD-12345.json +1026 -1026
- package/examples/private/totals.json +67 -1
- package/package.json +3 -3
- package/src/CdcDataBite.tsx +266 -272
- package/src/components/CircleCallout.js +8 -6
- package/src/components/EditorPanel.js +378 -636
- package/src/context.tsx +3 -3
- package/src/data/initial-state.js +37 -37
- package/src/index.html +19 -23
- package/src/index.tsx +9 -9
- package/src/scss/bite.scss +23 -18
- package/src/scss/editor-panel.scss +83 -70
- package/src/scss/main.scss +8 -8
- package/src/scss/variables.scss +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
"type": "data-bite",
|
|
3
|
+
"dataUrl": "http://localhost:8080/examples/example-data.json",
|
|
4
|
+
"dataBite": "",
|
|
5
|
+
"dataFunction": "Mean (Average)",
|
|
6
|
+
"dataColumn": "Insured Rate",
|
|
7
|
+
"bitePosition": "Left",
|
|
8
|
+
"biteFontSize": "24",
|
|
9
|
+
"imageData": {
|
|
10
|
+
"display": "none",
|
|
11
|
+
"url": "",
|
|
12
|
+
"options": []
|
|
13
|
+
},
|
|
14
|
+
"biteBody": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ornare nulla mauris, vel gravida libero mollis id. Etiam dignissim nunc ut ante fringilla, sit amet malesuada nibh accumsan.",
|
|
15
|
+
"dataFormat": {
|
|
16
|
+
"roundToPlace": 0,
|
|
17
|
+
"commas": true,
|
|
18
|
+
"prefix": "",
|
|
19
|
+
"suffix": "%"
|
|
20
|
+
},
|
|
21
|
+
"filters": [],
|
|
22
|
+
"biteStyle": "graphic",
|
|
23
|
+
"subtext": "*This is an optional subtext or citation.",
|
|
24
|
+
"title": "Average Insured Rate",
|
|
25
|
+
"theme": "theme-blue"
|
|
26
26
|
}
|