Skip to content
Snippets Groups Projects

Stats

Merged Jane Wiik Larsen requested to merge stats into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -55,7 +55,7 @@ const monthLabels = [
const config = {
type: 'line',
data: data,
data: countWorkoutsByCurrentWeek(),
options: {}
};
@@ -64,7 +64,7 @@ const monthLabels = [
config
);
//count workouts (by week/ month)
//count workouts (by week)
function countWorkoutsByCurrentWeek() {
let workoutCount = [0, 0, 0, 0, 0, 0, 0];
const currentWeek = getWeek(new Date())
Loading