Sankey

Sankey visualizes flows between entities. This work is based on Mike Bostock's Sankey Diagram
Home / Demo / Sankey
Sankey

Renderer: SVG

Module: vizart-path

Data: UK 2050 Energy Consumption

Doc: API

import { sankey } from 'vizart-path';
import 'vizart-path/dist/vizart-path.css';

const options = {
	chart: {
		margin: { left: 30, right: 30, top: 10, bottom: 30 }
	},
};

const _data = ...
const _chart = sankey('#chart', options);
_chart.render(_data);