I'll create a comprehensive financial analytics dashboard for the top 5 US companies. Let me start by exploring the project structure and then build it out.
Now let me install the charting library and set up all the files. I'll use recharts for charts and create a comprehensive dashboard.
Now let me update the index.html title and create all the source files.
Now let me create the data generation utility, types, components, and the main App.
Let me fix those lint errors:
Now let me also fix the unused ids++ and let ids = 0:
Now let me create the components directory and all the UI components:
Now let's create the main App.tsx:
Now let's update the CSS with dark mode support:
Now let's build the project to check for errors:
The project builds successfully. Let me verify the output looks good by checking the built file:
The build succeeded! The single-file bundle is ready. Let me verify the app is fully functional by quickly re-reading the key files to make sure everything connects properly.
Everything compiles and builds correctly. Here's a summary of what was created:
WallStreet Analytics Dashboard — Complete
I built a fully interactive financial analytics dashboard for the Top 5 US Companies (Apple, Microsoft, Amazon, Alphabet, Berkshire Hathaway) with four distinct financial categories as requested:
📊 Dashboard Structure
Project Files:
src/App.tsx — Main layout with header, KPI section, filters, charts, and data table
src/lib/types.ts — TypeScript types for financial records, KPIs, segments
src/lib/data.ts — Realistic sample data generator with seeded randomness, seasonal patterns, and growth trends for 27 months (2023-2025)
src/lib/useDarkMode.ts — Dark mode toggle with localStorage persistence
src/components/KpiCards.tsx — 4 KPI summary cards with trend indicators (up/down/neutral) and % change
src/components/Charts.tsx — 6 interactive charts with hover tooltips
src/components/DataTable.tsx — Sortable, searchable, paginated data table
src/components/Filters.tsx — Company filter, date range (month picker), sector segment filter
📈 Charts Included
| Chart | Type | Category |
|---|
| Revenue Trend | Area chart (toggleable companies) | Revenue |
| Net Income Comparison | Grouped bar chart | Profitability |
| EBITDA Trend | Line chart with legend | Profitability |
| Market Cap Distribution | Donut chart | Valuation |
| Profitability Margins | Grouped bar (Gross/Operating/Profit) | Profitability |
| Leverage & Efficiency | Dual-axis bar (D/E + ROE) | Leverage |
🎯 Four Categories (for WallStreet & Brokers)
- Revenue — Revenue trends, growth rates
- Profitability — Net income, EBITDA, margins (gross/operating/profit)
- Valuation — Market cap distribution, P/E ratios, EPS
- Leverage — Debt-to-Equity, ROE, liabilities
✨ Key Features
- Live-updating filters (company toggles, date range, sector segments) update every chart & table in real-time
- Hover tooltips on all charts with formatted values
- Smooth transitions (600-800ms animation durations on recharts)
- Dark mode toggle with smooth CSS transitions
- Sortable data table — click any column header to sort asc/desc, search bar, pagination
- Fully responsive grid layout adapts from 1 to 3 columns
- Clean modern design with gradient header, backdrop blur, custom scrollbars
Files built: index.html, src/lib/types.ts, src/lib/data.ts, src/lib/useDarkMode.ts, src/components/KpiCards.tsx, src/components/Charts.tsx, src/components/DataTable.tsx, src/components/Filters.tsx, src/App.tsx, src/index.css