I'll build a comprehensive US Economy & Oil Prices dashboard for you. A few quick notes on my approach:
What I'm building:
- Key US economic indicators (GDP growth, inflation/CPI, unemployment, Fed funds rate, consumer sentiment, jobs)
- International oil prices (WTI Crude, Brent Crude, Natural Gas)
- Daily/historical trend charts
- Market snapshot cards with day-over-day changes
- Clean dashboard layout with dark mode aesthetic
On live data: Free reliable APIs (FRED, EIA) require API keys that need registration. I'll build the dashboard with realistic simulated data based on actual recent trends, and structure the code so you can easily swap in real API keys later (I'll add clear comments showing where). If you'd like, after this you can tell me which APIs you've signed up for and I'll wire them in.
Let me start building:
Now let me build the dashboard. I'll create a data file with realistic economic data, then build the dashboard components.
Now the main App:
Build succeeded. Here's what I built you:
📊 US Economy & Oil Markets Dashboard
Layout (top → bottom):
- Header – live date, time, and refresh button
- Today's Snapshot – hero strip with 6 top-line numbers (WTI, Brent, CPI, Fed Funds, Unemployment, S&P) each with day-over-day change
- International Oil & Energy
- Stat cards: WTI Crude, Brent Crude, Natural Gas (Henry Hub), US Gas Pump avg
- 90-day chart: WTI vs Brent
- 90-day chart: Natural Gas vs Gasoline
- US Economic Indicators
- Stat cards: CPI Inflation, Unemployment, Fed Funds Rate, GDP, Consumer Sentiment, Nonfarm Payrolls
- 24-month charts: Inflation vs Fed Funds, Unemployment, Payrolls, Sentiment vs Retail Sales
- Quarterly GDP growth chart
- US Equity Markets – S&P 500, Nasdaq, Dow snapshot cards + rebased comparison chart
- Market Wire – rolling headline feed with color-coded tags
- Data Sources callout showing where to plug in live API keys
Design: dark slate theme, gradient background, glass-morphism cards, Recharts for smooth area/line charts, color-coded up/down changes (green = good for GDP/jobs/markets, red = bad for inflation/unemployment).
❓ Questions for you to make this even better
To upgrade from illustrative data → live daily data, I need to know:
-
Do you want me to wire in real APIs? The two best free ones are:
If you register (takes ~30 seconds each), paste the keys and I'll swap the mock generators for real fetch calls.
-
Geographic focus? Right now it's US-heavy. Want me to add international comparisons (EU inflation, China GDP, OPEC production levels)?
-
Which indicators matter most to you? I can add: mortgage rates, housing starts, PCE inflation, ISM manufacturing, jobless claims, dollar index (DXY), gold, etc.
-
Personal angle? Are you tracking this for investing, business planning, or general awareness? That'd help me prioritize which numbers get top-billing.
Files built: src/data/economicData.ts, src/components/StatCard.tsx, src/components/ChartCard.tsx, src/App.tsx, index.html