Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Rangeslider won't reset after zooming out #6903

Open
Lexachoc opened this issue Feb 19, 2024 · 1 comment
Open

[BUG] Rangeslider won't reset after zooming out #6903

Lexachoc opened this issue Feb 19, 2024 · 1 comment

Comments

@Lexachoc
Copy link

Lexachoc commented Feb 19, 2024

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)

@markchagers
Copy link

+1 I'm facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants