Read a JSON description of a dashboard: title, audience, shows_last_updated (boolean) and panels, each with id, kind (kpi, chart, table, map, image…), row, col, priority (1 = most important) and optionally task, comparison (boolean), colors (number).
Print dashboard 'City air' for city officials: 4 panels, then issues in this order:
- D1 more than 9 panels:
D1 12 panels: too many for one screen (aim for at most 9); - D2 the panel with the smallest priority number (first if tied) is not at row 0, col 0:
D2 most important panel 'mean_pm25' is at row 0, col 1 (put it top-left); - for each panel in order: D3 a
kpiwithoutcomparison:D3 KPI 'x' has no comparison (target, previous period or benchmark); D4 no task:D4 panel 'logo' serves no stated task; D5 more than 9 colours:D5 panel 'trend' uses 12 colours; - D6
shows_last_updatedfalse:D6 no 'last updated' time shown (users cannot judge freshness); - D7 for each task used by more than one panel (first-appearance order):
D7 2 panels serve the same task 'compare trends by district' (redundant?).
Finish with 6 issue(s) or no issues found.