Preview:
#3. Histogram
#Histograms are used to visualize the distribution of a dataset.
# Example: Histogram of Products Sold
products_sold = [120, 130, 140, 110, 135, 150]

plt.hist(products_sold, bins=5, color='orange')
plt.title("Distribution of Products Sold")
plt.xlabel("Number of Products Sold")
plt.ylabel("Frequency")
plt.show()
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter