import matplotlib.pyplot as plt from service.wms_ingredients_service import WmsIngredientsService service = WmsIngredientsService() df = service.get_monthly_weight_df() plt.figure(figsize=(12, 6)) plt.plot(df["month"], df["total_weight"], marker="o") plt.title("Monthly Net Weight Statistics") plt.xlabel("Month") plt.ylabel("Total Net Weight") plt.grid(True) plt.xticks(rotation=45) plt.tight_layout() plt.show()