Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active August 12, 2021 00:25
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/b7c518ad0c252d5500f019af0773f160 to your computer and use it in GitHub Desktop.
Save parulnith/b7c518ad0c252d5500f019af0773f160 to your computer and use it in GitHub Desktop.
chart = ctc.Bar("Cities")
chart.set_options(
labels=list(cities.index),
x_label='City',
y_label='Count',
colors=['#FFF1C5','#F7B7A3','#EA5F89','#9B3192','#57167E'],
)
chart.add_series('Count',list(cities['values']))
# Calling the load_javascript function when rendering chart first time.
chart.load_javascript()
chart.render_notebook()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment