This project visualizes sales data for various products using GNUplot and shell scripts. The data is provided in company_sales_data.csv, and we generate multiple plots to analyze product sales trends over time.
- GNUplot: Make sure GNUplot is installed to generate the plots.
- On Ubuntu:
sudo apt install gnuplot
- On Windows, use WSL or Git Bash to run shell scripts and GNUplot commands.
- On Ubuntu:
- Shell (Bash): You need a Bash-compatible shell to execute the scripts.
The CSV file (company_sales_data.csv) contains monthly sales data for various products with columns:
month_number,facecream,facewash,toothpaste,bathingsoap,shampoo,moisturizer,total_units,total_profit
Each task generates a different plot based on the sales data.
Generates a line plot showing total profit for each month.
Script: plot_1.p
Run:
gnuplot plot_a.pCreates a line plot for each product, showing monthly sales with lines and points.
Script: plot_b.p
Run:
gnuplot plot_b.pGenerates a red histogram to show monthly sales for Facecream.
Script: plot_c.p
Run:
gnuplot plot_c.pGenerates a red histogram to show monthly sales for Facecream.
Script: plot_d.sh
Run:
./plot_d.shDisplays total yearly sales for each product in a pie chart.
Script: plot_e.p
Run:
gnuplot plot_e.shCreates a stacked plot showing monthly sales for all products with a cumulative view.
Script: plot_f.p
Run:
gnuplot plot_f.pPlots a histogram comparing monthly sales for Shampoo and Moisturizer.
Script: plot_g.p
Run:
gnuplot plot_g.pIdentifies the top 3 products by yearly sales and generates a line plot for each product over months.
Script: plot_h.sh
Run:
./plot_h.shCreates a pie chart showing sales for each product in June.
Script: plot_i.sh
Run:
./plot_i.sh