Last active
August 12, 2021 00:18
-
-
Save parulnith/7451a50575c85d4d1c10e747529b51ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chart = ctc.Pie("Gender of Respondents") | |
chart.set_options( | |
labels=list(gender.index), | |
inner_radius=0, | |
colors=['#FFF1C1','#F7B7A3','#EA5F89'], | |
) | |
chart.add_series(list(gender['values'])) | |
# Calling the load_javascript function when rendering chart first time. | |
chart.load_javascript() | |
#Display the Chart | |
chart.render_notebook() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment