Track income and spending with category charts.
Difficulty: Intermediate · Technology: JavaScript, Chart library
Features to build
- Add transactions
- Category totals
- Monthly chart
- Export to CSV
Step-by-step build plan
- Define transaction fields: amount, type, category, date
- Build the add and delete form
- Compute totals by category
- Draw a chart from the totals
- Export the data as a CSV file
The part most people find hard
Working with dates and rounding money correctly.
How to test it
Compare your totals with a manual spreadsheet.
What to decide before you start
Decide how to store money amounts. Using whole paise or rounding carefully avoids floating-point surprises.
Questions an interviewer may ask about this project
- How do you total by category?
- How did you pick the chart type?
- How would you handle a large number of entries?
Mistakes to watch for
Floating-point rounding and mixing date formats.
Suggested extensions
Add user accounts, better error handling, automated tests and a README with screenshots. Each extension is a new talking point in interviews.
How to describe it on your resume
Implemented an expense tracker with category analytics and CSV export.
Portfolio tip
Deploy it, link both the live version and the code, and write two paragraphs about what you learned and what you would improve.