From 7c558a26b2ab5f90ef3fc098680d30fc26829cde Mon Sep 17 00:00:00 2001 From: Ananya Vastare <116643029+Ananya-vastare@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:19:06 +0530 Subject: [PATCH] Update maincode.py --- DataVizLearnig/Movie Data Visualization/maincode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/DataVizLearnig/Movie Data Visualization/maincode.py b/DataVizLearnig/Movie Data Visualization/maincode.py index edef645a53..1c43447995 100644 --- a/DataVizLearnig/Movie Data Visualization/maincode.py +++ b/DataVizLearnig/Movie Data Visualization/maincode.py @@ -49,6 +49,7 @@ def show_piechart(): genre_counts, colors=colors, autopct="%1.1f%%", + labels=genre_counts.index, # Add genre names as labels shadow=True, wedgeprops={"edgecolor": "black"}, # Black border between slices )