Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Generate an economic dashboard section based on detected policy domains.

      Automatically finds relevant World Bank indicators for the given policy domains, builds Chart.js charts (comparison + trend), and generates accessible data tables.

      If no data points are provided but indicators are found, returns a placeholder section describing the relevant indicators (agentic workflows should fetch the actual data from World Bank API).

      Parameters

      Returns TemplateSection

      const section = generateEconomicDashboardSection({
      policyDomains: ['fiscal policy', 'defense'],
      dataPoints: worldBankData,
      lang: 'en',
      });
      if (section) {
      articleData.sections = [...(articleData.sections ?? []), section];
      }