Spaces:
Sleeping
Sleeping
Commit
·
8dde5f0
1
Parent(s):
53974d6
Update app.py
Browse files
app.py
CHANGED
@@ -55,14 +55,13 @@ fig.update_yaxes(automargin=True) # fix margins
|
|
55 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
56 |
fig.update_layout(margin=dict(t=150))
|
57 |
|
58 |
-
st.write(fig.layout.yaxis['range'][1] + 0.1)
|
59 |
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
60 |
fig.add_annotation({
|
61 |
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
62 |
-
"y":
|
63 |
"text": "Today",
|
64 |
-
"align": "
|
65 |
-
"valign": "
|
66 |
"showarrow": False,
|
67 |
})
|
68 |
|
|
|
55 |
fig.layout.xaxis.rangeselector = None # remove range selector on top
|
56 |
fig.update_layout(margin=dict(t=150))
|
57 |
|
|
|
58 |
fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
|
59 |
fig.add_annotation({
|
60 |
"x": datetime.datetime.now().strftime('%Y-%m-%d'),
|
61 |
+
"y": fig.layout.yaxis['range'][1],
|
62 |
"text": "Today",
|
63 |
+
"align": "left",
|
64 |
+
"valign": "bottom",
|
65 |
"showarrow": False,
|
66 |
})
|
67 |
|