pip install matplotlib
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [10, 24, 18, 35, 28]
plt.plot(x, y, marker="o", color="blue")
plt.title("Sales Trend")
plt.xlabel("Month")
plt.ylabel("Revenue ($K)")
plt.grid(True)
plt.savefig("chart.png")
plt.show()