EU Parliament Monitor — API Documentation - v0.8.24
    Preparing search index...
    • Build a category distribution panel showing counts per category as a bar chart. Unlike buildGenericTrendPanel, this does not compute direction or week-over-week change metrics, which are only meaningful for chronological time-series data.

      Parameters

      • d: DashboardBuilderStrings

        Localized strings

      • labels: readonly string[]

        Category labels for x-axis

      • counts: readonly number[]

        Counts per category (must align with labels)

      • datasetLabel: string

        Label for the dataset

      • title: string

        Panel title

      Returns DashboardPanel | null

      Panel object or null if all counts are zero