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
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["
|
| 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",
|