fork download
  1. import matplotlib.pyplot as plt
  2.  
  3. # Data
  4. categories = ['Fully Adopted', 'Partially Adopted', 'Not Adopted']
  5. counts = [151, 5, 50] # Replace with actual counts
  6.  
  7. # Create bar graph
  8. plt.figure(figsize=(8, 6))
  9. plt.barh(categories, counts, color=['lightblue', 'lightgreen', 'salmon'])
  10.  
  11. # Add labels and title
  12. plt.xlabel('Number of Countries')
  13. plt.title('Country Adoption Status')
  14.  
  15. # Show plot
  16. plt.show()
  17.  
Success #stdin #stdout 2.18s 56536KB
stdin
Standard input is empty
stdout
Standard output is empty