Skip to content

feat: add portfolio performance chart card to Analytics page (#255)#388

Open
Luluameh wants to merge 1 commit intoDevsol-01:mainfrom
Luluameh:feat/analytics-portfolio-chart
Open

feat: add portfolio performance chart card to Analytics page (#255)#388
Luluameh wants to merge 1 commit intoDevsol-01:mainfrom
Luluameh:feat/analytics-portfolio-chart

Conversation

@Luluameh
Copy link
Copy Markdown

Portfolio Performance Chart – Walkthrough

Changes Made

1. Installed recharts

Added the recharts charting library as a dependency.

2. Created PortfolioPerformanceChart.tsx

A "use client" component containing:

  • Header: "TOTAL PORTFOLIO VALUE" label, $124,592.45 value, +12.4% growth badge with trending-up icon, and a ... overflow menu button.
  • Area Chart: Responsive AreaChart from recharts with 16 data points spanning Oct 01 → Nov 01, cyan stroke, gradient fill, and subtle horizontal grid lines.
  • Custom Tooltip: Dark card with cyan border showing date and formatted dollar value on hover.
  • Active Dot: Glowing cyan dot with dashed vertical guide line on the hovered data point.

3. Updated page.tsx

Replaced the placeholder card with <PortfolioPerformanceChart />.

Verification

Opened http://localhost:3000/dashboard/analytics in the browser and confirmed all acceptance criteria:

Criteria Status
Card with header, value, badge
Area chart with gradient fill
X-axis date labels aligned
Tooltip on hover
Responsive layout, no overflow
Matches dashboard visual system

analytics_chart_verify_1774551770366

Closes : #255

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nestera Error Error Mar 26, 2026 7:22pm

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@Luluameh 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

@Olowodarey
Copy link
Copy Markdown
Collaborator

@Luluameh pls run build in ur local before you push

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.

Build portfolio performance chart card for Analytics page for dashboard

2 participants