Skip to content

rangeslider and autorange: "reversed" incompatibility #3075

Closed
@LloydLS

Description

@LloydLS

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!)

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions