Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active August 12, 2021 00:25
Show Gist options
  • Save parulnith/beb2fa51667e7117bcb998cb0040731c to your computer and use it in GitHub Desktop.
Save parulnith/beb2fa51667e7117bcb998cb0040731c to your computer and use it in GitHub Desktop.
chart = ctc.Line("Median compensation by years of experience")
chart.set_options(
labels=list(salary_exp['Total years of experience']),
x_label="Experience in Years",
y_label="Salary in EUR",
colors=['#EA5F89'])
chart.add_series("Salary", list(salary_exp['Salary']))
# 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