Black Lives Matter. Please consider donating to Black Girls Code today.

go.Candlestick with Subplots

I want to add a subplot, but I can’t get the main candlestick chart to show up when using the low-level plotting API.

def return_candle_trace(pair,exchange):
    df = ccxt_datahandler(pair, exchange, '1d')
    df = df.loc['2019-8-1':]
    return go.Candlestick(x=df.index,
                open=df['Open'], high=df['High'],
                low=df['Low'], close=df['Close'])

trace1 = return_candle_trace('ETH/USDT','binance')

data = [trace1]

layout = go.Layout(
        domain=[0, 1]

sub_plot_fig = go.Figure(data=data, layout=layout)

sub_plot_graph = dcc.Graph(id='subplottest',figure=sub_plot_fig)