Spaces:
Sleeping
Sleeping
harmdevries
commited on
Commit
·
f315d03
1
Parent(s):
6cbb231
Update app.py
Browse files
app.py
CHANGED
@@ -95,21 +95,22 @@ fig.update_layout(margin=go.layout.Margin(l=250))
|
|
95 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
96 |
|
97 |
# Add today line
|
98 |
-
fig.add_vline(x='
|
99 |
fig.add_annotation({
|
100 |
-
"x": '
|
101 |
"y": fig.layout.yaxis['range'][1],
|
102 |
"yshift": 10,
|
103 |
-
"text": "
|
104 |
"showarrow": False,
|
105 |
})
|
106 |
|
107 |
-
|
|
|
108 |
fig.add_annotation({
|
109 |
-
"x":
|
110 |
"y": fig.layout.yaxis['range'][1],
|
111 |
"yshift": 10,
|
112 |
-
"text": "
|
113 |
"showarrow": False,
|
114 |
})
|
115 |
|
@@ -133,7 +134,7 @@ fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
|
133 |
height = -0.5
|
134 |
for name, _ in name2repo[::-1]:
|
135 |
if name2num_milestones[name] > 0:
|
136 |
-
fig.add_annotation(x='2023-
|
137 |
text=name,
|
138 |
showarrow=False,
|
139 |
align="center",
|
|
|
95 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
96 |
|
97 |
# Add today line
|
98 |
+
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
99 |
fig.add_annotation({
|
100 |
+
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
101 |
"y": fig.layout.yaxis['range'][1],
|
102 |
"yshift": 10,
|
103 |
+
"text": "Today",
|
104 |
"showarrow": False,
|
105 |
})
|
106 |
|
107 |
+
# Add release line
|
108 |
+
fig.add_vline(x='2023-04-02', line_width=3, line_dash="dash", line_color="red")
|
109 |
fig.add_annotation({
|
110 |
+
"x": '2023-04-02',
|
111 |
"y": fig.layout.yaxis['range'][1],
|
112 |
"yshift": 10,
|
113 |
+
"text": "Release",
|
114 |
"showarrow": False,
|
115 |
})
|
116 |
|
|
|
134 |
height = -0.5
|
135 |
for name, _ in name2repo[::-1]:
|
136 |
if name2num_milestones[name] > 0:
|
137 |
+
fig.add_annotation(x='2023-04-06', y=height + name2num_milestones[name]/2,
|
138 |
text=name,
|
139 |
showarrow=False,
|
140 |
align="center",
|