Open
Description
I am creating a scatter plot in plotly==6.0.1
using the following code and underlying data:
# Code for "Daily Views" trace
fig = go.Figure()
# Create a Plotly figure
fig.add_scatter(
x=daily_views["viewed_date"],
y=daily_views["view_count"],
mode="lines+markers",
name="Daily Views",
)
viewed_date view_count cumulative_views
0 2025-02-20 2 2
1 2025-02-21 14 16
2 2025-02-24 2 18
3 2025-02-25 2 20
4 2025-02-26 3 23
5 2025-02-27 6 29
6 2025-02-28 2 31
7 2025-03-04 1 32
8 2025-03-05 5 37
9 2025-03-06 7 44
10 2025-03-07 1 45
11 2025-03-10 1 46
12 2025-03-12 6 52
13 2025-03-13 2 54
14 2025-03-17 1 55
But the resulting figure displays the y-axis values in ascending order:

The same result is seen on 6.0.0
. Downgrading to 5.24.1
fixes the issue:
Metadata
Metadata
Assignees
Labels
needed for current cycleneeded for current cyclesomething brokensomething brokencustomer successcustomer success