Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SundayCarpenter opened this issue Jul 25, 2021 · 2 comments

Comments

@SundayCarpenter
Copy link

SundayCarpenter commented Jul 25, 2021

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

@dharmatech
Copy link

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/

@kMutagene
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants