Aryan Jain commited on
Commit
e999dc3
·
1 Parent(s): 15bdd44

fix color col

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -0
src/streamlit_app.py CHANGED
@@ -367,6 +367,8 @@ def render_chart(
367
 
368
  if active_incident_col is not None:
369
  x_col = "_incident_label"
 
 
370
 
371
  if view_horizontal_stacked:
372
  df_plot_copy[color_col] = df_plot_copy[color_col].astype(str)
 
367
 
368
  if active_incident_col is not None:
369
  x_col = "_incident_label"
370
+ if color_col in incident_cols:
371
+ color_col = "_incident_label"
372
 
373
  if view_horizontal_stacked:
374
  df_plot_copy[color_col] = df_plot_copy[color_col].astype(str)