Create an interactive analytics dashboard for Metricas de trabajadores de recursos humanos y sus actividades, un area de capacitacion, un area de atraccion del talento humano aimed at 20-30 users. Include KPI summary cards with trend indicators, a mix of line, bar, and donut charts with hover tooltips and smooth transitions, a sortable and filterable data table, and date-range and segment filters that update every view live. Use a clean, modern visual style with clear layout hierarchy and a dark mode toggle, generate realistic sample data so every chart feels alive, and make it fully responsive.
Assistant
I'll create an interactive HR analytics dashboard. Let me first explore the project structure.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I'll install recharts for the charts. Let me plan the architecture.
Let me set up the CSS with dark mode support for Tailwind v4.
Now let me create the data generation module with realistic sample data.
Now the formatting helpers and the data-processing hook.
Now let me build the UI components. Starting with the theme hook and KPI cards.
Now the KPI card component with sparkline and trend indicators.
Now the chart components with custom tooltips.
Now the filters bar (date-range + segment toggles).
Now the sortable and filterable data table.
Now the main App component that ties it all together.
Let me update the page title and then build.
The build succeeded. I've created a complete, interactive HR analytics dashboard.
What I built
A fully responsive Panel de Recursos Humanos covering the three requested areas — Actividades RH, Capacitación, and Atracción de Talento — with everything wired to live filters.
Key features:
6 KPI cards with trend indicators (▲/▼ % vs. previous period, auto-computed), colored accents, icons, and mini area-chart sparklines.
Chart mix with hover tooltips & smooth animations:
Multi-series line chart (contrataciones, candidatos, cursos, actividades) with custom styled tooltips
Stacked bar chart of weekly volume by area
Donut chart of workload distribution with a total in the center
Horizontal bar recruitment funnel (Candidatos → Entrevistas → Contrataciones)
Sortable + filterable data table of 30 HR workers — click any column header to sort, live text search, and status filter, plus productivity progress bars and status/area badges.
Live filters — date-range pickers with quick presets (7d/30d/90d/6m) and per-area segment toggles that instantly update every KPI, chart, and the table (including previous-period comparisons for trends).
Dark mode toggle persisted to localStorage, with charts/axes/tooltips adapting to the theme.
Realistic deterministic sample data (180 days, seasonal trends, weekend dips, growth) so every visualization feels alive.
The design uses a clean modern layout with ambient gradients, clear hierarchy, rounded cards, and works from mobile to desktop.