What is the coordinate axes for the legend?
Where is the origin and what is the range of x and y (for the legend)
I have a graph with many categories. I am having problems managing the legend.
Here is how I create the chart:
traces1 = []
for i in range(0,100):
traces1.append(go.Bar(
x = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9],
y = [0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9],
name = βcolumnβ + str(i)
))
layout0 = go.Layout(
width=1000, height=500,
legend=dict(orientation=βhβ, x = 0,y = -2, yanchor=βbottomβ)
)
fig1 = go.Figure(data=traces1, layout=layout0)
offline.iplot(fig1)