-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Hi Plotly team ,
I'm working with rangeslider in a dual-axis layout (xaxis + xaxis2, yaxis2), and I’d like to request a feature that allows more control over the vertical spacing between the plot area and the rangeslider.
In the current setup, the rangeslider always appears directly below the main plot and sometimes the labels are inside the rangeslider.

The definition of the layout is:
function staticLayout(): object {
return {
margin: {l: 70, r: 20, t: 10, b: 20},
showlegend: true,
legend: {
orientation: 'h',
x: 0,
y: 1.02,
yanchor: 'bottom',
},
xaxis: {
___domain: [0.0, 1.0],
anchor: 'y',
side: 'bottom',
title: {
text: 'Time (s)',
standoff: 15
},
automargin: true,
rangeslider: {
visible: true,
thickness: 0.07,
bgcolor: "#f5f5f5",
bordercolor: "black",
borderwidth: 1,
},
showticklabels: false,
showgrid: false,
zeroline: false,
fixedrange: true,
},
yaxis: {
visible: false,
showticklabels: false,
showgrid: false,
zeroline: false,
showline: false,
overlaying: 'y2',
},
xaxis2: {
anchor: 'y2',
side: 'bottom',
// type: 'log',
ticklabelposition: 'outside',
},
yaxis2: {
anchor: 'x2',
zeroline: false,
showticklabels: true,
ticklabelposition: 'outside',
}
};
}
How can I fix the spacing?
Metadata
Metadata
Assignees
Labels
No labels