'Hide rangeslider in Dash combined OHLC plot

Im trying to hide the rangeslider in an Ohlc plot in Dash. In this Ohlc I also draw lines. Where can I put the arguments to hide the rangeslider and the legend?

fig = {
        'data': [
            go.Ohlc(
                x=[v for v in range(-20, 0)],
                open=hist_data['Open'],
                high=hist_data['High'],
                low=hist_data['Low'],
                close=hist_data['Close'],
            ),
            go.Scattergl(
                x=t,
                y=s,
                mode='lines',
                opacity=0.7,
                marker={
                    'line': {'width': 0.5, 'color': 'white'}
                },
            )
        ],
        'layout': go.Layout(
            margin={'l': 40, 'b': 40, 't': 10, 'r': 10},
        )
    }

return fig

Thx!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source