@malloydata/render 0.0.22-dev230119001546 → 0.0.22-dev230124234605
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/html/vega_spec.js +2 -2
- package/package.json +2 -2
package/dist/html/vega_spec.js
CHANGED
|
@@ -449,9 +449,9 @@ class HTMLVegaSpecRenderer extends chart_1.HTMLChartRenderer {
|
|
|
449
449
|
throw new Error("Invalid field type for vega chart.");
|
|
450
450
|
}
|
|
451
451
|
translateField(explore, fieldString) {
|
|
452
|
-
const m = fieldString.match(/#\{(
|
|
452
|
+
const m = fieldString.match(/#\{(\d+)\}/);
|
|
453
453
|
if (m && m.groups) {
|
|
454
|
-
return explore.intrinsicFields[parseInt(m.groups[
|
|
454
|
+
return explore.intrinsicFields[parseInt(m.groups[1]) - 1].name;
|
|
455
455
|
}
|
|
456
456
|
return fieldString;
|
|
457
457
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/render",
|
|
3
|
-
"version": "0.0.22-
|
|
3
|
+
"version": "0.0.22-dev230124234605",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"prepublishOnly": "npm run build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@malloydata/malloy": "^0.0.22-
|
|
20
|
+
"@malloydata/malloy": "^0.0.22-dev230124234605",
|
|
21
21
|
"us-atlas": "^3.0.0",
|
|
22
22
|
"vega": "^5.21.0",
|
|
23
23
|
"vega-lite": "^5.2.0"
|