Michael Yuan commited on
Commit
3bbcf3c
·
1 Parent(s): 3ddcf7d

Fix bug: change max_count to max_index to determine x-axis range

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def get_bar_chart(df):
79
  last_update_time = max(df["query_time"])
80
  last_update_time = datetime.fromisoformat(last_update_time).strftime("%Y-%m-%d %H:%M:%S")
81
 
82
- max_count = df["count"].max()
83
 
84
  fig.update_layout(
85
  barmode="stack",
 
79
  last_update_time = max(df["query_time"])
80
  last_update_time = datetime.fromisoformat(last_update_time).strftime("%Y-%m-%d %H:%M:%S")
81
 
82
+ max_count = df["index"].max()
83
 
84
  fig.update_layout(
85
  barmode="stack",