BUG: fix compile to vega
@@ -97,7 +97,7 @@ EXTRACT_CODE = {
if(mode === 'vega-lite'){
// compile vega-lite to vega
vegaLite = (typeof vegaLite === "undefined") ? vl : vegaLite;
- const compiled = vl.compile(spec);
+ const compiled = vegaLite.compile(spec);
spec = compiled.spec;
}
