gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
provide a short exampl with plotly
- User
provide a short exampl with plotly
- Assistant
import plotly.graph_objects as go
Create data
x = [1, 2, 3, 4, 5] y = [10, 15, 13, 17, 20]
Create a bar chart
fig = go.Figure(data=[go.Bar(x=x, y=y)])
Update layout
fig.update_layout( title='Bar Chart Example', xaxis_title='X Axis', yaxis_title='Y Axis' )
Show the figure
fig.show()