command = list(data_set().keys()).sort()
points = [0]*len(list(data_set().keys()))
val=[0]*len(list(data_set().keys()))
clr=[0]*len(list(data_set().keys()))
#построение графиков
trace = go.Bar(x=command, y=points,
xaxis='x2',
yaxis='y2',
marker=dict(color=clr),
name='Team',
textfont=dict(
family="Courier New, monospace",
size=15,
color="#003300"),
text=val,
textposition="outside", #
stream=stream_id,)
data=[trace]
layout = go.Layout(
xaxis2=dict(
domain=[0,1],
anchor='y2',
categoryorder= 'category ascending',
tickfont=dict(size=16,
family="Courier New, monospace",
color="#7f7f7f"),
automargin=True),
yaxis2=dict(
domain=[0,1],
rangemode='nonnegative',
autorange=True,
dtick=1,
anchor='x2',
categoryorder= 'category ascending',
tickfont=dict(size=16,
family="Courier New, monospace",
color="#7f7f7f")
))
fig = go.Figure(data=data, layout=layout)
url = py.plot(fig, filename='simple-inset-stream', auto_open=False)
webbrowser.open_new(url+'.embed')