Tracker
These are the code blocks I used in the related video. You can copy them from here and adapt them as needed or just download the fully functional Lean Habits Vault.
Dont forget!
To put the code blocks between triple tickmarks (```).
Intermittent Fasting (yes/no)
tracker
searchType: frontmatter
searchTarget: Challenge1
datasetName: Fasting
startDate: 2024-01-01
endDate: 0d
folder: "06 BJ/10 Daily"
month:
startWeekOn: 'Mon'
color: "#18BC9C"
headerMonthColor: "#FC3634"
searchType: frontmatter
searchTarget: Challenge1
folder: "06 BJ/10 Daily"
summary:
template: "Longest Streak: {{maxStreak()}} day(s)\nLongest Breaks: {{maxBreaks()}} day(s)\nLast streak: {{currentStreak()}} day(s)"
Workout and Walk (yes/no) - emojis
Exception
This code block is already part of callouts. So you don't need to add the tickmarks.
> [!multi-column]
> > [!NOTE] ### Calendar
> > ```tracker
> > searchType: frontmatter
> > searchTarget: Workout, Walk
> > folder: "06 BJ/10 Daily"
> > startDate: 2024-01-01
> > endDate: 0d
> > datasetName: Workout, Walk
> > month:
> > mode: annotation
> > annotation: 🏋️, 🏃♂️
> > startWeekOn: 'Mon'
> > color: "#25D0F7"
> > ```
>
> > [!NOTE] ### Streak Info
> > #### Workout
> > ```tracker
> > searchType: frontmatter
> > searchTarget: Workout
> > folder: "06 BJ/10 Daily"
> > summary:
> > template: "Longest Streak: {{maxStreak()}} day(s)\nLongest Breaks: {{maxBreaks()}} day(s)\nLast streak: {{currentStreak()}} day(s)"
> > ```
> > #### Walk
> > ```tracker
> > searchType: frontmatter
> > searchTarget: Walk
> > folder: "06 BJ/10 Daily"
> > summary:
> > template: "Longest Streak: {{maxStreak()}} day(s)\nLongest Breaks: {{maxBreaks()}} day(s)\nLast streak: {{currentStreak()}} day(s)"
> > ```
Pushups (chart)
tracker
searchType: frontmatter
searchTarget: Challenge2
folder: "06 BJ/10 Daily"
startDate: 2024-04-01
endDate: 0d
datasetName: Pushups
bar:
title: PushUps
yAxisLabel: Count
showLegend: false
legendPosition: bottom
legendOrientation: horizontal
Summary
tracker
searchType: frontmatter
searchTarget: Challenge2
folder: "06 BJ/10 Daily"
summary:
template: "Maximum: {{max()}}\nAverage: {{average()}}\nTotal: {{sum()}}"
Pushups Bullet Chart (running total)
tracker
searchType: frontmatter
searchTarget: Challenge2
folder: "06 BJ/10 Daily"
endDate: 2024-12-31
fixedScale: 1.1
fitPanelWidth: false
bullet:
title: "Pushups"
orientation: vertical
range: 5000, 10000, 15000
rangeColor: '#FC3634, #FFED68, #18BC9C'
value: "{{sum()}}"
valueUnit: reps
valueColor: '#1B2631'
showMarker: true
markerValue: 12000
markerColor: '#ffffff'
BMI & Fat% (line chart)
tracker
searchType: dvField
searchTarget: BMI, Fat
folder: "06 BJ/10 Daily"
startDate: 2024-01-01
endDate: 0d
datasetName: BMI, Fat
accum: false
aspectRatio: 3:1
fitPanelWidth: true
ignoreZeroValue: true
line:
fillGap: true
yAxisLocation: left, right
yAxisColor: '#25D0F7, #FFFFFF'
yAxisLabel: BMI, Fat%
yAxisLabelColor: '#25D0F7, #FFFFFF'
lineColor: '#25D0F7, #FFFFFF'
lineWidth: 3
pointSize: 4
pointColor: '#25D0F7, #FFFFFF'
pointBorderWidth: 0
pointBorderColor: '#25D0F7, #FFFFFF'
showLegend: true