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(
yaxis=dict(
domain=[0, 1]
),
)
sub_plot_fig = go.Figure(data=data, layout=layout)
sub_plot_graph = dcc.Graph(id='subplottest',figure=sub_plot_fig)