0% found this document useful (0 votes)
12 views47 pages

Expense Tracker with Heatmap Project Report

The document is a minor project report for an 'Expense Tracker with Heatmap' developed by students at Dr. Akhilesh Das Gupta Institute of Professional Studies. It outlines the project's objectives, methodology, and features, including a multi-user financial management system that visualizes spending patterns through heatmaps and charts. The report also includes acknowledgments, a certificate of authenticity, and various technical specifications related to software and hardware requirements.

Uploaded by

chiragtyagi131
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views47 pages

Expense Tracker with Heatmap Project Report

The document is a minor project report for an 'Expense Tracker with Heatmap' developed by students at Dr. Akhilesh Das Gupta Institute of Professional Studies. It outlines the project's objectives, methodology, and features, including a multi-user financial management system that visualizes spending patterns through heatmaps and charts. The report also includes acknowledgments, a certificate of authenticity, and various technical specifications related to software and hardware requirements.

Uploaded by

chiragtyagi131
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Dr.

Akhilesh Das Gupta Institute of Professional Studies


(Formerly ADGITM)
Department of Computer Science & Engineering
Guru Gobind Singh Indraprastha University, Delhi

EXPENSE TRACKER WITH HEATMAP

Minor Project Report (ES-451)


Academic Year 2025–26

Submitted By:

Shivam Khanduri — 00215607223


Chirag Tyagi — 00315607223
Navneet Singh Rawal — 00415607223

Under the Guidance of:

Mr. Ahsan

Department of Computer Science & Engineering


Dr. Akhilesh Das Gupta Institute of Professional Studies
Shastri Park, Delhi – 110053

DECLARATION

We, the undersigned student(s) of [Link]. (…..), hereby declare that the minor project titled
“Expense Tracker with Heatmap” submitted to the Department of Computer Science &

1
Engineering ……………………………., at Dr. Akhilesh Das Gupta Institute of professional
Studies , Delhi, affiliated with Guru Gobind Singh Indraprastha University, Dwarka New Delhi,
in partial fulfillment of the requirements for the degree of Bachelor of Technology in ….., has
not previously been used as the basis for the award of any degree, diploma, or similar title or
recognition. The list of members involved in the project is as follows:

S. No. Student Name Enrollment Number Student Signature

1 Shivam Khanduri 00215607223

2 Chirag Tyagi 00315607223

3 Navneet Singh Rawal 00415607223

Place: Delhi
Date:

ACKNOWLEGEMENT

The note starts with thanks to Almighty who actually created this piece of work and helped us
when things were not easy for us.

2
I am very grateful and indebted to Mr. Ahsan the guide who immensely helped and rendered his
valuable advice, precious time, knowledge and relevant information regarding the collection of
material. He has been a major source of inspiration throughout the project as he not only guided
me throughout the Minor Project titled Expense Tracker with Heatmap but also encouraged
me to solve problems that arose during this report.
His guidance and suggestions about this Minor Project report have really enlightened me. It has
been a great help to support to have him around.
And finally, I would like to mention appreciation to our parents and friends who have been
instrumental throughout this period by providing unrelenting encouragement.

S. No. Student Name Enrollment Number Student Signature

1 Shivam Khanduri 00215607223

2 Chirag Tyagi 00315607223

3 Navneet Singh Rawal 00415607223

Place: Delhi
Date:

3
CERTIFICATE

This is to certify that this project entitled “ Expense Tracker with Heatmap” submitted in partial

fulfillment of the degree of [Link]. (CSE) as a part of the curriculum bearing Course Code

…………………………. submitted to the Department of Computer Science & Engineering

……………………………., at Dr. Akhilesh Das Gupta Institute of professional Studies, Delhi,

affiliated to Guru Gobind Singh Indraprastha University, New Delhi-110078 to me by

S. No. Student Name Enrollment Number Student Signature

1 Shivam Khanduri 00215607223

2 Chirag Tyagi 00315607223

3 Navneet Singh Rawal 00415607223

is an is an authentic work carried out by them under my guidance. The matter embodied in this

project work has not been submitted earlier for award of any degree to the best of my knowledge

and belief.

Signature of the Supervisor


(Mr. Ahsan)

Countersigned by:

Director/Principal/HoD/Project In charge

Place: Delhi

Date:

4
ABSTRACT
The project “Expense Tracker with Heatmap” is designed as a multi-user financial
management system that enables individuals to record, monitor, and analyze their day-to-day
expenses in a structured and visually meaningful manner. In modern personal finance
management, users often struggle to understand spending patterns due to scattered data, lack of
categorization, and absence of visual insights. This project addresses these challenges by
providing a clean, intuitive, and data-driven interface built using HTML, CSS, and JavaScript.

The system allows users to register and securely log in, after which they can add income and
expense entries with categories, amounts, dates, and notes. The core highlight of the project is
the heatmap visualization, which represents daily spending intensity using color gradients. This
allows users to identify high-expense days, irregular spending behavior, and monthly trends at a
glance.

Additional analytical tools such as pie charts, category-wise summaries, and monthly
breakdowns are integrated to improve financial awareness. The system is responsive, functioning
across both web and mobile layouts, ensuring accessibility and ease of use.

The project follows standard software development practices including system analysis,
feasibility study, design methodology, DFD diagrams, UI design, implementation, and testing
phases. As a complete minor project, it demonstrates the application of frontend technologies to
create an interactive, analytical, and user-friendly financial tracking solution.

List of Figures

Figure No. Title Page No.

5
Figure 2.1 DFD Level 0 — Context Diagram 18

Figure 2.2 DFD Level 1 — Main Processes 19

Figure 2.3 DFD Level 2 — Detailed Modules 20

Figure 3.1 Wireframe — Login Page 24

Figure 3.2 Wireframe — Dashboard Page 25

Figure 3.3 Wireframe — Add Transaction Page 26

Figure 3.4 Wireframe — Analytics Page 27

Figure 3.5 Wireframe — Heatmap Page 28

Figure 3.6 Responsive Layout Example 29

Figure 5.1 Installation Flowchart 42

Figure 5.2 Sample Dashboard & Charts 45

LIST OF TABLE

6
Table No. Title Page No.

Table 2.1 Software Requirements Specification 22

Table 2.2 Hardware Requirements Specification 23

Table 5.1 JavaScript Functions and Purpose 43

Table 5.2 Sample Transaction Data 44

Table 6.1 Limitations of the System 50

Table 6.2 Future Enhancements Roadmap 52

LIST OF SYMBOLS & ABBREVIATIONS

Symbol / Abbreviation Full Form / Meaning

UI User Interface

7
UX User Experience

HTML HyperText Markup Language

CSS Cascading Style Sheets

JS / JavaScript Programming language used for logic

DFD Data Flow Diagram

SRS Software Requirements Specification

HRS Hardware Requirements


Specification

API Application Programming Interface

DB Database

CRUD Create, Read, Update, Delete

JSON JavaScript Object Notation

HTTP Hypertext Transfer Protocol

Chapter 1 — Introduction

1.1 Background

In today’s digital era, personal financial management has become increasingly complex. People
receive income from multiple sources, incur daily expenses, and often lack a systematic way to
track their finances. Traditional methods, such as handwritten notebooks or spreadsheets, are

8
prone to errors, data loss, and inconsistent record keeping. Additionally, these methods do not
provide insights into spending patterns or trends.

Modern financial management applications aim to bridge this gap by providing intuitive
dashboards, real-time tracking, and visual analysis of expenses. However, many existing tools
are either overly complex, subscription-based, or fail to provide actionable insights.

1.2 Problem Statement

Despite the availability of financial apps, users face several challenges:

● Fragmented Records: Multiple sources of expenses and income lead to scattered data.

● Lack of Visualization: Users cannot easily identify high-spending periods.

● Manual Errors: Handwritten or spreadsheet-based tracking is prone to mistakes.

● Limited Analysis: Few apps provide actionable insights or summary reports for better
decision-making.

These issues highlight the need for a system that is simple, visual, and analytical, helping users
manage finances effectively.

1.3 Objectives

The main objectives of this project are:

1. Develop a web-based Expense Tracker for managing daily income and expenses.

2. Provide visual summaries, including charts and heatmaps, to identify spending patterns.

3. Support multi-user functionality, ensuring privacy and isolated data storage.

4. Enable easy entry and categorization of transactions.

5. Offer responsive design, accessible across devices (desktop, tablet, mobile).

Table 1.1 — Project Objectives vs Benefits

Objective Benefit

9
Track income & expenses Users maintain accurate records

Heatmap visualization Identify high-spending days easily

Multi-user login Data privacy & segregation

Charts & summaries Better decision-making

Responsive design Accessibility on any device

1.4 Scope of the Project

The project focuses on providing a frontend-based, lightweight application that is easy to use,
with the following features:

● Income & Expense Entry: Simple forms for recording transactions with category
selection.

● Dashboard Overview: Instant snapshot of total income, expenses, balance, and recent
transactions.

● Charts & Analytics: Pie charts, bar graphs, and monthly summaries to help understand
spending behavior.

● Heatmap Visualization: Color-coded daily spending to quickly detect trends.

● Export & Backup: Users can export data for offline analysis or backup purposes.

Limitations:

● No backend database (LocalStorage is used).

10
● Limited advanced analytics in current version.

1.5 Motivation

The motivation behind this project arises from observing common financial management issues
among individuals, particularly students and working professionals:

1. Simplify Expense Tracking: Reduce reliance on error-prone manual methods.

2. Visual Insight: Allow users to “see” their spending patterns rather than just numbers.

3. Accessible Platform: Ensure anyone with a modern browser can use it without
installations.

4. Learning Opportunity: Apply practical web development skills (HTML, CSS, JS) and
data visualization techniques.

By creating this system, users are empowered to plan better, save efficiently, and make
informed financial decisions.

1.6 Methodology Overview

The project follows a structured approach combining software engineering principles and
frontend development best practices:

1. Requirement Gathering: Identify user needs, functional and non-functional


requirements.

2. System Design: Create wireframes, DFDs, and flowcharts for clarity.

3. Frontend Implementation: Build modules using HTML, CSS, and JS.

4. Testing & Validation: Unit, integration, usability, and performance testing.

5. Deployment: Provide a ready-to-use web application with optional online hosting.

1.7 Expected Outcomes

After successful completion, the system will:

11
● Provide a centralized, multi-user platform for financial management.

● Visualize daily, weekly, and monthly spending patterns.

● Enable quick identification of unusual spending trends through heatmaps.

● Enhance user awareness and improve budgeting decisions.

Chapter 2 — System Analysis


2.1 General

The Expense Tracker with Heatmap aims to provide users with a centralized, easy-to-use
platform for managing their daily income and expenses. Users often struggle with scattered
records, manual tracking errors, and the lack of visual insights. This system addresses these
problems by combining secure multi-user login, structured data storage, charts, summaries, and a
heatmap visualization.

The system uses modern frontend technologies (HTML, CSS, JS) to ensure lightweight
performance, responsiveness, and cross-device compatibility.

2.2 Preliminary Investigation

Before designing the system, a preliminary investigation was conducted to understand the
challenges faced by users in daily expense tracking:

1. No centralized records: Users store expenses in multiple notebooks or spreadsheets.

2. Limited visualization: Spending patterns are not visually represented.

3. Error-prone manual methods: Risk of missing entries or calculation mistakes.

4. Complex apps: Many apps are subscription-based or difficult to use.

12
Findings:

● Users prefer simple, minimal interfaces.

● Visual summaries like charts and heatmaps improve understanding.

● Multi-user support is required for shared devices.

Table 2.1 — Preliminary Investigation Summary

Problem Identified Observed Impact Proposed Solution

Fragmented records Missing transactions Centralized digital platform

Lack of visualization Hard to track patterns Charts & heatmap visualization

Manual errors Miscalculations Automated calculations & validation

Complex apps Low adoption Simple and intuitive UI

2.3 Feasibility Study


2.3.1 Technical Feasibility

The system is technically feasible due to:

● Frontend-only architecture (HTML, CSS, JS) requiring no backend server.

● Lightweight JS libraries ([Link]) for charts and heatmap.

13
● Minimal hardware requirement: works on modern browsers, PCs, tablets, and mobiles.

● Easy maintenance: updates limited to frontend files.

2.3.2 Economical Feasibility

The project is economically feasible because:

● All tools and libraries are free and open-source.

● Hosting can be done on free platforms like GitHub Pages.

● No database or server infrastructure required.

● Maintenance is simple and cost-free.

Table 2.2 — Cost Analysis

Component Cost Remarks

HTML, CSS, JS Free Open-source

[Link] library Free Open-source charting

Hosting Free GitHub Pages / Netlify

Hardware Already available Laptop/PC

2.3.3 Operational Feasibility

Operational feasibility checks whether the system works smoothly in daily use:

● Easy entry of income/expense.

14
● Clean and intuitive interface.

● Heatmap visualization provides instant insight.

● Minimal training required.

● Multi-user login ensures data privacy.

2.4 Software and Hardware Specification


2.4.1 Software Requirements

Component Specification Purpose

Operating System Windows/macOS/Linux/Android Runs application

Frontend HTML, CSS, JS Structure, styling, logic

Browser Chrome/Edge/Firefox Executes frontend logic

Libraries [Link] Charts & heatmap generation

Editor VS Code Code development

2.4.2 Hardware Requirements

Component Minimum Requirement

Processor 1 GHz

RAM 2 GB

15
Storage 200 MB

Device Laptop/PC/Mobile

2.5 Use Case Descriptions

To analyze system functionality, we define the following use cases:

Use Case 1: User Login

● Actor: Registered User

● Description: User logs in using email/username and password.

● Pre-condition: User must be registered.

● Post-condition: Access granted to Dashboard.

● Steps:

1. Enter username/email.

2. Enter password.

3. System validates credentials.

4. Dashboard is displayed on success.

Use Case 2: Add Transaction

● Actor: User

● Description: Add an income or expense transaction.

● Pre-condition: User is logged in.

● Post-condition: Transaction saved in LocalStorage and reflected in dashboard.

● Steps:

1. Navigate to Add Transaction page.

16
2. Enter amount, select type (Income/Expense), choose category, date, and optional
note.

3. Submit form → transaction stored in structured JSON format.

Use Case 3: View Analytics

● Actor: User

● Description: Generate charts and heatmap of transactions.

● Pre-condition: Transactions exist.

● Post-condition: Charts and heatmap displayed.

● Steps:

1. Navigate to Analytics page.

2. Charts generated dynamically using [Link].

3. Heatmap shows daily spending intensity with color gradients.

Table 2.3 — Use Case Summary

Use Case Actor Pre-condition Post-condition

Login User Registered Dashboard displayed

Add Transaction User Logged in Transaction saved

View Analytics User Transactions exist Charts & Heatmap displayed

2.6 Data Flow Diagrams (DFD)


DFD Level 0 — Context Diagram

17
Description: Represents the system as a single process interacting with users.

● Inputs: Income/Expense entries

● Outputs: Charts, summaries, heatmap

DFD Level 1

Description: Breaks system into main processes:

1. User Authentication

2. Transaction Management

3. Category & Summary Processing

4. Heatmap Generation

DFD Level 2

Description: Detailed process flow for each module:

● Login/Register Module: Validates user credentials.

● Add Transaction Module: Stores transaction in JSON format.

● Category Processor: Groups by categories, computes totals.

● Analytics Engine: Generates charts and heatmap visualization.

2.7 Sample Data Structure (JSON)

"users": [

"username": "user1",

18
"password": "encrypted",

"transactions": [

"id": "tx001",

"type": "Income",

"amount": 5000,

"category": "Salary",

"date": "2025-11-20",

"note": "November Salary"

},

"id": "tx002",

"type": "Expense",

"amount": 200,

"category": "Food",

"date": "2025-11-21",

"note": "Lunch"

19
Table 2.4 — JSON Field Description

Field Type Description

id String Unique transaction identifier

type String Income / Expense

amount Number Transaction amount

category String Category of expense/income

date Date Transaction date

note String Optional note for transaction

Chapter 3 — System Design

3.1 Design Methodology

The design methodology ensures that the Expense Tracker with Heatmap is modular, scalable,
and user-centric. The project follows a stepwise software development approach, including
requirement analysis, system modeling, interface design, implementation planning, and testing.

Steps in Design Methodology:

1. Requirement Analysis

○ Identify functional requirements:

■ Multi-user login and authentication.

20
■ Transaction CRUD operations (Create, Read, Update, Delete).

■ Categorization of income and expenses.

■ Charts & heatmap visualizations.

■ Monthly summaries and export options.

○ Identify non-functional requirements:

■ Responsive design for web & mobile.

■ Fast and lightweight frontend.

■ Secure local data storage.

Figure 3.1 — Requirement Analysis Flow


(Placeholder: Flow diagram showing user needs → functional/non-functional requirements)

2. System Planning

○ Modular approach:

■ Authentication Module

■ Transaction Module

■ Analytics Module (Charts + Heatmap)

■ UI/UX Module

○ Benefits:

■ Easier debugging

■ Scalable for future features

■ Clear separation of concerns

Table 3.1 — Module & Responsibility

Module Responsibility

21
Authentication User login/logout, registration, credential validation

Transaction Add, edit, delete, categorize transactions

Analytics Generate charts, monthly summaries, heatmap visualization

UI/UX Layout design, responsive interface, user interaction

3.
Interface Design

○ Wireframes were created for each screen to ensure intuitive navigation:

1. Login Page

2. Dashboard

3. Add Transaction Page

4. Analytics Page (Charts & Heatmap)

○ Wireframes help visualize component placement before coding.

4. System Modeling

○ Data Flow Diagrams (DFDs): Level 0, 1, 2 (Chapter 2)

○ Use Case Diagram: Illustrates system interaction with users.

○ Activity Diagram: Shows steps for adding a transaction.

○ Sequence Diagram: Represents event flow from user input → dashboard


update → analytics.

5. Development Planning

○ Frontend-based development using HTML, CSS, and JS.

○ JS libraries integrated for charts ([Link]) and heatmap.

22
○ LocalStorage used for storing user data and transactions.

○ Modular JS files for scalability and readability.

6. Testing & Validation Plan

○ Plan includes unit testing, integration testing, usability testing, and performance
testing.

○ Ensures all modules work independently and collectively.

○ Validates user inputs and interface responsiveness.

3.2 User Interface Design


3.2.1 Login Interface

● Simple, minimal layout.

● Email/username and password fields.

● “Forgot Password” and “Register” options for new users.

● Focus: Quick, error-free access.

3.2.2 Dashboard Interface

● Overview cards:

○ Total Income

○ Total Expense

○ Balance

● Recent transactions table.

● Quick navigation buttons to Add Transaction and Analytics.

● Pie chart preview for categories.

Table 3.2 — Dashboard Component Description

23
Component Description

Total Income Card Displays sum of all incomes

Total Expense Card Displays sum of all expenses

Balance Card Difference between income and expense

Recent Transactions Lists last 5 entries

Navigation Buttons Quick access to add transaction or analytics pages

3.2.3 Add Transaction Page

● Input fields:

○ Amount

○ Transaction Type (Income/Expense)

○ Category dropdown

○ Date picker

○ Optional notes

● Submit button triggers data validation and updates dashboard.

3.2.4 Charts & Analytics Page

● Charts include:

○ Pie chart for category-wise expense distribution.

○ Bar chart for monthly spending.

24
○ Line chart for trend overview.

● JS logic dynamically updates charts when transactions are added or modified.

3.2.5 Heatmap Visualization Page

● Calendar-style view highlighting spending intensity.

● Colors range from light (low spending) to dark (high spending).

● Provides immediate visual insights.

3.2.6 Responsive Layout

● Designed using CSS Flexbox and Grid.

● Adapts to mobile, tablet, and desktop screens.

● Ensures usability and readability across devices.

Device Layout Adaptation

Mobile Single-column layout, stacked cards

Tablet Two-column layout, reduced padding

Desktop Full multi-column layout, full charts visible

3.3 Module Design Details


3.3.1 Authentication Module

● Handles user registration and login.

25
● LocalStorage stores user credentials securely.

● Validations include:

○ Required fields

○ Password length check

○ Email format verification

3.3.2 Transaction Module

● Handles CRUD operations for transactions.

● JSON structure ensures easy categorization and retrieval.

● Sorting by date ensures latest-first display.

● Duplicate entry prevention.

3.3.3 Analytics Module

● Generates charts dynamically using [Link].

● Calculates totals and averages for monthly and category-wise reports.

● Updates live on transaction modification.

3.3.4 Heatmap Module

● Computes daily spending totals.

● Applies color gradient algorithm to visualize intensity.

● Calendar view highlights high-spending days.

3.3.5 Data Storage

● Uses LocalStorage for:

○ Users

○ Transactions

26
○ Categories

○ Saved analytics

● Simple JSON structure ensures easy parsing and update.

3.4 Design Rationale

1. Frontend-only design: Reduces complexity, ensures portability.

2. Modular architecture: Simplifies debugging and future scalability.

3. UI/UX focus: Minimalist and responsive design to maximize usability.

4. Visual analytics: Charts and heatmap allow quick comprehension of data.

5. Lightweight: No external database or heavy backend required.

Chapter 4 — Testing

4.1 Testing Techniques & Strategies

Testing ensures that the Expense Tracker with Heatmap operates correctly, efficiently, and
reliably under various scenarios. The following techniques were applied:

27
4.1.1 Unit Testing

Each module was tested independently to ensure proper functioning.

4.1.2 Functional Testing

Functional testing ensures all features meet project specifications.

Test Scenarios:

1. Add, edit, delete income/expense transactions.

2. View dashboard updates instantly.

3. Generate pie chart for category analysis.

4. Generate bar chart for monthly trends.

5. Generate heatmap showing daily spending intensity.

6. Input validation:

○ Amount must be numeric and positive.

○ Required fields cannot be empty.

○ Category must be selected.

○ Valid date format.

Table 4.1 — Functional Test Summary

Feature Test Description Expected Result Stat


u
s

Add Transaction Add income/expense Transaction stored, dashboard updated Pas


s

Edit Transaction Modify existing Changes reflected in analytics Pas


entry s

28
Delete Remove entry Transaction deleted, charts updated Pas
Transaction s

Analytics Generate charts Correct totals & labels Pas


s

Heatmap Color intensity Matches daily spending Pas


s

4.1.3 Integration Testing

Integration testing verifies that modules work together as a complete system.

Test Flows:

1. Login → Dashboard → Add Transaction → Charts → Heatmap

2. Dashboard updates correctly after transaction modification.

3. Heatmap reflects changes immediately after transaction addition/deletion.

Test Flow Input Expected Output Re

Login → Add Valid credentials, Dashboard & analytics Pa


Transaction transaction data updated

Edit Transaction Modify amount/category Charts & heatmap updated Pa

Delete Remove transaction Removed from dashboard Pa


Transaction & heatmap

Table 4.2 — Integration Test Cases

4.1.4 Usability Testing

29
Usability testing ensures interface is user-friendly and intuitive.

Key Checks:

● Navigation is clear and consistent.

● Labels and buttons are self-explanatory.

● Mobile, tablet, and desktop responsiveness.

● Fonts and colors are readable.

● Users can complete common tasks without guidance.

Table 4.3 — Usability Test Summary

Parameter Test Action Result

Navigation Click through all Easy and smooth


pages

Input Forms Fill all fields Validations clear

Responsive Test on mobile & Layout adapts


ness tablet correctly

Color & Review charts & Readable & visually


Fonts heatmap clear

4.1.5 Performance Testing

Performance testing ensures the system is responsive and fast.

Test Scenario Test Action Result

Heatmap Add 50+ Rendered without


rendering transactions lag

30
Chart Multiple categories Correct totals in
generation <1s

Dashboard Add new Updates instantly


update transaction

Cross-browser Chrome, Firefox, Works


test Edge consistently

Figure 4.3 — Performance Test Screenshot Placeholder

4.1.6 Validation Testing

Validation testing ensures input correctness and prevents errors.

Validation Rules Implemented:

1. Amount field: numeric, positive values only.

2. Category: must select one option.

3. Date: valid format (YYYY-MM-DD).

4. Required fields: cannot be empty.

Table 4.4 — Input Validation Test Cases

Field Test Expected Result Stat


Input u
s

Amoun "abc" Error, cannot submit Pass


t

Amoun -100 Error, cannot submit Pass


t

Categor Empty Error, cannot submit Pass


y

31
Date 2025-02- Error, invalid date Pass
30

4.2 Debugging & Code Improvement

During development, several issues were identified and resolved:

1. UI Rendering Issues

○ Buttons overlapping on mobile screens.

○ Charts not resizing properly.

○ Fix: CSS Grid & Flexbox adjustments, media queries.

2. Heatmap Display Errors

○ Incorrect color gradient mapping.

○ Dates not updating after month change.

○ Fix: Updated color logic and calendar iteration.

3. Local Storage Data Handling

○ Duplicate entries appearing.

○ Incorrect category totals.

○ Fix: Improved object structure and unique IDs.

4. Transaction Sorting

○ Entries not listed in chronological order.

○ Fix: Implemented date-based sorting.

5. Chart Refresh Problems

○ Pie chart not updating after edit/delete.

○ Fix: Re-render chart function after every transaction update.

6. Authentication Checks

32
○ Login bypass due to missing conditions.

○ Fix: Implemented strict username/password validation.

4.3 Summary of Testing

● All modules passed unit and integration testing.

● Usability tests confirmed intuitive interface.

● Performance tests showed fast response even with multiple entries.

● Validation rules prevented input errors and inconsistencies.

● Debugging enhanced system reliability and accuracy.

Table 4.5 — Testing Coverage Summary

Module Testing Completed Bugs Found Bugs Fixed

Authentication Yes 2 2

Transaction Yes 3 3

Analytics Yes 2 2

Heatmap Yes 3 3

UI/UX Yes 2 2

Chapter 5 — Implementation and Results

33
5.1 System Implementation

The implementation phase transforms the design into a fully functional Expense Tracker with
Heatmap application using HTML, CSS, and JavaScript.

Key Highlights:

1. Frontend-only architecture ensures lightweight performance.

2. Modular design simplifies maintenance and future upgrades.

3. LocalStorage provides secure, easy-to-access storage without backend complexity.

5.1.1 Frontend Development

HTML

● Provides structured content for all pages.

● Pages implemented:

○ [Link] → Login Page

○ [Link] → Dashboard Overview

○ [Link] → Input Transactions

○ [Link] → Charts & Summaries

○ [Link] → Daily Spending Heatmap

CSS

● Handles styling, layout, responsive behavior.

● Key features:

○ Dashboard cards

○ Form input styling

○ Heatmap squares and gradients

34
○ Light/dark theme support

○ Responsive design for mobile, tablet, desktop

JavaScript

● Implements logic and dynamic functionality:

○ CRUD operations for transactions

○ Data validation and input checks

○ [Link] for Pie, Bar, and Line charts

○ Heatmap generation algorithm

○ LocalStorage handling

5.1.2 Module-wise Implementation

a) Authentication Module

● Features:

○ Login and registration system.

○ Isolated user data.

● Implementation:

○ User credentials stored in JSON objects in LocalStorage.

○ Strict validation checks.

b) Transaction Module

● Features:

○ Add, edit, delete income/expense entries.

○ Category selection and date picker.

35
○ Optional notes.

● Implementation:

○ CRUD operations implemented in JS.

○ JSON format used for easy retrieval and analytics.

○ Duplicate prevention and sorting by date.

c) Dashboard Module

● Features:

○ Total Income, Total Expense, Balance cards.

○ Recent transactions list.

○ Quick navigation buttons.

● Implementation:

○ JS functions dynamically update dashboard when transactions are


added/modified.

d) Analytics Module

● Features:

○ Pie chart → category-wise expense.

○ Bar chart → monthly spending.

○ Line chart → trend overview.

● Implementation:

○ [Link] used for interactive chart generation.

○ Charts auto-update on data modification.

36
e) Heatmap Module

● Features:

○ Calendar-style visualization of daily spending.

○ Color-coded intensity: light → low, dark → high spending.

● Implementation:

○ JS algorithm calculates daily totals and assigns colors.

○ Monthly navigation supported.

f) Data Storage

● LocalStorage stores:

○ Users

○ Transactions

○ Categories

○ Analytics

● JSON structure ensures simple parsing and updates.

5.2 Software Implementation


HTML Implementation

● Structured content for each page.

● Proper div containers, forms, tables, and sections.

● Semantic HTML tags for accessibility.

CSS Implementation

● Styling focus:

37
○ Layout: Grid and Flexbox

○ Cards: Dashboard, transaction, summary

○ Buttons, forms, input fields

○ Heatmap cells: colors and hover effects

○ Dark/light themes

JavaScript Implementation

● Key functions:

○ Event listeners for input and button clicks.

○ CRUD operations for transactions.

○ Chart rendering with [Link].

○ Heatmap generation with daily-intensity logic.

○ LocalStorage data handling.

● Reusable modules ensure maintainability.

Table 5.1 — JS Functions and Purpose

Function Name Purpose

addTransaction() Adds new income/expense to storage and updates dashboard

editTransaction() Edits selected transaction and updates analytics

deleteTransaction() Deletes transaction and refreshes dashboard & charts

generateCharts() Creates Pie, Bar, and Line charts using [Link]

38
generateHeatmap() Computes daily spending and colors heatmap accordingly

validateInput() Checks user input for correctness and required fields

5.3 Software Installation

The system is frontend-based, requiring minimal setup.

Installation Steps:

1. Download Project Folder.

2. Extract files if zipped.

3. Open [Link] in any modern browser.

4. Optional: Upload files to GitHub Pages, Netlify, or Vercel for free hosting.

Advantages:

● No server or database required.

● Cross-device support: Mobile, Tablet, Desktop.

● Zero dependency beyond browser.

5.4 Sample Outputs & Results


5.4.1 Dashboard

● Displays real-time income, expense, balance.

● Recent transactions shown in latest-first order.

5.4.2 Charts

39
● Pie chart shows category-wise distribution.

● Bar chart shows monthly comparison.

● Line chart trends expenses over time.

5.4.3 Heatmap

● Visual representation of daily spending.

● Color gradient indicates spending intensity.

Table 5.2 — Sample Transaction Data

Date Type Category Amount Notes

20-11-25 Expense Food 150 Lunch

21-11-25 Income Salary 5000 November Salary

22-11-25 Expense Transport 200 Bus fare

23-11-25 Expense Shopping 1200 Clothes

5.5 Results Analysis

1. Accurate Transaction Recording

○ Transactions stored, displayed, and categorized correctly.

2. Dynamic Dashboard Updates

○ Income, expense, and balance update instantly upon any transaction modification.

40
3. Charts & Heatmap Visualization

○ Pie chart gives category insights.

○ Bar chart shows monthly trends.

○ Heatmap highlights high-spending days.

4. Multi-Device Support

○ Responsive layout tested on mobile, tablet, and desktop.

○ Charts and heatmap render correctly across devices.

5. User Experience

○ Fast navigation.

○ Minimal loading time.

○ Clear visual analytics.

Conclusion & Future Work

6.1 Conclusion

41
The Expense Tracker with Heatmap project successfully addresses the common challenges of
personal financial management by providing a user-friendly, interactive, and visual solution.
The system allows users to:

1. Record Transactions Efficiently

○ Income and expense entries can be added, edited, and deleted with minimal effort.

○ Categorization ensures better organization of financial data.

2. Analyze Financial Patterns

○ Charts (Pie, Bar, Line) provide clear insights into spending patterns.

○ Heatmap visualization highlights daily expenditure intensity, helping users


identify high-spending days and irregular patterns at a glance.

3. Enhance Decision-Making

○ Visual summaries allow users to understand where their money goes, enabling
smarter budgeting and expense control.

○ Multi-device accessibility ensures that users can track their finances anywhere,
anytime.

4. Deliver Reliability and Responsiveness

○ Frontend-only implementation ensures fast load times and a lightweight


application.

○ LocalStorage-based data handling provides isolated, secure storage for each user.

○ Modular design allows seamless updates, testing, and maintenance.

Key Achievements:

● Intuitive dashboard with total income, expense, balance, and recent transactions.

● Interactive charts and analytics for category-wise, monthly, and trend analysis.

● Comprehensive heatmap visualization showing daily spending intensity.

● Cross-device compatibility ensures consistent experience on mobile, tablet, and desktop.

● Robust input validation and error handling for reliable operation.

42
Practical Impact:
This system empowers users to make informed financial decisions by transforming raw
transaction data into meaningful insights. Compared to manual tracking methods or traditional
expense apps, the heatmap feature provides instant visual cues, enabling users to recognize
overspending habits and adjust behavior proactively.

6.2 Limitations

Despite the successful implementation, the current system has certain limitations:

1. Frontend-Only Storage

○ LocalStorage is limited in capacity and is device-specific.

○ Data cannot be accessed across multiple devices unless exported manually.

2. No Backend Integration

○ Multi-device login and cloud storage are not implemented.

○ Security features like password encryption are minimal.

3. Basic Analytics

○ Current charts and heatmap provide descriptive insights but lack predictive
analytics.

○ No AI or machine learning is applied for expense forecasting.

4. Limited Customization

○ Users cannot create custom categories beyond the pre-defined ones.

○ Themes and UI customization are basic.

5. Offline Limitations

○ Mobile browsers support is present, but offline analytics is limited.

○ Advanced features require internet access if hosted online.

6.3 Future Scope

43
The system has significant potential for enhancements that can make it more robust, scalable,
and insightful:

1. Backend Integration & Cloud Storage

○ Implement secure databases like MySQL, MongoDB, or Firebase.

○ Enable multi-device access and cloud backups.

○ Implement advanced user authentication with encryption.

2. Mobile Application Development

○ Build native apps using Flutter, React Native, or Android/iOS frameworks.

○ Enable offline-first functionality for uninterrupted tracking.

○ Push notifications for reminders and alerts.

3. AI-Based Financial Insights

○ Predict future expenses using historical patterns.

○ Provide smart budget recommendations.

○ Detect unusual spending behavior automatically.

4. Advanced Reporting

○ Export detailed monthly and yearly reports as PDF or Excel.

○ Allow custom date-range reports and category-wise summaries.

○ Visual forecasting graphs for planning ahead.

5. Multi-User & Family Mode

○ Shared family accounts to track collective spending.

○ Compare individual spending trends within groups.

○ Collaborative budgeting and alerts.

6. Enhanced UI/UX Features

○ Improved dark mode and multiple theme support.

○ Drag-and-drop dashboards and customizable layout.

44
○ Multi-language support for wider adoption.

7. Gamification & Behavioral Insights

○ Reward-based tracking to encourage savings.

○ Color-coded trends for positive or negative financial behavior.

○ Achievement badges for reaching budget goals.

8. Integration with External Services

○ Link with banks, wallets, or UPI services to auto-fetch transactions.

○ Integrate with cloud calendars for expense reminders.

○ Use APIs to sync with financial software or accounting tools.

6.4 Practical Implications

1. Individual Users

○ Simplifies personal finance management.

○ Highlights spending patterns visually.

○ Encourages better financial habits and savings.

2. Small Businesses

○ Can be adapted to track petty cash and daily expenses.

○ Provides insights without complex accounting software.

3. Educational Impact

○ Acts as a practical tool for students to learn financial planning.

○ Encourages discipline and awareness in daily money management.

6.5 Summary

The Expense Tracker with Heatmap project demonstrates the effectiveness of frontend web
technologies in developing interactive, analytical, and visually engaging applications. Its focus
on usability, modular design, and visualization makes it a strong foundation for further

45
development. While the current system meets the core objectives of income/expense tracking
and insight generation, its potential enhancements—including backend integration, AI insights,
mobile apps, and multi-user support—can make it a comprehensive personal finance
management solution.

References
1. [Link] Documentation. [Link]: Simple yet flexible JavaScript charting. Available:
[Link] [Accessed: 20 Nov 2025]

2. W3Schools. HTML Tutorial. Available: [Link] [Accessed: 20


Nov 2025]

3. W3Schools. CSS Tutorial. Available: [Link] [Accessed: 20


Nov 2025]

4. W3Schools. JavaScript Tutorial. Available: [Link] [Accessed:


20 Nov 2025]

5. MDN Web Docs. HTML: Hypertext Markup Language. Available:


[Link] [Accessed: 20 Nov 2025]

6. MDN Web Docs. CSS: Cascading Style Sheets. Available:


[Link] [Accessed: 20 Nov 2025]

7. MDN Web Docs. JavaScript. Available:


[Link] [Accessed: 20 Nov 2025]

8. Stack Overflow Contributors. Various JavaScript and [Link] solutions for dynamic
charts and heatmaps. Available: [Link] [Accessed: 20 Nov 2025]

9. GeeksforGeeks. Data Visualization in JavaScript. Available:


[Link] [Accessed: 20 Nov 2025]

10. FreeCodeCamp. JavaScript Projects for Beginners. Available:


[Link] [Accessed: 20
Nov 2025]

11. TutorialsPoint. HTML5, CSS3, and JavaScript Reference. Available:


[Link] [Accessed: 20 Nov 2025]

12. Mozilla Hacks. Visualizing Data with JavaScript. Available: [Link]


[Accessed: 20 Nov 2025]

13. [Link]. Modern JavaScript Tutorial. Available: [Link]


[Accessed: 20 Nov 2025]

46
14. GitHub Repository: [Link] examples. Available: [Link]
[Accessed: 20 Nov 2025]

15. [Link]. Implementing Heatmaps in JavaScript. Available: [Link] [Accessed: 20


Nov 2025]

16. FreeCodeCamp. Frontend Development Projects. Available:


[Link] [Accessed: 20 Nov
2025]

17. Stack Overflow. Troubleshooting LocalStorage and JS Charts. Available:


[Link] [Accessed: 20 Nov 2025]

18. MDN Web Docs. Using LocalStorage. Available:


[Link] [Accessed: 20
Nov 2025]

19. CSS-Tricks. CSS Grid and Flexbox Layouts. Available:


[Link] [Accessed: 20 Nov 2025]

20. MDN Web Docs. Responsive Design Techniques. Available:


[Link]
[Accessed: 20 Nov 2025]

47

You might also like