We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac83d98 commit 3e116c6Copy full SHA for 3e116c6
waterfall/cvo-waterfall.py
@@ -60,6 +60,13 @@
60
last_stop = stop
61
62
print('<svg viewBox="0 0 {} {}" xmlns="http://www.w3.org/2000/svg">'.format(last_stop, y))
63
+duration = datetime.timedelta(seconds=last_stop)
64
+time_scale = 5
65
+for i in range(1 + int(last_stop // (time_scale*60))):
66
+ print(' <line x1="{x}" x2="{x}" y1="0%" y2="100%" stroke="gray" style="stroke-opacity: 0.5;"><title>{minutes} minutes</title></line>'.format(
67
+ x=i * time_scale * 60,
68
+ minutes=i * time_scale))
69
for rectangle in rectangles:
70
print(' {}'.format(rectangle))
71
+print(' <text x="50%" y="20" text-anchor="middle">CVO manifests, duration {}</text>'.format(duration))
72
print('</svg>')
0 commit comments