hi @empet,
Thanks for your advice.
I tired to interchange the order, the result is the same:
fig=make_subplots(
specs=[[{“secondary_y”: True}]])
print(fig.layout)
fig.update_layout(xaxis2= {‘anchor’: ‘y’, ‘overlaying’: ‘x’, ‘side’: ‘top’},
yaxis_domain=[0, 0.94]);
fig.add_trace(
go.Scatter(x=[‘A’, ‘B’, ‘C’, ‘D’],
y=[4, 2, 5, 6],
name=“scatt1”,
line_color=“black”), secondary_y=True)
fig.add_trace(
go.Bar(x=[1, 2, 3, 4],
y=[7, 4, 5, 6],
name=“bar”, orientation = ‘h’
), secondary_y=True)
fig.data[1].update(xaxis=‘x2’)
fig.update_layout(width=700, height=475)
BR,
Jason