GMARTINEZMILLA commited on
Commit
a1eac8d
1 Parent(s): 000939e

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -178,7 +178,7 @@ if page == "Summary":
178
  # """)
179
 
180
  # Create layout with three columns
181
- col1, col2, col3 = st.columns((1.5, 4.5, 2), gap='medium')
182
 
183
  # Left Column (Red): Metrics and Donut Charts
184
  with col1:
@@ -197,6 +197,8 @@ if page == "Summary":
197
 
198
  # Middle Column (White): 3D Cluster Model and Bar Chart
199
  with col2:
 
 
200
  # Create 3D PCA plot using actual data from pca_data_5
201
  fig_cluster = px.scatter_3d(
202
  pca_data_5,
@@ -205,12 +207,11 @@ if page == "Summary":
205
  z='PC3',
206
  color='cluster_id',
207
  hover_name='CustomerID',
208
- title='#### 3D PCA Customer Clusters'
209
  )
210
  fig_cluster.update_layout(
211
  scene=dict(aspectratio=dict(x=1, y=1, z=0.8)), # Adjusted aspect ratio for better balance
212
  margin=dict(t=10, b=10, l=10, r=10), # Tighten margins further
213
- height=400, # Slightly increased height for better visibility
214
  )
215
  st.plotly_chart(fig_cluster, use_container_width=True)
216
 
 
178
  # """)
179
 
180
  # Create layout with three columns
181
+ col1, col2, col3 = st.columns((1.5, 4, 2.5), gap='medium')
182
 
183
  # Left Column (Red): Metrics and Donut Charts
184
  with col1:
 
197
 
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,
 
207
  z='PC3',
208
  color='cluster_id',
209
  hover_name='CustomerID',
 
210
  )
211
  fig_cluster.update_layout(
212
  scene=dict(aspectratio=dict(x=1, y=1, z=0.8)), # Adjusted aspect ratio for better balance
213
  margin=dict(t=10, b=10, l=10, r=10), # Tighten margins further
214
+ height=300, # Slightly increased height for better visibility
215
  )
216
  st.plotly_chart(fig_cluster, use_container_width=True)
217