Skip to content

Multi-Line Chart#78

Open
jenniferrzhu wants to merge 2 commits intomainfrom
feature/add-multiline-chart
Open

Multi-Line Chart#78
jenniferrzhu wants to merge 2 commits intomainfrom
feature/add-multiline-chart

Conversation

@jenniferrzhu
Copy link
Collaborator

@jenniferrzhu jenniferrzhu commented Nov 20, 2025

Changes

Implemented visualization comparing spending in different categories trend over time.
Screenshot 2025-11-19 at 4 06 10 PM

Backend

  • Added new endpoint GET /transactions/multiTrend/:user_id with query params period (weekly/daily) and months (1-12)
  • Returns aggregated transaction data grouped by date and category with total spending per category per time period
  • Added input validation and error handling for user_id, period, and months parameters

Frontend

  • Created new MultiLineChart component using react-native-svg for visualization
  • Displays multiple category spending trends as separate lines on the same graph with color-coded categories
  • Features include: dots at data points, legend showing category-color mapping, clipping below x-axis
  • Updated History page with category trends comparison graph and time range selector (1M, 3M, 6M, 1Y)
  • Chart updates automatically when time range changes
  • Responsive design: chart width adapts to screen size (75% of screen width)

Testing

  • Different screen sizes
  • Different time range
  • Multiple categories with varying spending patterns

@himansig7 himansig7 requested a review from anikadontu January 30, 2026 03:13
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.

1 participant