matplotlib code
import matplotlib.pyplot as plt
categories = ["Jan", "Feb", "Mar", "Apr", "May"]
values = [120, 185, 150, 210, 175]
colors = ["#3b82f6", "#06b6d4", "#14b8a6", "#22c55e", "#84cc16"]
fig, ax = plt.subplots(figsize=(8, 5))
ax.bar(categories, values, color=colors, edgecolor="white",
width=0.6)
for bar in ax.patches:
ax.text(bar.get_x() + bar.get_width() / 2,
bar.get_height() + 3,
f"{bar.get_height():.0f}",
ha="center", fontsize=9, fontweight="bold")
ax.set_title("Monthly Sales", fontsize=14, fontweight="bold")
ax.grid(True, alpha=0.3)
ax.set_xlabel("Month")
ax.set_ylabel("Sales ($K)")
plt.tight_layout()
plt.show()