Last active
August 12, 2021 00:25
-
-
Save parulnith/4867c919f187d9fb4792eeeddb742caa 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.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