Skip to content

Instantly share code, notes, and snippets.

@audhiaprilliant
Created March 7, 2022 00:51
Show Gist options
  • Select an option

  • Save audhiaprilliant/dd15ee7a8868f1eae3ec3676563eec86 to your computer and use it in GitHub Desktop.

Select an option

Save audhiaprilliant/dd15ee7a8868f1eae3ec3676563eec86 to your computer and use it in GitHub Desktop.
Introduction to Plotly
# 1 Basic data viz
# Create object of figure
fig = go.Figure()
# Create a bar plot
fig.add_trace(
go.Bar(
x = df['Fruit'],
y = df['Sales']
)
)
# Show graph
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment