Skip to content

Commit

Permalink
fix: apply config in CLI (#7449)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Jul 24, 2021
1 parent 478d54c commit 908237b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module.exports = (type, callback, opt) => {

// instantiate view and invoke headless render method
function render(vlSpec) {
const vgSpec = vegaLite.compile(vlSpec).spec;
const view = new vega.View(vega.parse(vgSpec, config), {
const vgSpec = vegaLite.compile(vlSpec, {config}).spec;
const view = new vega.View(vega.parse(vgSpec), {
locale: locale, // set locale options
loader: vega.loader({baseURL: base}), // load files from base path
logger: vega.logger(loglevel, 'error'), // route all logging to stderr
Expand Down

0 comments on commit 908237b

Please sign in to comment.