Skip to content
Discussion options

You must be logged in to vote

Ok resolved, when ohlc.plot() is created without preexisting fig, it sets rangeslider_visible to false in ohlcv_accessors:

  fig.update_layout(
      showlegend=True,
      xaxis=dict(
          rangeslider_visible=False,
          showgrid=True

If previous fig is passed, rangeslider will be True, I just modified my ohlc line to pass this rangeslider_visible=False to **layout_kwargs.
Maybe it will help someone:

  fig = price_df.vbt.ohlc.plot(plot_type="candlestick", show_volume=False,
                               ohlc_add_trace_kwargs=dict(row=1, col=1), fig=fig,
                               xaxis=dict(rangeslider_visible=False))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kalindro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant