EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...

    Complete dashboard configuration. Used by agentic workflows to generate data dashboards for any article type using data from European Parliament MCP, World Bank API, or other sources.

    const dashboard: DashboardConfig = {
    title: 'Legislative Activity Overview',
    panels: [
    {
    title: 'Voting Statistics',
    metrics: [
    { label: 'Total Votes', value: '1,234', trend: 'up', change: 5.2 },
    { label: 'Participation Rate', value: '87%', trend: 'stable' },
    ],
    chart: {
    type: 'bar',
    data: {
    labels: ['EPP', 'S&D', 'Renew', 'Greens/EFA'],
    datasets: [{ label: 'Votes Cast', data: [400, 350, 200, 150] }],
    },
    },
    },
    ],
    };
    interface DashboardConfig {
        title?: string;
        panels: readonly DashboardPanel[];
    }
    Index

    Properties

    Properties

    title?: string

    Dashboard heading

    panels: readonly DashboardPanel[]

    Dashboard panels — each contains metrics and/or a chart