Skip to content

Commit 98e4d7a

Browse files
nikolay-eclaude
andcommitted
Fix weight chart to show only raw data points
- Change from lines to markers mode for weight and body fat - Remove connectgaps to prevent weird lines across missing data - Show clean individual data points instead of connected lines - Larger markers for better visibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0f2b100 commit 98e4d7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,9 @@ def update_chart_date_range(fig, start_date, end_date):
879879
x=data["weight"]["date"],
880880
y=data["weight"]["weight_kg"],
881881
name="Weight (kg)",
882-
line={"color": "crimson", "width": 3},
882+
mode="markers",
883+
marker={"color": "crimson", "size": 8},
884+
connectgaps=False,
883885
),
884886
secondary_y=False,
885887
)
@@ -900,7 +902,9 @@ def update_chart_date_range(fig, start_date, end_date):
900902
x=data["weight"]["date"],
901903
y=data["weight"]["body_fat_pct"],
902904
name="Body Fat %",
903-
line={"color": "dodgerblue", "width": 2},
905+
mode="markers",
906+
marker={"color": "dodgerblue", "size": 6},
907+
connectgaps=False,
904908
),
905909
secondary_y=True,
906910
)

0 commit comments

Comments
 (0)