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