Last active
May 11, 2020 12:12
-
-
Save karamanbk/c3bf0a49ea53ee7df702dc319992bca4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#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