多个图形:更改破折号的颜色。鼠标无法在条上工作

时间:2020-02-06 01:39:34

标签: plotly-dash

我有一个callback,我在其中创建了一个figure,如下所示:

...
fig = tls.make_subplots(rows=2, cols=1, shared_xaxes=True,vertical_spacing=0.009,horizontal_spacing=0.009)
fig['layout']['margin'] = {'l': 30, 'r': 10, 'b': 50, 't': 25}

fig.append_trace({'x':performance_data.index,'y':performance_data['open'],'type':'scatter','name':'Open'},1,1) 
fig.append_trace({'x':performance_data.index,'y':performance_data['earn'],'type':'scatter','name':'EarnHoM'},2,1)

fig['layout'].update(title='Log Performance:' + stockticker) 

return fig

scatter plot 2中看不到subplot。但是,当我在此mouse上传递pane时,我看到了不可见数据的弹出窗口,它应该代表。我可以更改为bar,但是当我这样做时,鼠标悬停不起作用,尽管我几乎看不出应该是“ bar”的水平线。如何更改fig.append_trace中散点图的颜色?为什么鼠标悬停在工具栏上不能工作?

0 个答案:

没有答案