plotData is a simple Java application that reads numerical data from a 2-column CSV file and generates a chart saved as an image (output.png).
Ensure a file named data.csv exists in the same directory.
Example format:
- Time,Velocity
- 1,10
- 2,15
- 3,7
- 4,20
Ensure you have Java installed. Open a terminal in the project directory and run:
javac *.java
java Main
After running successfully, the chart will be saved as:
output.png
Open this file to view the generated chart.
- Make sure data.csv is in the correct location
- Check file permissions if access is denied
- Ensure your CSV format matches what CsvReader expects
- The output file (output.png) will be overwritten each time the program runs
- Modify filename in Main.java if you want to use a different input file
- read any .csv file not just data.csv
- change output filename to {INPUT_FILENAME_WITHOUT_EXTENSION}_{YYYY.MM.DD HH:MM:SS}.png so the program can be run repeatedly