Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.54
    Preparing search index...

    Options for the Sankey section generator

    interface SankeySectionOptions {
    ย ย ย ย nodes: SankeyNode[];
    ย ย ย ย flows: SankeyFlow[];
    ย ย ย ย lang: string;
    ย ย ย ย title?: string;
    ย ย ย ย summary?: string;
    ย ย ย ย svgHeight?: number;
    }
    Index

    Properties

    nodes: SankeyNode[]

    Array of nodes (must have at least two: one source, one target)

    flows: SankeyFlow[]

    Array of directed flows between nodes

    lang: string

    Target language for labels

    title?: string

    Optional section title override

    summary?: string

    Optional narrative summary

    svgHeight?: number

    SVG canvas height in px (default: 340)