Modern Java Swing application for visualizing linear regression. Enter data points in a table and watch the regression line update dynamically in real-time.
Note: This project was originally created for personal use, which is why the user interface is in Polish. However, it has been made publicly available so anyone can use and benefit from it.
Export your data and regression analysis directly to Excel (.xlsx) files!
📈 Visual Charts - Automatically generated scatter plots with regression lines
📋 Data Sheets - Complete data tables with all your X and Y values
📊 Regression Parameters - Detailed regression statistics (intercept, slope, R²)
🎨 Professional Formatting - Ready-to-present Excel files with styled charts
The exported Excel files include both raw data and beautiful visualizations, making it perfect for reports and presentations!
- 📈 Dynamic Chart - Real-time linear regression visualization
- 📝 Data Table - 30 rows for X and Y values with editable cells
- 🎨 Modern UI - Beautiful FlatLaf Light theme interface
- 💾 Save/Load - Export and import data as JSON files
- 🖱️ Drag & Drop - Move values between cells by dragging
- ⌨️ Delete Support - Clear cells with Delete/Backspace keys
- 📊 Auto Calculation - Automatic regression line calculation (minimum 2 points)
- 🟢 Colors Selection - Customizable colors for data points and regression line
- 💫 Symbol Selection - Choose your favourite symbol for data points
- 📐 Excel Export - Export data and charts to Excel (.xlsx) files
- Java: 11 or higher
- Build Tool: Gradle (for building from source)
- Download the latest release JAR file
- Run with Java:
java -jar linear-regression-visualizer-1.0-SNAPSHOT.jar
-
Clone the repository:
git clone https://github.com/neziw/linear-regression-visualizer.git cd linear-regression-visualizer -
Build the project:
./gradlew build
-
Run the application:
./gradlew run
- Click on any cell in the X or Y column
- Enter a numeric value
- The chart updates automatically when you have at least 2 valid data points
- Delete Values: Select cells and press
DeleteorBackspace - Move Values: Select cells, drag to another location, and drop
- Save Data: Click "Zapisz do pliku" to save data as JSON (includes chart settings)
- Load Data: Click "Załaduj z pliku" to load data from JSON file
- Export to Excel: Click "Eksportuj do Excela" to export data and charts to Excel (.xlsx)
- Blue dots represent data points
- Red line shows the calculated linear regression
- Chart automatically scales to fit all data points
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with JFreeChart for chart visualization
- GUI powered by FlatLaf
- JSON handling with Gson
- Excel export powered by Apache POI
Made with ❤️ by neziw

