if array.name[-5:]=='DATES':
width=20*60*60*1000
if array.name[-4:]=='WEEK':
width=6*24*60*60*1000
if array.name[-5:]=='MONTH':
width=0.9
....
fig.add_trace(go.Bar(x=array.index, y=data, marker_color='blue', name='',
width=[width]*len(array), showlegend=False))