{% include 'content_block_header.j2' %}

<div id="{{content_block_id}}-body" {{content_block_body_styling | replace("{{section_id}}", section_id) | replace("{{content_block_id}}", content_block_id)}}></div>
<script>
    // Assign the specification to a local variable vlSpec.
    vlSpec = {{content_block["graph"]}};
    // Embed the visualization in the container with id `vis`
    vegaEmbed('#{{content_block_id}}-body', vlSpec, {
        actions: false
    }).then(result=>console.log(result)).catch(console.warn);
</script>