Skip to content
Snippets Groups Projects
Commit 79f935cc authored by ale's avatar ale
Browse files

stacked graph attempt / 2

parent b52f44f3
Branches
Tags v0.1.2
No related merge requests found
......@@ -35,7 +35,8 @@ def _mk_stacked_graph(chart, valuelist):
v0 = [0] * n
for j, values in enumerate(valuelist):
for i, v in enumerate(values):
v0[i] += v
if v:
v0[i] += v
chart.add_data(v0[:])
chart.add_fill_range(_palette[i], j, j+1)
chart.set_colours(['000000'] + _palette[:n])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment