Skip to content

Rangeslider won't reset after zooming out #6903

Description

@Lexachoc

https://codepen.io/Lexachoc/pen/XWGGLJG (the plotly-latest.min.js is using 1.58.5)
recording

The Autoscale or Reset axes buttons in the menu bar won't autoscale/reset the rangeslider correctly after using zoom out button.

I can confirm that with plotly-2.29.1.min.js, the issue exists (but Plotly.d3.csv is removed from version 2 so I can't use that version for the codepen). I found this issue when I use plotly-2.28.0.min.js and now with plotly-2.29.1.min.js:
recording
(no codepen for this, sorry, this is server-side data)
My layout:

{
        xaxis: {
            rangeslider: {},
            automargin: true,
            tickfont: {
                size: 14
            },
            showspikes: true,
            spikemode: 'across', // or 'across' or 'marker'
            spikethickness: 1
        },
        yaxis: {
            fixedrange: true,
            tickfont: {
                size: 14
            },
            automargin: true,
        },
    }

The example in here
https://plotly.com/javascript/range-slider/
https://codepen.io/plotly/pen/WwXEoV

it doesn't have this issue (it uses plotly-1.8.0.min.js)

Activity

  1. markchagers commented on Feb 28, 2024

    @markchagers

    +1 I'm facing the same issue

  2. self-assigned this
    on Jul 12, 2024
  3. removed their assignment
    on Aug 2, 2024
  4. changed the title [-][BUG] Rangeslider won't reset after zooming out[/-] [+]Rangeslider won't reset after zooming out[/+] on Aug 9, 2024
  5. Lexachoc commented on Nov 11, 2024

    @Lexachoc
    ContributorAuthor

    I created a new example with the latest version v2.35.2 to show the issue which still exists:
    https://codepen.io/Lexachoc/pen/abePmdO

    After doing some tests, I have found that this is a regression bug since v1.40.0. There is no such problem when using v1.39.4.

  6. Lexachoc commented on Sep 2, 2026

    @Lexachoc
    ContributorAuthor

    I've updated the above example with the latest version v4.0.0 to show that this regression bug still exists:

    https://codepen.io/Lexachoc/pen/abePmdO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions