Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -209,8 +209,8 @@ class SupplyChainOptimizer:
|
|
| 209 |
},
|
| 210 |
xaxis_title="Products",
|
| 211 |
yaxis_title="Forecasted Demand",
|
| 212 |
-
xaxis=dict(
|
| 213 |
-
yaxis=dict(
|
| 214 |
barmode='group',
|
| 215 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 216 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
|
@@ -263,8 +263,8 @@ class SupplyChainOptimizer:
|
|
| 263 |
},
|
| 264 |
xaxis_title="City & Product",
|
| 265 |
yaxis_title="Units",
|
| 266 |
-
xaxis=dict(
|
| 267 |
-
yaxis=dict(
|
| 268 |
barmode='group',
|
| 269 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 270 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
|
@@ -290,8 +290,7 @@ class SupplyChainOptimizer:
|
|
| 290 |
color=df['Average_Travel_Time_hrs'],
|
| 291 |
colorscale=[[0, '#FFD700'], [0.5, '#FF6347'], [1, '#DC143C']],
|
| 292 |
showscale=True,
|
| 293 |
-
colorbar=dict(title="Travel Time (hrs)",
|
| 294 |
-
),
|
| 295 |
text=[f"{row['Source']} → {row['Destination']}" for _, row in df.iterrows()],
|
| 296 |
textposition="top center",
|
| 297 |
textfont=dict(size=12, color='#8B0000', family='Arial Black'),
|
|
@@ -307,8 +306,8 @@ class SupplyChainOptimizer:
|
|
| 307 |
},
|
| 308 |
xaxis_title="Distance (km)",
|
| 309 |
yaxis_title="Cost per km (₹)",
|
| 310 |
-
xaxis=dict(
|
| 311 |
-
yaxis=dict(
|
| 312 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 313 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
| 314 |
font=dict(color='#8B4513', size=12, family='Arial'),
|
|
|
|
| 209 |
},
|
| 210 |
xaxis_title="Products",
|
| 211 |
yaxis_title="Forecasted Demand",
|
| 212 |
+
xaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 213 |
+
yaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 214 |
barmode='group',
|
| 215 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 216 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
|
|
|
| 263 |
},
|
| 264 |
xaxis_title="City & Product",
|
| 265 |
yaxis_title="Units",
|
| 266 |
+
xaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 267 |
+
yaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 268 |
barmode='group',
|
| 269 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 270 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
|
|
|
| 290 |
color=df['Average_Travel_Time_hrs'],
|
| 291 |
colorscale=[[0, '#FFD700'], [0.5, '#FF6347'], [1, '#DC143C']],
|
| 292 |
showscale=True,
|
| 293 |
+
colorbar=dict(title=dict(text="Travel Time (hrs)", font=dict(size=14, color='#8B4513', family='Arial Black')))
|
|
|
|
| 294 |
text=[f"{row['Source']} → {row['Destination']}" for _, row in df.iterrows()],
|
| 295 |
textposition="top center",
|
| 296 |
textfont=dict(size=12, color='#8B0000', family='Arial Black'),
|
|
|
|
| 306 |
},
|
| 307 |
xaxis_title="Distance (km)",
|
| 308 |
yaxis_title="Cost per km (₹)",
|
| 309 |
+
xaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 310 |
+
yaxis=dict(title=dict(font=dict(size=16, color='#8B4513', family='Arial Black'))),
|
| 311 |
plot_bgcolor='rgba(255,248,220,0.9)',
|
| 312 |
paper_bgcolor='rgba(255,248,220,0.9)',
|
| 313 |
font=dict(color='#8B4513', size=12, family='Arial'),
|