import { analyzeDashboardData } from './ai-analysis/dashboard-analyzer.js';
const result = analyzeDashboardData(docs, 'defence policy', 'en');
// result.charts — [AIChartConfig, AIChartConfig, AIChartConfig]
// result.tables — [DashboardTableConfig × 3]
// result.dataQuality — 'high' | 'medium' | 'low'
Analyze a set of parliamentary documents and produce AI-aware chart configurations for the deep-inspection dashboard.
Returns exactly three chart + table pairs covering:
If
docsis empty, all charts return minimal placeholder data so the dashboard still renders without errors.