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

Change plot background's gray to match the table's gray

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,16 +79,16 @@ 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["index"].max()
83
 
84
  fig.update_layout(
85
  barmode="stack",
86
  title=f"Last Modified {last_update_time}",
87
  showlegend=False,
88
  modebar_remove=["lasso2d", "select2d"],
89
- plot_bgcolor="#E9E9E9",
90
  xaxis_fixedrange=True,
91
- xaxis_range=[0, max_count + 1],
92
  xaxis_showticklabels=False,
93
  yaxis_fixedrange=True,
94
  yaxis_categoryorder="category descending",
 
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_index = df["index"].max()
83
 
84
  fig.update_layout(
85
  barmode="stack",
86
  title=f"Last Modified {last_update_time}",
87
  showlegend=False,
88
  modebar_remove=["lasso2d", "select2d"],
89
+ plot_bgcolor="#FAFAFA",
90
  xaxis_fixedrange=True,
91
+ xaxis_range=[0, max_index + 1],
92
  xaxis_showticklabels=False,
93
  yaxis_fixedrange=True,
94
  yaxis_categoryorder="category descending",