This project visualizes accident-related data using Java and relevant libraries. It loads accident data from a CSV file (Sample_data.csv) and generates visual insights using charts/graphs for better understanding of patterns in the dataset.
AccidentVisualizations.javaβ The main Java program for data visualization.Sample_data.csvβ Sample dataset containing accident-related information..gitattributesβ Git LFS configuration file (optional, if large files are used).
- Load CSV accident data.
- Generate visual representations (e.g., pie chart, bar chart).
- Parse and analyze accident statistics from structured data.
- Java Development Kit (JDK 8 or later)
- Java IDE or command-line tools (e.g., IntelliJ, Eclipse, or javac/java)
- JFreeChart library (for chart visualizations)
-
Clone the repository:
git clone https://github.com/yourusername/AccidentDataVisualization.git cd AccidentDataVisualization -
Compile the Java file (ensure the required libraries like JFreeChart are in the classpath):
javac -cp ".:path/to/jfreechart.jar:path/to/other/libs/*" AccidentVisualizations.java -
Run the application:
java -cp ".:path/to/jfreechart.jar:path/to/other/libs/*" AccidentVisualizations -
View results β Visual charts will appear in new windows.
- The sample dataset can be modified to include more real-world accident data.
- Make sure to match column names and data types when using custom datasets.
This project is licensed under the MIT License.