Skip to content

Stacked Bar Chart#76

Open
nhatt-dev wants to merge 5 commits intomainfrom
feature/add-stacked-bar-chart
Open

Stacked Bar Chart#76
nhatt-dev wants to merge 5 commits intomainfrom
feature/add-stacked-bar-chart

Conversation

@nhatt-dev
Copy link
Collaborator

@nhatt-dev nhatt-dev commented Nov 15, 2025

Changes

preview.mov

Backend

  • New endpoint: GET /transactions/getMonthlyByCategory/:user_id?startDate=<>&endDate=<>
  • Sanitize and validate inputs.
  • Aggregate transactions by month, yielding the total expense for each and all categories in a given month.
  • Optional query parameters can be used to limit retrieval period.

Frontend

  • Show monthly expense as bars with each bar further separated by category.
  • Responsive: bars resize based on width (of window/device) and height (height of tallest bar). Number of bars vary depending on screen size.
  • Absolute/relative: can toggle between both monthly absolute expense in dollars (or cents) and relative expense as a percentage.
  • Transition animation: bars shift smoothly between absolute and relative modes.

Testing

  • Various combinations of backend invocations including both meaningful and spurious inputs.
  • Different screen sizes.
  • Different randomly generated transaction data.

@himansig7 himansig7 self-requested a review January 26, 2026 07:27
Copy link
Collaborator

@himansig7 himansig7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, appreciate the detail in the pull request!

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

2 participants