This project is a single-page dashboard created using React.js, with a focus on Typescript, to visualize and analyze hotel booking data. The dashboard provides insights into the number of visitors, their origins, and age groups based on the selected date range. The data is sourced from a CSV file and is displayed through interactive charts.
-
Date Selector: Allows users to select a date range to filter the data for analysis.
-
Time Series Chart: Displays the number of visitors per day, where the total number is calculated as the sum of adults, children, and babies. It also offers zoomable functionality for detailed analysis.
-
Column Chart: Shows the number of visitors per country, allowing users to see the distribution of visitors from different parts of the world.
-
Sparkline Charts: These compact charts provide insights into specific visitor demographics. There are two sparkline charts:
- Sparkline 1: Displays the total number of adult visitors.
- Sparkline 2: Displays the total number of children visitors.
The dataset used in this project contains 1,000 records of hotel bookings with the following columns:
- arrival_date_year: The year of arrival.
- arrival_date_month: The month of arrival.
- arrival_date_day_of_month: The day of arrival.
- adults: The number of adults for the booking.
- children: The number of children for the booking.
- babies: The number of babies for the booking.
- country: The country from which the travelers are from.
The data is sourced from the hotel_bookings_1000.csv file.
- Clone the repository to your local machine:
git clone https://github.com/subho004/House-Data-Analytics.git
- Install project dependencies using npm or yarn:
cd Waterdip-AI-Hotel-Booking-Dashboard
npm install
# or
yarn install
- Start the development server:
a. Navigate to the server
folder for the API:
cd server
b. Install the API dependencies:
npm install
c. Start the API server:
node index.js
The API server will be available at http://localhost:8000/ or as configured in index.js.
a. Navigate to the dashboard folder for the user view:
cd dashboard
b. Install the dashboard dependencies:
npm install
c. Start the development server for the dashboard:
npm start
The dashboard will be available at http://localhost:3000/ in your web browser.
Make sure you have both the API server and the dashboard running to utilize the full functionality of the Waterdip AI Hotel Booking Dashboard.
- React.js
- Typescript
- ApexCharts (for chart visualizations)
We welcome contributions to improve this project. Feel free to submit issues or pull requests if you have any suggestions or enhancements.