Closed
Description
The zorder
attribute was added recently. However, the following code does not work as expected (exact code as here):
import plotly
import plotly.graph_objects as go
fig = go.Figure(
go.Bar(
x=[0, 1, 2],
y=[1, 2, 3]
),
)
fig.add_trace(
go.Scatter(
x=[0, 1, 2],
y=[3, 2, 1],
zorder=-2
)
)
fig.update_layout(
title=dict(text=f"{plotly.__version__ = }")
)
fig.show()
Expected Behavior: Bar chart should have a higher z-order, meaning it should be at the front.
Instead, the code produces the following:
Metadata
Metadata
Assignees
Labels
No labels