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

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