Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1387,68 +1387,60 @@ else:
|
|
| 1387 |
# ===============================================================
|
| 1388 |
st.markdown('<h3 class="big-title">Hazard Gradient Legend</h3>', unsafe_allow_html=True)
|
| 1389 |
st.markdown("""
|
| 1390 |
-
<div class="legend-container">
|
| 1391 |
-
|
| 1392 |
-
|
| 1393 |
-
|
| 1394 |
-
|
| 1395 |
-
|
| 1396 |
-
|
| 1397 |
-
|
| 1398 |
-
|
| 1399 |
-
|
| 1400 |
-
|
| 1401 |
-
|
| 1402 |
-
|
| 1403 |
-
|
| 1404 |
-
|
| 1405 |
-
|
| 1406 |
-
|
| 1407 |
-
|
| 1408 |
-
|
| 1409 |
-
|
| 1410 |
-
|
| 1411 |
-
|
| 1412 |
-
|
| 1413 |
-
|
| 1414 |
-
|
| 1415 |
-
|
| 1416 |
-
|
| 1417 |
-
|
| 1418 |
-
|
| 1419 |
-
|
| 1420 |
-
|
| 1421 |
-
|
| 1422 |
-
|
| 1423 |
-
|
| 1424 |
-
|
| 1425 |
-
|
| 1426 |
-
|
| 1427 |
-
|
| 1428 |
-
|
| 1429 |
-
|
| 1430 |
-
|
| 1431 |
-
|
| 1432 |
-
|
| 1433 |
-
|
| 1434 |
-
|
| 1435 |
-
|
| 1436 |
-
|
| 1437 |
-
|
| 1438 |
-
|
| 1439 |
-
|
| 1440 |
-
|
| 1441 |
-
|
| 1442 |
-
<div class="legend-item">
|
| 1443 |
-
<div class="legend-color" style="background-color: #FFD700;"></div>
|
| 1444 |
-
<span>One Time Event (0)</span>
|
| 1445 |
</div>
|
| 1446 |
-
|
| 1447 |
-
<i>Note: Slope = 0 by definition when data exists for only one week — trend assessment not applicable.</i>
|
| 1448 |
-
</p>
|
| 1449 |
-
</div>
|
| 1450 |
-
</div>
|
| 1451 |
-
""", unsafe_allow_html=True)
|
| 1452 |
|
| 1453 |
# ===============================================================
|
| 1454 |
# PLOT FUNCTION — DIPERBAIKI: LOGIKA WARNA SESUAI KATEGORI RISK
|
|
|
|
| 1387 |
# ===============================================================
|
| 1388 |
st.markdown('<h3 class="big-title">Hazard Gradient Legend</h3>', unsafe_allow_html=True)
|
| 1389 |
st.markdown("""
|
| 1390 |
+
<div class="legend-container">
|
| 1391 |
+
<div class="legend-box">
|
| 1392 |
+
<div class="legend-title">Worsening Trends (Positive Slope):</div>
|
| 1393 |
+
<div class="legend-item">
|
| 1394 |
+
<div class="legend-color" style="background-color: #d32f2f;"></div>
|
| 1395 |
+
<span>Very High Worsening (≥1.5)</span>
|
| 1396 |
+
</div>
|
| 1397 |
+
<div class="legend-item">
|
| 1398 |
+
<div class="legend-color" style="background-color: #e57373;"></div>
|
| 1399 |
+
<span>High Worsening (1.0–1.5)</span>
|
| 1400 |
+
</div>
|
| 1401 |
+
<div class="legend-item">
|
| 1402 |
+
<div class="legend-color" style="background-color: #ef9a9a;"></div>
|
| 1403 |
+
<span>Moderate Worsening (0.5–1.0)</span>
|
| 1404 |
+
</div>
|
| 1405 |
+
<div class="legend-item">
|
| 1406 |
+
<div class="legend-color" style="background-color: #ffcdd2;"></div>
|
| 1407 |
+
<span>Slight Worsening (0–0.5)</span>
|
| 1408 |
+
</div>
|
| 1409 |
+
<br>
|
| 1410 |
+
<i>Note: Applies when an operator has data in only one week — slope is set to 0 by definition.</i>
|
| 1411 |
+
</div>
|
| 1412 |
+
<div class="legend-box">
|
| 1413 |
+
<div class="legend-title">Improving Trends (Negative Slope):</div>
|
| 1414 |
+
<div class="legend-item">
|
| 1415 |
+
<div class="legend-color" style="background-color: #388e3c;"></div>
|
| 1416 |
+
<span>Excellent Improvement (≤−1.5)</span>
|
| 1417 |
+
</div>
|
| 1418 |
+
<div class="legend-item">
|
| 1419 |
+
<div class="legend-color" style="background-color: #81c784;"></div>
|
| 1420 |
+
<span>Great Improvement (−1.5 to −1.0)</span>
|
| 1421 |
+
</div>
|
| 1422 |
+
<div class="legend-item">
|
| 1423 |
+
<div class="legend-color" style="background-color: #a5d6a7;"></div>
|
| 1424 |
+
<span>Good Improvement (−1.0 to −0.5)</span>
|
| 1425 |
+
</div>
|
| 1426 |
+
<div class="legend-item">
|
| 1427 |
+
<div class="legend-color" style="background-color: #c8e6c9;"></div>
|
| 1428 |
+
<span>Slight Improvement (−0.5 to 0)</span>
|
| 1429 |
+
<br>
|
| 1430 |
+
<i>Note: Applies when an operator has data in only one week — slope is set to 0 by definition.</i>
|
| 1431 |
+
</div>
|
| 1432 |
+
</div>
|
| 1433 |
+
<div class="legend-box">
|
| 1434 |
+
<div class="legend-title">One-Time Events (Zero Slope):</div>
|
| 1435 |
+
<div class="legend-item">
|
| 1436 |
+
<div class="legend-color" style="background-color: #FFD700;"></div>
|
| 1437 |
+
<span>One Time Event (0)</span>
|
| 1438 |
+
</div>
|
| 1439 |
+
<br>
|
| 1440 |
+
<i>Note: Applies when an operator has data in only one week — slope is set to 0 by definition.</i>
|
| 1441 |
+
</div>
|
|
|
|
|
|
|
|
|
|
| 1442 |
</div>
|
| 1443 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1444 |
|
| 1445 |
# ===============================================================
|
| 1446 |
# PLOT FUNCTION — DIPERBAIKI: LOGIKA WARNA SESUAI KATEGORI RISK
|