Hi,
How can I make this bar charts thinner?
I have used this code:
import numpy as np
import pandas as pd
import plotly.express as px
from plotly.graph_objs import Bar, Scatter, Marker, Layout
from IPython.display import display
import plotly.graph_objs as go
df = pd.read_excel(r'C:\Users\amhd\Documents\test1.xlsx')
fig = go.Figure()
fig.add_trace(go.Bar(name='test', x=df['time'], y=df['number'], marker_color='#003E69'))
fig.update_layout(barmode='group', template='plotly_white', legend=dict(orientation='h', x=0.9),
title={
'text': "test",
'y':1,
'x':0.5,
'xanchor': 'center',
'yanchor': 'top'})
fig.update_xaxes(type='category')
fig.show()