Spaces:
Running
Running
kcal to cal ( wtf kcal ! )
Browse files- src/components/charts.ts +3 -3
src/components/charts.ts
CHANGED
|
@@ -365,7 +365,7 @@ function showActivityDetails(dateStr: string, activities: Activity[]): void {
|
|
| 365 |
caloriesDetail.className = 'activity-detail';
|
| 366 |
caloriesDetail.innerHTML = `
|
| 367 |
<span class="activity-detail-label">π Calories</span>
|
| 368 |
-
<span class="activity-detail-value">${activity.calories.toFixed(0)}
|
| 369 |
`;
|
| 370 |
details.appendChild(caloriesDetail);
|
| 371 |
}
|
|
@@ -780,10 +780,10 @@ export function createCaloriesChart(data: MetricACWRData): void {
|
|
| 780 |
'calories-chart',
|
| 781 |
data,
|
| 782 |
'Calories',
|
| 783 |
-
'
|
| 784 |
'rgba(234, 179, 8, 0.8)'
|
| 785 |
);
|
| 786 |
-
updateTargetInfo('calories-target', data.targetTomorrowValue, '
|
| 787 |
|
| 788 |
// Update ACWR display in title
|
| 789 |
const currentACWR = data.acwr.length > 0 ? data.acwr[data.acwr.length - 1] : null;
|
|
|
|
| 365 |
caloriesDetail.className = 'activity-detail';
|
| 366 |
caloriesDetail.innerHTML = `
|
| 367 |
<span class="activity-detail-label">π Calories</span>
|
| 368 |
+
<span class="activity-detail-value">${activity.calories.toFixed(0)} cal</span>
|
| 369 |
`;
|
| 370 |
details.appendChild(caloriesDetail);
|
| 371 |
}
|
|
|
|
| 780 |
'calories-chart',
|
| 781 |
data,
|
| 782 |
'Calories',
|
| 783 |
+
'',
|
| 784 |
'rgba(234, 179, 8, 0.8)'
|
| 785 |
);
|
| 786 |
+
updateTargetInfo('calories-target', data.targetTomorrowValue, 'cal', data.targetACWR, data.restTomorrowACWR);
|
| 787 |
|
| 788 |
// Update ACWR display in title
|
| 789 |
const currentACWR = data.acwr.length > 0 ? data.acwr[data.acwr.length - 1] : null;
|