View as Markdown

API reference: @salmonui/charts/sankey-chart

SankeyNodeinterface

import type { SankeyNode } from '@salmonui/charts/sankey-chart';
interface SankeyNode {
    readonly id: string;
    readonly label?: string | undefined;
    readonly offset?: number | undefined;
    readonly color?: string | undefined;
}
SankeyNode members (4)
NameSignatureDescription
idreadonly id: string;
labeloptionalreadonly label?: string | undefined;
offsetoptionalreadonly offset?: number | undefined;

Pixel shift along the column after layout.

coloroptionalreadonly color?: string | undefined;

Data color.