Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active August 12, 2021 00:25
Show Gist options
  • Save parulnith/4867c919f187d9fb4792eeeddb742caa to your computer and use it in GitHub Desktop.
Save parulnith/4867c919f187d9fb4792eeeddb742caa to your computer and use it in GitHub Desktop.
chart = ctc.Scatter("Median compensation by years of experience")
chart.set_options(
x_label="Experience in Years",
y_label="Salary in USD",
x_tick_count=4,
y_tick_count=3,
dot_size=1,
colors=['#47B39C'])
chart.add_series("Salary",[(z[0], z[1]) for z in list(zip(salary_exp['Total years of experience'],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