У меня есть такой код:
data = [ dict(
type = 'candlestick',
open = op,
high = hi,
low = lo,
close = cl,
x = df['candletime'],
yaxis = 'y2',
increasing = dict( line = dict( color = "#00FF00" ) ),
decreasing = dict( line = dict( color = "#FF0000" ) ),
text = [f'PATTERN: {x}<br> MATCH COUNT: {y}' for x,y in list(zip(candlestick_label1, candlestick_label2))]
) ]
layout=dict()
fig = dict( data=data, layout=layout)
fig['layout'] = dict()
fig['layout']['xaxis'] = dict(rangeslider = dict( visible = False ) )
fig['layout']['yaxis'] = dict( domain = [0, 0.2], showticklabels = False )
fig['layout']['yaxis2'] = dict( domain = [0.2, 1] )
fig['layout']['legend'] = dict( orientation = 'h', y=0.9, x=0.3, yanchor='bottom' )
fig['layout']['margin'] = dict( t=0, b=0, r=0, l=0 )
fig['layout']['xaxis']["fixedrange"] = True
fig['layout']['yaxis']["fixedrange"] = True
fig['layout']['showlegend'] = False
plot(fig, filename='./templates/tool.html', auto_open=False, config={'displayModeBar': False})
Я хочу составить текст каждой свечи, но не вижу никакого свойства в документах. В гистограмме я могу использовать textposition = "outside". кто-нибудь знает это в подсвечнике?