XPlot icon indicating copy to clipboard operation
XPlot copied to clipboard

Unable to set 'rangeslider': { 'visible': false } for XPlot.Plotly.Candlestick

Open SundayCarpenter opened this issue 4 years ago • 2 comments
trafficstars

When we render a Candlestick plot, we see the rangeslider on the bottom of plot by default. We can set rangeslider: {visible: false} on plotly.js via layout.xaxis option. But for now, we cannot disable it via XPlot.Plotly because the option seems not to be supported in XPlot.Plotly.Layout.

Now I override .js source from chart.GetPlottingJS() as workaround, but it would be nice if the option is supported.

layout-xaxis-rangeslider (plotly.js reference) https://plotly.com/javascript/reference/layout/xaxis/#layout-xaxis-rangeslider

SundayCarpenter avatar Jul 25 '21 09:07 SundayCarpenter

Yes, this would be awesome!

When the range slider is present on a candlestick chart, it seems we're unable to zoom in on the y-axis. When the range slider is removed, the user is able to zoom in freely.

See this page for interactive demos of charts with and without the range slider:

https://plotly.com/python/candlestick-charts/

dharmatech avatar Nov 23 '21 09:11 dharmatech

You can also make the y axis zoomable while you have a range slider by setting fixedrange to false on the axis object. example (although with Plotly.NET, not with XPlot) here

kMutagene avatar Nov 25 '21 12:11 kMutagene