<script>
// Node-link diagram in layercake.graphics
// as seen on:
// https://jandot.github.io/posts/nodelink-in-layercake/
// https://vis.social/@jandot
import { LayerCake, Svg } from 'layercake';
import NodeLink from './NodeLink.svelte';
import data from './data.json';
</script>
<style>
.chart-container {
width: 400px;
height: 200px;
}
</style>
<div class="chart-container">
<LayerCake
data={data}
>
<Svg>
<NodeLink/>
</Svg>
</LayerCake>
</div>