Skip to content

Instantly share code, notes, and snippets.

@karamanbk
Last active May 11, 2020 12:12
Show Gist options
  • Save karamanbk/c3bf0a49ea53ee7df702dc319992bca4 to your computer and use it in GitHub Desktop.
Save karamanbk/c3bf0a49ea53ee7df702dc319992bca4 to your computer and use it in GitHub Desktop.
#X and Y axis inputs for Plotly graph. We use Scatter for line graphs
plot_data = [
go.Scatter(
x=tx_revenue['InvoiceYearMonth'],
y=tx_revenue['Revenue'],
)
]
plot_layout = go.Layout(
xaxis={"type": "category"},
title='Montly Revenue'
)
fig = go.Figure(data=plot_data, layout=plot_layout)
pyoff.iplot(fig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment