Forked from domoritz's block: Vega-Lite block example
xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.2/vega.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-rc3/vega-lite.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-beta.19/vega-embed.js"></script>
<style>
body {
font-family: sans-serif;
}
.vega-actions a {
padding: 0.2em;
}
.vega-bindings {
display: inline-block;
}
</style>
</head>
<body>
We can embed a visualization inline like this <span id="vis"></span>!
<script>
const spec = "bar.vl.json";
vega.embed('#vis', spec, {actions: false});
</script>
</body>
https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.2/vega.js
https://cdnjs.cloudflare.com/ajax/libs/vega-lite/2.0.0-rc3/vega-lite.js
https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-beta.19/vega-embed.js