Skip to content

feat: spending trend heatmap visualization (#116)#757

Open
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feature/spending-heatmap-116
Open

feat: spending trend heatmap visualization (#116)#757
alexchenai wants to merge 1 commit intorohitdash08:mainfrom
alexchenai:feature/spending-heatmap-116

Conversation

@alexchenai
Copy link
Copy Markdown

Summary

Implements a calendar-based spending heatmap for visual spending trend analysis.

Features

  • Monthly heatmap: day-by-day spending amounts, counts, and per-category breakdown
  • Yearly heatmap: week-by-week cells + monthly breakdown (GitHub-style)
  • Category filtering on both month and year views
  • Summary statistics: total, average daily, peak day with amount
  • Peak spending insights: top 5 days, weekday vs weekend comparison

API Endpoints

  • GET /api/analytics/spending-heatmap?period=month&year=2026&month=4 — monthly calendar data
  • GET /api/analytics/spending-heatmap?period=year&year=2026 — yearly contribution graph
  • GET /api/analytics/spending-heatmap/summary — peak day and weekday/weekend insights

Tests

6 tests: empty heatmap, day aggregation, category filter, yearly monthly breakdown, peak summary, correct cell count per month.

Closes #116

- Monthly calendar heatmap: day-by-day spending amounts and counts
- Yearly GitHub-style heatmap: weekly cells + monthly breakdown
- Category filtering on both month and year views
- Peak spending insights: top 5 days, weekday vs weekend analysis
- Responsive API with summary statistics (total, avg, peak day)
- 6 comprehensive tests covering aggregation, filtering, and edge cases

Closes rohitdash08#116
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.

Spending trend heatmap visualization

1 participant