答案 0 :(得分:0)
您可以通过以下方式使用namelength
中的hoverlabel
:
plot_data = [go.Scatter(x = [1.,2,3], y = [10., 20, 30], name = 'Loremipsumdolorsitamet1',
hoverlabel = dict(namelength = 50))]
plot_data += [go.Scatter(x = [1.,2,3], y = [15., 25, 40], name = 'Loremipsumdolorsitamet2')]
pltly.iplot(plot_data)
此处有更多信息:https://plot.ly/javascript/reference/#scatter-hoverlabel