EU Parliament Monitor - API Documentation - v0.7.7
    Preparing search index...
    • Build a complete dashboard section HTML.

      Generates an accessible dashboard with metric cards and chart containers. Charts are embedded as Canvas elements with data-chart-config JSON attributes for client-side Chart.js hydration. A <noscript> fallback provides accessible data tables when JavaScript is disabled.

      Returns an empty string if the config is null/undefined or contains no panels with content.

      Parameters

      • config: DashboardConfig | null | undefined

        Dashboard configuration (null/undefined returns empty string)

      • lang: string = 'en'

        BCP 47 language code for localized UI text (defaults to "en")

      • Optionalheading: string

        Optional custom section heading override

      Returns string

      HTML section string or empty string