EU Parliament Monitor - API Documentation - v0.7.15
    Preparing search index...
    • Generate a Sankey flow chart section as an HTML string with inline SVG.

      Returns an empty string when config is null/undefined or has no flows, following the same convention as buildSwotSection and buildDashboardSection.

      Parameters

      • config: SankeyConfig | null | undefined

        Sankey data (nodes, flows, optional summary).

      • lang: string = 'en'

        BCP 47 language code for the section heading.

      • Optionalheading: string

        Optional heading override.

      Returns string

      HTML string for the sankey section, or empty string.