harmdevries commited on
Commit
a00ced0
·
1 Parent(s): 1d3cc6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -53,11 +53,13 @@ fig.update_xaxes(ticks= "outside",
53
 
54
  fig.update_yaxes(automargin=True) # fix margins
55
  fig.layout.xaxis.rangeselector = None # remove range selector on top
 
 
56
  st.write(fig.layout.yaxis['range'][1] + 0.1)
57
  fig.add_vline(x=datetime.datetime.now().strftime('%Y-%m-%d'), line_width=3, line_dash="dash", line_color="black")
58
  fig.add_annotation({
59
  "x": datetime.datetime.now().strftime('%Y-%m-%d'),
60
- "y": 2.1,
61
  "text": "Today",
62
  "align": "center",
63
  "showarrow": False,
 
53
 
54
  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.06,
63
  "text": "Today",
64
  "align": "center",
65
  "showarrow": False,