Practice
1
2
3import plotly.express as px
4
5fig = px.line(data, x='column1', y='column2', title='Plot title')
6fig.show()
1
2
3fig.update_xaxes(tickangle=45)
4fig.show()
1
2
3
4import plotly.express as px
5
6fig = px.bar(data, x='column1', y='column2', color='column3', title='Plot title')
7fig.update_xaxes(tickangle=45)
8fig.show()
1
2
3
4
5from plotly import graph_objects as go
6
7fig = go.Figure(data=[go.Pie(labels=labels_series, values=values_series)])
8fig.show()
1
2
3
4
5from plotly import graph_objects as go
6
7fig = go.Figure(go.Funnel(y = y_series, x = x_series))
8fig.show()