Spaces:
Sleeping
Sleeping
add ffmi_range["description"]
Browse files
FFMI.py
CHANGED
@@ -85,7 +85,8 @@ def plot_ffmi_curves(height_m, gender):
|
|
85 |
size=5, opacity=0.6,
|
86 |
line=dict(color=ffmi_range.get("line_color", ffmi_range["color"]))
|
87 |
),
|
88 |
-
hovertext=[
|
|
|
89 |
|
90 |
zip(ffmi_values, weight_kg_values, body_fat_values)],
|
91 |
hoverinfo='text'
|
|
|
85 |
size=5, opacity=0.6,
|
86 |
line=dict(color=ffmi_range.get("line_color", ffmi_range["color"]))
|
87 |
),
|
88 |
+
hovertext=[
|
89 |
+
f'FFMI: {ffmi:.2f}<br>Weight: {weight_kg:.2f}<br>BodyFat: {body_fat:.2f}<br>{ffmi_range["description"]}' for ffmi,weight_kg, body_fat in
|
90 |
|
91 |
zip(ffmi_values, weight_kg_values, body_fat_values)],
|
92 |
hoverinfo='text'
|