Skip to content

rangeslider and autorange: "reversed" incompatibility #3075

Closed

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

Activity

  1. added
    bug
    on Oct 4, 2018
  2. self-assigned this
    on Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions