Contribution Graph

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 (```).

Month Track View

contributionGraph
title: 🍴 Intermittent Fasting 🍴
graphType: month-track
dateRangeValue: 180
dateRangeType: FIXED_DATE_RANGE
startOfWeek: 0
showCellRuleIndicators: false
titleStyle:
  textAlign: left
  fontSize: 15px
  fontWeight: normal
dataSource:
  type: PAGE
  value: '"06 BJ/10 Daily"'
  dateField:
    type: PAGE_PROPERTY
    value: created
  filters: []
  countField:
    type: PAGE_PROPERTY
    value: Challenge1
fillTheScreen: false
enableMainContainerShadow: false
fromDate: 2024-01-01
toDate: ""
cellStyle:
  borderRadius: ""
  minWidth: 20px
  minHeight: 20px
cellStyleRules:
  - id: default_b
    color: "#1b2631ff"
    min: "0"
    max: "1"
    text: 🔴
  - id: default_c
    color: "#1b2631ff"
    min: "1"
    max: "2"
    text: 🟢

Git Style View

contributionGraph
title: 💪 Workout 💪
graphType: default
dateRangeValue: 180
dateRangeType: FIXED_DATE_RANGE
startOfWeek: "1"
showCellRuleIndicators: false
titleStyle:
  textAlign: left
  fontSize: 15px
  fontWeight: normal
dataSource:
  type: PAGE
  value: '"06 BJ/10 Daily"'
  dateField:
    type: PAGE_PROPERTY
    value: created
  filters: []
  countField:
    type: PAGE_PROPERTY
    value: Workout
fillTheScreen: true
enableMainContainerShadow: false
fromDate: 2024-01-01
toDate: ""
cellStyle:
  borderRadius: ""
  minWidth: 20px
  minHeight: 20px
cellStyleRules:
  - id: default_b
    color: "#1b2631ff"
    min: "0"
    max: "1"
    text: 🔴
  - id: default_c
    color: "#1b2631ff"
    min: "1"
    max: "2"
    text: 🟢

Calendar View

contributionGraph
title: Sport
graphType: calendar
dateRangeValue: 180
dateRangeType: FIXED_DATE_RANGE
startOfWeek: "1"
showCellRuleIndicators: false
titleStyle:
  textAlign: left
  fontSize: 15px
  fontWeight: normal
dataSource:
  type: PAGE
  value: '"06 BJ/10 Daily"'
  dateField:
    type: PAGE_PROPERTY
    value: created
  filters: []
  countField:
    type: PAGE_PROPERTY
    value: Sport
fillTheScreen: false
enableMainContainerShadow: false
fromDate: 2024-01-01
toDate: ""
cellStyle:
  borderRadius: ""
  minWidth: 20px
  minHeight: 20px
cellStyleRules:
  - id: default_b
    color: "#1b2631ff"
    min: "0"
    max: "1"
    text: 🔴
  - id: default_c
    color: "#1b2631ff"
    min: "1"
    max: "2"
    text: 🟢

Heatmap - Month Track

contributionGraph
title: Pushups
graphType: month-track
dateRangeValue: 180
dateRangeType: LATEST_DAYS
startOfWeek: 0
showCellRuleIndicators: true
titleStyle:
  textAlign: left
  fontSize: 15px
  fontWeight: normal
dataSource:
  type: PAGE
  value: '"06 BJ/10 Daily"'
  dateField:
    type: PAGE_PROPERTY
    value: created
  countField:
    type: PAGE_PROPERTY
    value: Challenge2
fillTheScreen: true
enableMainContainerShadow: false
cellStyle:
  minWidth: 10px
  minHeight: 20px
cellStyleRules:
  - id: Ocean_a
    color: "#8dd1e2"
    min: 1
    max: "31"
  - id: Ocean_b
    color: "#63a1be"
    min: "31"
    max: "41"
  - id: Ocean_c
    color: "#376d93"
    min: "41"
    max: "51"
  - id: Ocean_d
    color: "#012f60"
    min: "51"
    max: 9999

Heatmap - Calendar

contributionGraph
title: Pushups
graphType: calendar
dateRangeValue: 180
dateRangeType: LATEST_DAYS
startOfWeek: "1"
showCellRuleIndicators: true
titleStyle:
  textAlign: left
  fontSize: 15px
  fontWeight: normal
dataSource:
  type: PAGE
  value: '"06 BJ/10 Daily"'
  dateField:
    type: PAGE_PROPERTY
    value: created
  countField:
    type: PAGE_PROPERTY
    value: Challenge2
fillTheScreen: true
enableMainContainerShadow: false
cellStyle: {}
cellStyleRules:
  - id: Ocean_a
    color: "#8dd1e2"
    min: 1
    max: "31"
  - id: Ocean_b
    color: "#63a1be"
    min: "31"
    max: "41"
  - id: Ocean_c
    color: "#376d93"
    min: "41"
    max: "51"
  - id: Ocean_d
    color: "#012f60"
    min: "51"
    max: 9999