Create an interactive analytics dashboard for PERSONAL FINANCE aimed at EVERY…
- User
Create an interactive analytics dashboard for PERSONAL FINANCE aimed at EVERY YOUNGERTERS. 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
Now I'll build the personal finance dashboard. Let me start by updating the HTML title and creating the data utilities.
Let me fix the lint errors and create the components.
Now let me create the main App component with all the dashboard features:
Now let me create the hooks and components. First the dark mode hook:
Now let me create all the components:
Now let me fix the unused import in App.tsx:
Now let me update the CSS to include some custom styles:
Now let's build the project to verify everything compiles:
The project builds successfully! Here's a summary of what I created:
FinanceFlow - Personal Finance Dashboard
Features:
-
KPI Summary Cards - 4 cards showing Total Income, Total Expenses, Net Savings, and Savings Rate, each with trend indicators (up/down arrows with percentages comparing recent vs previous 3 months)
-
Interactive Charts (all with hover tooltips & smooth animations):
- Area Chart - Income vs Expenses over 12 months with gradient fills
- Donut Chart - Spending breakdown by category with center total
- Bar Chart - Top spending categories with color-coded bars
- Budget Chart - Budget vs Actual side-by-side comparison
-
Sortable & Filterable Data Table - Full transaction list with:
- Column sorting (click headers)
- Search filtering
- Pagination
- Color-coded type/segment badges
-
Live Filters that update every view simultaneously:
- Date range picker (from/to)
- Segment filter (Essential, Discretionary, Income)
- Type filter (Income, Expense)
- Reset button
-
Dark Mode Toggle - Respects system preference, persists in session, smooth transitions
-
Responsive Design - Works on mobile through desktop with grid layouts that adapt
-
Realistic Sample Data - 200 transactions across categories like Food & Dining, Shopping, Freelance, Subscriptions, etc. with amounts appropriate for younger adults
Architecture:
src/data/generateData.ts- Data generation enginesrc/hooks/useDarkMode.tsx- Dark mode contextsrc/components/- 6 modular chart/table componentssrc/App.tsx- Main dashboard orchestrator
Files built:
index.html,src/data/generateData.ts,src/App.tsx,src/hooks/useDarkMode.tsx,src/components/KPICards.tsx,src/components/IncomeExpenseChart.tsx,src/components/CategoryBarChart.tsx,src/components/SpendingDonut.tsx,src/components/BudgetChart.tsx,src/components/TransactionTable.tsx,src/index.css -
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.