Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active August 12, 2021 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parulnith/7451a50575c85d4d1c10e747529b51ef to your computer and use it in GitHub Desktop.
Save parulnith/7451a50575c85d4d1c10e747529b51ef to your computer and use it in GitHub Desktop.
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