You can go to the blockbuilder and to fork this block and create your own visualizations. Check out the Vega website for more information, tutorials, and documentation. This example uses Vega-Embed.
forked from domoritz's block: Vega block example
xxxxxxxxxx
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.7/vega.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-rc7/vega-embed.js"></script>
<style>
body {
font-family: sans-serif;
}
.vega-actions a {
padding: 0.2em;
}
</style>
</head>
<body>
<div id="vis"></div>
<script>
const spec = "bar.vg.json";
vegaEmbed('#vis', spec);
</script>
</body>
https://cdnjs.cloudflare.com/ajax/libs/vega/3.0.7/vega.js
https://cdnjs.cloudflare.com/ajax/libs/vega-embed/3.0.0-rc7/vega-embed.js