Skip to content

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

Open

Description

@SundayCarpenter

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

Activity

  1. dharmatech commented on Nov 23, 2021

    @dharmatech

    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/

  2. kMutagene commented on Nov 25, 2021

    @kMutagene
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions