Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
AxisX.svelte
AxisY.svelte
Streamgraph.svelte
data.json
<script>
// original: https://observablehq.com/@d3/streamgraph/2
// svelte version: Sebastian Lammers https://vis.social/@seblammers
import Streamgraph from './Streamgraph.svelte';
import data from './data.json';
</script>

<Streamgraph {data} />
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */