Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
420 B
1
Indexable
Never
import matplotlib.pyplot as plt

# Revenue composition data
labels = ['Advertising', 'Cloud', 'Other']
revenues = [144.8, 14.48, 21.72]  # in billions

# Create pie chart
plt.figure(figsize=(8, 8))
plt.pie(revenues, labels=labels, autopct='%1.1f%%', startangle=140)
plt.title('Company XYZ Revenue Composition in 2020')
plt.axis('equal')  # Equal aspect ratio ensures that pie is drawn as a circle
plt.show()
Leave a Comment