Uniparser
A parser that allows you to parse CSV and visualize it as image.
Install / Use
/learn @Rishi-Sudhakar/UniparserREADME
Uniparser(CSV Visualizer)
This Rust project reads a CSV file, parses the data, and visualizes it as a PNG image using the Plotters crate with the Cairo backend.
Features
- Parses CSV files
- Generates a 2D scatter plot
- Saves the plot as a PNG image
Dependencies
Getting Started
Prerequisites
- Rust (install from rustup.rs)
Installation
-
Clone the repository:
git clone https://github.com/Rishi-Sudhakar/uniparser.git cd uniparser -
Add your
data.csvfile in the project directory. (Example data):x,y 1.0,2.0 2.0,3.0 3.0,4.0 4.0,5.0 5.0,6.0 6.0,7.0 7.0,8.0 8.0,9.0 9.0,10.0 10.0,11.0
Usage
-
Run the project:
cargo run -
After running, the
output.pngfile will be generated in the project directory.
Screenshots
data.csv
<img width="682" alt="Screenshot 2024-06-16 at 11 30 24 AM" src="https://github.com/Rishi-Sudhakar/uniparser/assets/79398572/66afad65-f882-46b5-b5ca-3c5310231a9b">output.png
<img width="912" alt="Screenshot 2024-06-16 at 11 30 48 AM" src="https://github.com/Rishi-Sudhakar/uniparser/assets/79398572/a42d5012-af6f-4104-b529-0aaf2a585977">License
This project is licensed under the MIT License - see the LICENSE file for details.
