Log in from a computer to take this course

You'll need to log in from a computer to start Learn Data Visualization with Python. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store

Now, we are going to look at the chart called pie.png. This displays what students think the hardest topic covered throughout your math course is.


The data you will need to recreate this chart is in the lists unit_topics and num_hardest_reported.

Save your recreated chart to a file called my_pie_chart.png.



Create a figure of width 10 and height 8.


Plot the num_hardest_reported list as a pie chart.


Set the axes to be 'equal'.


Label the slices with the unit_topics list and put a percentage label on each slice, rounded to the nearest int.


Add the title "Hardest Topics".


Save your figure to a file called my_pie_chart.png.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?