Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

y-axis values are displayed in ascending order in scatter plots, version 6.0.1 #5099

Copy link
Copy link
Open
@sstripps1

Description

@sstripps1
Issue body actions

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:

Image

The same result is seen on 6.0.0. Downgrading to 5.24.1 fixes the issue:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1needed for current cycleneeded for current cyclebugsomething brokensomething brokencscustomer successcustomer success

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.