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

rangeslider and autorange: "reversed" incompatibility #3075

Closed
LloydLS opened this issue Oct 4, 2018 · 1 comment · Fixed by #3304
Closed

rangeslider and autorange: "reversed" incompatibility #3075

LloydLS opened this issue Oct 4, 2018 · 1 comment · Fixed by #3304
Assignees
Labels
bug something broken

Comments

@LloydLS
Copy link

LloydLS commented Oct 4, 2018

Hi,

rangeslider does not seem to work well with a reversed x axis. Double clicking to autorange the main plot always sets the x axis back to an ascending direction. Also, setting a range under layout.xaxis disables the rangeslider's normal operation, and makes the two plots act the same (rather than being able to make a small "rectangular" area for the main plot to show).

"data": [
    {
        "name": "Points",
        "type": "line",
        "mode": "lines",
        "hoverinfo": "x",
        "showlegend": false,
        "line": {
            "color": "blue",
            "shape": "spline"
        },
        "x": "[-1,0,1,2,3,4,5,6,7,8,9,10,11]",
        "y": "[0,10,20,30,40,50,60,70,80,90,100,110,120]"
    },
],
"layout": {
    "title": "",
    "xaxis": {
        "title": "",
        "zeroline": false,
        "autorange": "reversed",
        "rangeslider": {
            "yaxis": {
               "rangemode": "match"
           },
           "autorange": false,
           "range": [
               11,
               0
           ],
           "visible": true,
       }
   },
   "yaxis": {
    "visible": false
    }
}

Thanks! (Plotly is great btw!)

@etpinard
Copy link
Contributor

etpinard commented Oct 4, 2018

CodePen: https://codepen.io/etpinard/pen/LgNwRN?editors=1010

Thanks for the report.

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

Successfully merging a pull request may close this issue.

2 participants