Spaces:
Sleeping
Sleeping
Commit
·
02efbb2
1
Parent(s):
cdf8250
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,7 @@ fig.update_xaxes(ticks= "outside",
|
|
87 |
fig.update_layout(margin=go.layout.Margin(l=250))
|
88 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
89 |
|
|
|
90 |
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
91 |
fig.add_annotation({
|
92 |
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
@@ -96,7 +97,14 @@ fig.add_annotation({
|
|
96 |
"showarrow": False,
|
97 |
})
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
for i, entry in enumerate(df[::-1]):
|
101 |
fig.add_annotation(x='2023-01-01', y=i,
|
102 |
text=entry['Description'],
|
@@ -104,6 +112,7 @@ for i, entry in enumerate(df[::-1]):
|
|
104 |
xanchor="left",
|
105 |
xref="x")
|
106 |
|
|
|
107 |
fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
108 |
height = -0.5
|
109 |
for name, _ in name2repo[::-1]:
|
|
|
87 |
fig.update_layout(margin=go.layout.Margin(l=250))
|
88 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
89 |
|
90 |
+
# Add today line
|
91 |
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
92 |
fig.add_annotation({
|
93 |
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
|
|
97 |
"showarrow": False,
|
98 |
})
|
99 |
|
100 |
+
# Add point of contacts
|
101 |
+
fig.add_annotation({
|
102 |
+
"x": "2023-01-01",
|
103 |
+
"y": fig.layout.yaxis['range'][1],
|
104 |
+
"yshift": 10,
|
105 |
+
"xanchor": "left",
|
106 |
+
"text": "Contact",
|
107 |
+
"showarrow": False})
|
108 |
for i, entry in enumerate(df[::-1]):
|
109 |
fig.add_annotation(x='2023-01-01', y=i,
|
110 |
text=entry['Description'],
|
|
|
112 |
xanchor="left",
|
113 |
xref="x")
|
114 |
|
115 |
+
# Add working group annotations
|
116 |
fig.add_hline(y=-0.5, line_width=1, line_color="grey")
|
117 |
height = -0.5
|
118 |
for name, _ in name2repo[::-1]:
|