Skip to content

feat: add RevenueChart component with recharts#60

Open
vicistar-star wants to merge 1 commit into
ShadeProtocol:mainfrom
vicistar-star:feat/revenue-chart-component
Open

feat: add RevenueChart component with recharts#60
vicistar-star wants to merge 1 commit into
ShadeProtocol:mainfrom
vicistar-star:feat/revenue-chart-component

Conversation

@vicistar-star
Copy link
Copy Markdown

@vicistar-star vicistar-star commented May 29, 2026

Summary

Closes #15 — Revenue Chart Component for the merchant dashboard.

  • Installs recharts@3.0.0
  • Adds src/components/RevenueChart.tsx — AreaChart accepting { date, amount }[] time-series data
  • Colors use CSS variables (--primary, --border, --muted-foreground, --card) — adapts to light/dark mode automatically
  • Custom tooltip shows exact amount on hover
  • Falls back to 6-month mock data when no data prop is provided

Verification

  • npm run typecheck passes
  • Chart renders with mock data; tooltip appears on hover

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@vicistar-star Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Revenue Chart Component

1 participant