I am plotting bar chart using below code as an example:
fig = make_subplots(rows=1, cols=2, shared_yaxes=True, horizontal_spacing= 0)
y = ['10', '20', '30', '40', '50','60']
width=2.9
fig.add_trace(go.Bar(x=[34, 64, 20,24,12,89], y=y,orientation='h',name = '1',marker_color='gold', width=width),row=1, col=1)
fig.add_trace(go.Bar(x=[14, 24, 50,34,9,104], y=y,orientation='h',name = '2',marker_color='darkorange',width=width),row=1, col=1)
fig['layout']['xaxis']['autorange'] = "reversed"
fig.add_trace(go.Bar(x=[17,46,68,22,12,93], y=y,orientation='h',name = '3',marker_color='deepskyblue',width=width),row=1, col=2)
fig.add_trace(go.Bar(x=[57,45,14,44,8,100], y=y,orientation='h',name = '4',marker_color='royalblue',width=width),row=1, col=2)
fig.update_layout(title_text="Data Chart",title_x=0.45, bargap=0.4)
fig.show()
but when i am trying plot the same chart using pandas dataframe ,I have with me, I am getting error and chart is not same as i have like above.
Datagrame I have is like
1 2 3 4
100 23 34 56 67
110 46 78 94 56
120 71 88 17 85
130 92 99 72 35
140 39 35 64 72
150 81 50 120 12
Is there a easy fix so that I can achieve exact bar chart as I have in image above using Pandas Dataframe.
