Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
},
"mark": { "type": "line", "tooltip": { "content": "data" } },
"selection": {
"selector016": {
"bind": "scales",
"encodings": [
"x",
"y"
],
"type": "interval"
}
}
}
try {
vegaEmbed(document.querySelector('#chartplace'), chartData);
} catch (ex) {
console.warn('Could not create vega chart:', ex);
}
}
vegaSpec: function (newVal, oldVal) {
vegaEmbed('#vega', JSON.parse(this.vegaSpec), { actions: false })
}
}
response.json().then(spec => {
vegaEmbed('#vega-box', spec, {actions: false})
})
})