import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
def donut_chart():
iris = load_iris()
species_counts = [sum(iris.target == target) for target in range(3)]
plt.pie(species_counts, labels=iris.target_names, startangle=90, wedgeprops={'width': 0.3})
plt.gca().set_aspect('equal')
plt.title("Donut Chart of Iris Species Distribution")
plt.show()
# Example usage
donut_chart()