Spaces:
Sleeping
Sleeping
Commit
·
79c4c27
1
Parent(s):
b725fb6
feat: Updated colours in 3D cluster
Browse files
app.py
CHANGED
@@ -236,7 +236,13 @@ if page == "📃 Resumen":
|
|
236 |
z='PC3',
|
237 |
color='cluster_id',
|
238 |
hover_name='CustomerID',
|
239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
)
|
241 |
fig_cluster.update_layout(
|
242 |
scene=dict(aspectratio=dict(x=1, y=1, z=0.8)), # Adjusted aspect ratio for better balance
|
|
|
236 |
z='PC3',
|
237 |
color='cluster_id',
|
238 |
hover_name='CustomerID',
|
239 |
+
color_discrete_map={
|
240 |
+
0: '#FFD700', # Deeper yellow for cluster 0
|
241 |
+
1: '#FFA500', # Orange for cluster 1
|
242 |
+
2: '#FF6347', # Tomato for cluster 2
|
243 |
+
3: '#FF4500', # OrangeRed for cluster 3
|
244 |
+
4: '#FF0000' # Red for cluster 4
|
245 |
+
},
|
246 |
)
|
247 |
fig_cluster.update_layout(
|
248 |
scene=dict(aspectratio=dict(x=1, y=1, z=0.8)), # Adjusted aspect ratio for better balance
|