Skip to content
Snippets Groups Projects
Commit 7488556c authored by ale's avatar ale
Browse files

stacked graph attempt / 5

parent 3e2387b4
Branches
No related tags found
No related merge requests found
......@@ -49,14 +49,14 @@ def _mk_stacked_graph(chart, valuelist):
def _mk_stats_graph(x=500, y=270):
ts = g.sm.state_count_ts
labels = [None] + sorted(ts.keys())
labels = sorted(ts.keys())
valuelist = []
for key in labels:
valuelist.append(ts[key].get_values())
chart = SimpleLineChart(x, y)
_mk_stacked_graph(chart, valuelist)
chart.set_legend(labels)
chart.set_legend([None] + labels)
return chart.get_url()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment