Skip to content

Files

Latest commit

 

History

History

Habit Tracker with Data Visualization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Habit Tracker with Data Visualization

Description:

The Habit Tracker with Data Visualization project allows users to add, update, delete, and mark habits as completed. Users can also visualize their habit completion data using simple graphs.

Features:

  1. Add, update, and delete habits.
  2. Mark habits as completed for each day.
  3. View a calendar of completed habits.
  4. Generate visual reports of habit completion.

Required Modules:

  • json
  • datetime
  • matplotlib

How to Install Required Modules:

To install the required modules, use the following steps:

  1. Open Command Prompt (Windows) or Terminal (macOS/Linux).
  2. Install matplotlib module by running:
pip install matplotlib

How to Run the Script:

  1. Navigate to the project directory in Command Prompt (Windows) or Terminal (macOS/Linux).
  2. Run the script using Python:
python habit_tracker.py

Example Usage:

Habit Tracker
1. Add Habit
2. Delete Habit
3. Mark Habit as Completed
4. View All Habits
5. Save Habits to File
6. Load Habits from File
7. Visualize Habit
8. Exit
Choose an option: 1
Enter habit name: Exercise

Habit Tracker
1. Add Habit
2. Delete Habit
3. Mark Habit as Completed
4. View All Habits
5. Save Habits to File
6. Load Habits from File
7. Visualize Habit
8. Exit
Choose an option: 3
Enter habit name: Exercise
Enter date (YYYY-MM-DD) or press Enter for today: 2024-08-07

Acknowledgments:

  • This project uses matplotlib for data visualization.