rairo commited on
Commit
b0649ce
·
verified ·
1 Parent(s): 295c000

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -93,19 +93,19 @@ uploaded_file = "Intervention.csv"
93
  df_full = pd.read_csv(uploaded_file) # Load the full data *once*
94
  st.write("Overall Data Visualizations")
95
 
96
- col1_full, col2_full = st.columns(2)
97
 
98
  with col1_full:
99
  fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
100
- fig_gender_full.update_layout(height=200, width=200)
101
  st.plotly_chart(fig_gender_full)
102
 
103
  fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
104
- fig_youth_full.update_layout(height=300, width=200)
105
  st.plotly_chart(fig_youth_full)
106
 
107
- fig_company_full = px.histogram(df_full, x="Company Name", title="Overall Company Distribution")
108
- fig_company_full.update_layout(height=300, width=200)
109
  st.plotly_chart(fig_company_full)
110
 
111
  with col2_full:
 
93
  df_full = pd.read_csv(uploaded_file) # Load the full data *once*
94
  st.write("Overall Data Visualizations")
95
 
96
+ col1_full, col2_full = st.columns([0.9, 0.9])
97
 
98
  with col1_full:
99
  fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
100
+ fig_gender_full.update_layout(height=350, width=350)
101
  st.plotly_chart(fig_gender_full)
102
 
103
  fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
104
+ fig_youth_full.update_layout(height=350, width=300)
105
  st.plotly_chart(fig_youth_full)
106
 
107
+ fig_company_full = px.histogram(df_full, y="Company Name", title="Overall Company Distribution")
108
+ fig_company_full.update_layout(height=300, width=300)
109
  st.plotly_chart(fig_company_full)
110
 
111
  with col2_full: