XPlot
XPlot copied to clipboard
Unable to set 'rangeslider': { 'visible': false } for XPlot.Plotly.Candlestick
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
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/
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