PredictX is a modern AI-powered sales forecasting dashboard that predicts future sales trends using Linear Regression and visualizes results with interactive charts.
The application allows users to upload historical sales data in CSV format, train a simple machine learning model, and generate forecasts with clear analytics and visual insights.
📂 Upload CSV dataset with historical sales data 📈 Predict future sales using Linear Regression 📊 Interactive data visualization using charts 📉 Model evaluation with MAE (Mean Absolute Error) 📋 Analytics dashboard for brand sales breakdown ⚡ Fast client-side processing (no backend required)
PredictX uses a Linear Regression time-trend model to forecast sales.
Workflow:
- Upload historical sales CSV
- Parse and validate the dataset
- Convert dates into a numerical time index
- Train a Linear Regression model
- Generate predictions for future days
- Evaluate model performance
Model metrics include:
- Mean Absolute Error (MAE)
- Approximate prediction accuracy
The application provides multiple insights:
• Sales forecast visualization • Historical vs predicted comparison • Brand sales distribution • Sales share percentage by brand
Charts are powered by Recharts for smooth and interactive visualization.
- React
- TypeScript
- Vite
- Tailwind CSS
- Radix UI
- Lucide Icons
- Recharts
- React Router
- React Hook Form
- Class Variance Authority
- Tailwind Merge
predictx
│
├─ src
│ ├─ pages
│ │ └── CarDashboard.tsx
│ │
│ ├─ components
│ │ └── ui
│ │
│ ├─ App.tsx
│ ├─ main.tsx
│ └─ index.css
│
├─ package.json
├─ vite.config.ts
└─ index.html
Clone the repository
git clone https://github.com/diyuworks/predictx.git
Go to the project directory
cd predictx
Install dependencies
npm install
Run the development server
npm run dev
Open in browser
http://localhost:5173
The dataset must include:
date,sales,brand
Example:
2024-01-01,120,Toyota
2024-01-02,140,Toyota
2024-01-03,135,Honda
(Add screenshots here after uploading them to the repository)
Example sections:
• Add advanced ML models (Random Forest / ARIMA) • Deploy live web application • Export predictions as downloadable reports • Add authentication system • Improve forecasting accuracy
Diya Malviya Computer Science Student | AI & Full Stack Enthusiast
GitHub https://github.com/diyuworks
⭐ If you like this project, consider giving it a star!


