This is a versatile data visualization tool that allows users to generate various types of plots and graphs based on their input data. The tool provides a web interface for easy interaction and visualization.
- Upload a CSV file containing data.
- Select the type of graph or plot to generate.
- Generate visually appealing and informative data visualizations.
- Download the generated plots for further use or sharing.
-
Backend:
- FastAPI: A modern, fast web framework for building APIs with Python.
- Matplotlib: A popular Python plotting library for creating static, animated, and interactive visualizations.
- Pandas: A powerful data manipulation and analysis library for Python.
-
Frontend:
- HTML, CSS, JavaScript: For building a simple and user-friendly web interface.
-
Clone the repository:
git clone <repository-url> cd data-visualization-tool
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the FastAPI server:
uvicorn main:app --reload
-
Open the home.html in your browser to access the web interface.
- Upload a CSV file containing your data.
- Select the type of graph or plot you want to generate.
- Click on the "Generate Graph" button.
- View the generated plot on the page.
- Click on the "Download Graph" button to download the generated plot.
```bash
python3 graph_cmd.py --csv_file CSV_FILE --plot_type {line,bar,histogram,scatter,pie,box,heatmap} --title TITLE
```
- CSV_FILE is the path to the csv file.
- Select the type of plot from the list in the plot_type option.
- TITLE is the title of the graph.
To deploy this data visualization tool, you can follow these general steps:
- Choose a hosting service (e.g., AWS, Heroku, or your preferred provider).
- Set up the necessary environment variables for your deployment environment.
- Deploy the FastAPI application.
For detailed deployment instructions, refer to the documentation of your chosen hosting service.