GMARTINEZMILLA commited on
Commit
e00ad5f
1 Parent(s): f643712

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -198,7 +198,7 @@ if page == "Summary":
198
  # Middle Column (White): 3D Cluster Model and Bar Chart
199
  with col2:
200
  st.markdown('#### 3D Customer Clusters')
201
-
202
  # Create 3D PCA plot using actual data from pca_data_5
203
  fig_cluster = px.scatter_3d(
204
  pca_data_5,
@@ -210,11 +210,11 @@ if page == "Summary":
210
  title='3D PCA Customer Clusters'
211
  )
212
  fig_cluster.update_layout(
213
- scene=dict(aspectratio=dict(x=1, y=1, z=0.7)), # Control the aspect ratio
214
- margin=dict(t=0, b=0, l=0, r=0), # Tighten margins
215
- height=300, # Shrink the height to fit page better
216
- )
217
- st.plotly_chart(fig_cluster, use_container_width=True)
218
 
219
  # Right Column (Blue): Key Metrics Overview and Data Preparation Summary
220
  with col3:
 
198
  # Middle Column (White): 3D Cluster Model and Bar Chart
199
  with col2:
200
  st.markdown('#### 3D Customer Clusters')
201
+
202
  # Create 3D PCA plot using actual data from pca_data_5
203
  fig_cluster = px.scatter_3d(
204
  pca_data_5,
 
210
  title='3D PCA Customer Clusters'
211
  )
212
  fig_cluster.update_layout(
213
+ scene=dict(aspectratio=dict(x=1, y=1, z=0.8)), # Adjusted aspect ratio for better balance
214
+ margin=dict(t=10, b=10, l=10, r=10), # Tighten margins further
215
+ height=400, # Slightly increased height for better visibility
216
+ )
217
+ st.plotly_chart(fig_cluster, use_container_width=True)
218
 
219
  # Right Column (Blue): Key Metrics Overview and Data Preparation Summary
220
  with col3: