Spaces:
Sleeping
Sleeping
harmdevries
commited on
Commit
•
6cbb231
1
Parent(s):
e2b6d94
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ fig.update_xaxes(ticks= "outside",
|
|
82 |
tickcolor= "black",
|
83 |
ticklen=10,
|
84 |
range=[datetime.datetime(2022, 12, 30),
|
85 |
-
datetime.datetime(2023, 4,
|
86 |
minor=dict(
|
87 |
ticklen=4,
|
88 |
dtick=7*24*60*60*1000,
|
@@ -95,7 +95,16 @@ 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": datetime.datetime.now().strftime('%Y-%m-%d'),
|
101 |
"y": fig.layout.yaxis['range'][1],
|
|
|
82 |
tickcolor= "black",
|
83 |
ticklen=10,
|
84 |
range=[datetime.datetime(2022, 12, 30),
|
85 |
+
datetime.datetime(2023, 4, 9)],
|
86 |
minor=dict(
|
87 |
ticklen=4,
|
88 |
dtick=7*24*60*60*1000,
|
|
|
95 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
96 |
|
97 |
# Add today line
|
98 |
+
fig.add_vline(x='2023-04-02', line_width=3, line_dash="dash", line_color="black")
|
99 |
+
fig.add_annotation({
|
100 |
+
"x": '2023-04-02',
|
101 |
+
"y": fig.layout.yaxis['range'][1],
|
102 |
+
"yshift": 10,
|
103 |
+
"text": "Release",
|
104 |
+
"showarrow": False,
|
105 |
+
})
|
106 |
+
|
107 |
+
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="red")
|
108 |
fig.add_annotation({
|
109 |
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
110 |
"y": fig.layout.yaxis['range'][1],
|