harmdevries commited on
Commit
8dde5f0
1 Parent(s): 53974d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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": 2,
63
  "text": "Today",
64
- "align": "center",
65
- "valign": "top",
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