# Heat pump or gas boiler

> A one-page A4 comparison for an energy advice service: six rows, each a small balance beam that dips towards the better option, with the figure on each pan. Figures, tilt and wording are editable, and the pan is one component.

- The design, as a .vd file: https://getv.design/library/heat-pump-vs-boiler.vd
- Its page: https://getv.design/library/heat-pump-vs-boiler

## How it was made

Drafted from this prompt:

> An A4 infographic comparing an air source heat pump with a gas boiler: upfront cost, running cost, carbon, lifespan, noise and grants, row by row.

Then refined:

- Shortened the carbon figures so they sit on one line in the pan, and moved the unit into the row's note.
- Faded the losing pan in each row so the winner reads at a glance, and left both full colour in the noise row.
- Gave each row more height and thickened the strings so the pans do not look cramped.

## Make it yours

- "Change the grant amount to the new figure."
- "Make the running cost row favour the heat pump on a heat pump tariff."
- "Swap the boiler for an oil boiler and update the numbers."

## The source

```vd
version 12
kind design
title "Heat pump or gas boiler"
$pale = #F7F7F2
$ink = #212529
$hp = #3A86FF
$boiler = #FB5607
$line = #D6D6CC
$m = 48
$cx = 491
$half = 140
$pitch = 121
$py = 24
$string = 26

font head = Teko
  fallback "system-ui, sans-serif"
  face asset=teko-500 weight=500
  face asset=teko-600 weight=600

font body = Rajdhani
  fallback "system-ui, sans-serif"
  face asset=rajdhani-500 weight=500
  face asset=rajdhani-600 weight=600

asset teko-500 = font/woff2 hash=sha256-52cf860d9a15016bfebdc24098debac767d33483676e760cc297b069b0b5808c bytes=7832 license=OFL
asset teko-600 = font/woff2 hash=sha256-29746d8e76bc6e2861e495aef21fe4fde482156e8adc97055b3790cebff9a88e bytes=7840 license=OFL
asset rajdhani-500 = font/woff2 hash=sha256-23afdb9b5b89b878fab04d80cc30bf41bb4f3f7e8be88e5f16a7cc7671cdb2dc bytes=15084 license=OFL
asset rajdhani-600 = font/woff2 hash=sha256-433a7007e4747a02a790167a6efa2625855f013970ba49b9b739a5d3db8b2601 bytes=15732 license=OFL

frame page x=0 y=0 w=794 h=1123 background=pale
  text title x=$m y=40 w=(100% - $m * 2) h=118 font=head size=56 weight=600 lineHeight=1.02 letterSpacing=-0.5 fill=ink
    "The heat pump wins three rows, the boiler two, and noise is a draw"
  text sub x=$m y=(@title.bottom + 8) w=620 h=46 font=body size=17 weight=500 lineHeight=1.3 fill=ink
    "Air source heat pump against gas boiler in a three bedroom home using 12,000 kWh of heat a year. In each row the beam dips towards the better option."
  rect key.hp x=$m y=(@sub.bottom + 14) w=18 h=18 fill=hp radius=3
  text key.hp.t x=(@key.hp.right + 8) y=(@key.hp.y - 3) w=170 h=24 font=body size=17 weight=600 fill=ink
    "Air source heat pump"
  rect key.boiler x=(@key.hp.t.right + 24) y=@key.hp.y w=18 h=18 fill=boiler radius=3
  text key.boiler.t x=(@key.boiler.right + 8) y=@key.hp.t.y w=170 h=24 font=body size=17 weight=600 fill=ink
    "Gas boiler"
  connector rule.0 x1=$m y1=(@key.hp.bottom + 16) x2=(100% - $m) y2=(@key.hp.bottom + 16) stroke=ink strokeWidth=2

  connector rule.1 x1=$m y1=(@rule.0.y + $pitch) x2=(100% - $m) y2=(@rule.0.y + $pitch) stroke=line strokeWidth=1
  text lab.1 x=$m y=(@rule.0.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Upfront cost"
  text ver.1 x=$m y=(@lab.1.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "Installed, before any grant. Boiler cheaper by £8,800"
  connector beam.1 x1=($cx - $half) y1=((@rule.0.y + $py + 4) + (-22)) x2=($cx + $half) y2=((@rule.0.y + $py + 4) + (22)) stroke=ink strokeWidth=5 cap=round
  vector post.1 x=($cx - 20) y=((@rule.0.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.1 x=($cx - 7) y=((@rule.0.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.1.hpa x1=($cx - $half) y1=((@rule.0.y + $py + 4) + (-22)) x2=(($cx - $half) - 52) y2=(((@rule.0.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  connector str.1.hpb x1=($cx - $half) y1=((@rule.0.y + $py + 4) + (-22)) x2=(($cx - $half) + 52) y2=(((@rule.0.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  instance tray.1.hp component=tray x=(($cx - $half) - 70) y=(((@rule.0.y + $py + 4) + (-22)) + $string)
    override tray.shape fill=hp opacity=0.55
    override tray.t
      "£12,000"
  connector str.1.boa x1=($cx + $half) y1=((@rule.0.y + $py + 4) + (22)) x2=(($cx + $half) - 52) y2=(((@rule.0.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  connector str.1.bob x1=($cx + $half) y1=((@rule.0.y + $py + 4) + (22)) x2=(($cx + $half) + 52) y2=(((@rule.0.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  instance tray.1.bo component=tray x=(($cx + $half) - 70) y=(((@rule.0.y + $py + 4) + (22)) + $string)
    override tray.shape fill=boiler
    override tray.t
      "£3,200"
  connector rule.2 x1=$m y1=(@rule.1.y + $pitch) x2=(100% - $m) y2=(@rule.1.y + $pitch) stroke=line strokeWidth=1
  text lab.2 x=$m y=(@rule.1.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Running cost"
  text ver.2 x=$m y=(@lab.2.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "Boiler cheaper by about £140 a year"
  connector beam.2 x1=($cx - $half) y1=((@rule.1.y + $py + 4) + (-8)) x2=($cx + $half) y2=((@rule.1.y + $py + 4) + (8)) stroke=ink strokeWidth=5 cap=round
  vector post.2 x=($cx - 20) y=((@rule.1.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.2 x=($cx - 7) y=((@rule.1.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.2.hpa x1=($cx - $half) y1=((@rule.1.y + $py + 4) + (-8)) x2=(($cx - $half) - 52) y2=(((@rule.1.y + $py + 4) + (-8)) + $string) stroke=ink strokeWidth=2
  connector str.2.hpb x1=($cx - $half) y1=((@rule.1.y + $py + 4) + (-8)) x2=(($cx - $half) + 52) y2=(((@rule.1.y + $py + 4) + (-8)) + $string) stroke=ink strokeWidth=2
  instance tray.2.hp component=tray x=(($cx - $half) - 70) y=(((@rule.1.y + $py + 4) + (-8)) + $string)
    override tray.shape fill=hp opacity=0.55
    override tray.t
      "£930 a year"
  connector str.2.boa x1=($cx + $half) y1=((@rule.1.y + $py + 4) + (8)) x2=(($cx + $half) - 52) y2=(((@rule.1.y + $py + 4) + (8)) + $string) stroke=ink strokeWidth=2
  connector str.2.bob x1=($cx + $half) y1=((@rule.1.y + $py + 4) + (8)) x2=(($cx + $half) + 52) y2=(((@rule.1.y + $py + 4) + (8)) + $string) stroke=ink strokeWidth=2
  instance tray.2.bo component=tray x=(($cx + $half) - 70) y=(((@rule.1.y + $py + 4) + (8)) + $string)
    override tray.shape fill=boiler
    override tray.t
      "£790 a year"
  connector rule.3 x1=$m y1=(@rule.2.y + $pitch) x2=(100% - $m) y2=(@rule.2.y + $pitch) stroke=line strokeWidth=1
  text lab.3 x=$m y=(@rule.2.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Carbon"
  text ver.3 x=$m y=(@lab.3.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "Each year the heat pump emits a quarter as much"
  connector beam.3 x1=($cx - $half) y1=((@rule.2.y + $py + 4) + (22)) x2=($cx + $half) y2=((@rule.2.y + $py + 4) + (-22)) stroke=ink strokeWidth=5 cap=round
  vector post.3 x=($cx - 20) y=((@rule.2.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.3 x=($cx - 7) y=((@rule.2.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.3.hpa x1=($cx - $half) y1=((@rule.2.y + $py + 4) + (22)) x2=(($cx - $half) - 52) y2=(((@rule.2.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  connector str.3.hpb x1=($cx - $half) y1=((@rule.2.y + $py + 4) + (22)) x2=(($cx - $half) + 52) y2=(((@rule.2.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  instance tray.3.hp component=tray x=(($cx - $half) - 70) y=(((@rule.2.y + $py + 4) + (22)) + $string)
    override tray.shape fill=hp
    override tray.t
      "600 kg"
  connector str.3.boa x1=($cx + $half) y1=((@rule.2.y + $py + 4) + (-22)) x2=(($cx + $half) - 52) y2=(((@rule.2.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  connector str.3.bob x1=($cx + $half) y1=((@rule.2.y + $py + 4) + (-22)) x2=(($cx + $half) + 52) y2=(((@rule.2.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  instance tray.3.bo component=tray x=(($cx + $half) - 70) y=(((@rule.2.y + $py + 4) + (-22)) + $string)
    override tray.shape fill=boiler opacity=0.55
    override tray.t
      "2,400 kg"
  connector rule.4 x1=$m y1=(@rule.3.y + $pitch) x2=(100% - $m) y2=(@rule.3.y + $pitch) stroke=line strokeWidth=1
  text lab.4 x=$m y=(@rule.3.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Lifespan"
  text ver.4 x=$m y=(@lab.4.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "The heat pump lasts about 8 years longer"
  connector beam.4 x1=($cx - $half) y1=((@rule.3.y + $py + 4) + (16)) x2=($cx + $half) y2=((@rule.3.y + $py + 4) + (-16)) stroke=ink strokeWidth=5 cap=round
  vector post.4 x=($cx - 20) y=((@rule.3.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.4 x=($cx - 7) y=((@rule.3.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.4.hpa x1=($cx - $half) y1=((@rule.3.y + $py + 4) + (16)) x2=(($cx - $half) - 52) y2=(((@rule.3.y + $py + 4) + (16)) + $string) stroke=ink strokeWidth=2
  connector str.4.hpb x1=($cx - $half) y1=((@rule.3.y + $py + 4) + (16)) x2=(($cx - $half) + 52) y2=(((@rule.3.y + $py + 4) + (16)) + $string) stroke=ink strokeWidth=2
  instance tray.4.hp component=tray x=(($cx - $half) - 70) y=(((@rule.3.y + $py + 4) + (16)) + $string)
    override tray.shape fill=hp
    override tray.t
      "20 years"
  connector str.4.boa x1=($cx + $half) y1=((@rule.3.y + $py + 4) + (-16)) x2=(($cx + $half) - 52) y2=(((@rule.3.y + $py + 4) + (-16)) + $string) stroke=ink strokeWidth=2
  connector str.4.bob x1=($cx + $half) y1=((@rule.3.y + $py + 4) + (-16)) x2=(($cx + $half) + 52) y2=(((@rule.3.y + $py + 4) + (-16)) + $string) stroke=ink strokeWidth=2
  instance tray.4.bo component=tray x=(($cx + $half) - 70) y=(((@rule.3.y + $py + 4) + (-16)) + $string)
    override tray.shape fill=boiler opacity=0.55
    override tray.t
      "12 years"
  connector rule.5 x1=$m y1=(@rule.4.y + $pitch) x2=(100% - $m) y2=(@rule.4.y + $pitch) stroke=line strokeWidth=1
  text lab.5 x=$m y=(@rule.4.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Noise"
  text ver.5 x=$m y=(@lab.5.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "A draw: both about 45 dB at 1 metre"
  connector beam.5 x1=($cx - $half) y1=((@rule.4.y + $py + 4) + (0)) x2=($cx + $half) y2=((@rule.4.y + $py + 4) + (0)) stroke=ink strokeWidth=5 cap=round
  vector post.5 x=($cx - 20) y=((@rule.4.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.5 x=($cx - 7) y=((@rule.4.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.5.hpa x1=($cx - $half) y1=((@rule.4.y + $py + 4) + (0)) x2=(($cx - $half) - 52) y2=(((@rule.4.y + $py + 4) + (0)) + $string) stroke=ink strokeWidth=2
  connector str.5.hpb x1=($cx - $half) y1=((@rule.4.y + $py + 4) + (0)) x2=(($cx - $half) + 52) y2=(((@rule.4.y + $py + 4) + (0)) + $string) stroke=ink strokeWidth=2
  instance tray.5.hp component=tray x=(($cx - $half) - 70) y=(((@rule.4.y + $py + 4) + (0)) + $string)
    override tray.shape fill=hp
    override tray.t
      "45 dB"
  connector str.5.boa x1=($cx + $half) y1=((@rule.4.y + $py + 4) + (0)) x2=(($cx + $half) - 52) y2=(((@rule.4.y + $py + 4) + (0)) + $string) stroke=ink strokeWidth=2
  connector str.5.bob x1=($cx + $half) y1=((@rule.4.y + $py + 4) + (0)) x2=(($cx + $half) + 52) y2=(((@rule.4.y + $py + 4) + (0)) + $string) stroke=ink strokeWidth=2
  instance tray.5.bo component=tray x=(($cx + $half) - 70) y=(((@rule.4.y + $py + 4) + (0)) + $string)
    override tray.shape fill=boiler
    override tray.t
      "45 dB"
  connector rule.6 x1=$m y1=(@rule.5.y + $pitch) x2=(100% - $m) y2=(@rule.5.y + $pitch) stroke=line strokeWidth=1
  text lab.6 x=$m y=(@rule.5.y + 12) w=170 h=36 font=head size=34 weight=600 lineHeight=1 fill=ink
    "Grants"
  text ver.6 x=$m y=(@lab.6.bottom + 4) w=170 h=50 font=body size=15 weight=500 lineHeight=1.25 fill=ink
    "Takes the heat pump to £4,500 installed"
  connector beam.6 x1=($cx - $half) y1=((@rule.5.y + $py + 4) + (22)) x2=($cx + $half) y2=((@rule.5.y + $py + 4) + (-22)) stroke=ink strokeWidth=5 cap=round
  vector post.6 x=($cx - 20) y=((@rule.5.y + $py + 4)) w=40 h=52 view="0 0 40 52" d="M20 0L40 52H0Z" fill=ink
  ellipse pivot.6 x=($cx - 7) y=((@rule.5.y + $py + 4) - 7) w=14 h=14 fill=pale stroke=ink strokeWidth=3
  connector str.6.hpa x1=($cx - $half) y1=((@rule.5.y + $py + 4) + (22)) x2=(($cx - $half) - 52) y2=(((@rule.5.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  connector str.6.hpb x1=($cx - $half) y1=((@rule.5.y + $py + 4) + (22)) x2=(($cx - $half) + 52) y2=(((@rule.5.y + $py + 4) + (22)) + $string) stroke=ink strokeWidth=2
  instance tray.6.hp component=tray x=(($cx - $half) - 70) y=(((@rule.5.y + $py + 4) + (22)) + $string)
    override tray.shape fill=hp
    override tray.t
      "£7,500"
  connector str.6.boa x1=($cx + $half) y1=((@rule.5.y + $py + 4) + (-22)) x2=(($cx + $half) - 52) y2=(((@rule.5.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  connector str.6.bob x1=($cx + $half) y1=((@rule.5.y + $py + 4) + (-22)) x2=(($cx + $half) + 52) y2=(((@rule.5.y + $py + 4) + (-22)) + $string) stroke=ink strokeWidth=2
  instance tray.6.bo component=tray x=(($cx + $half) - 70) y=(((@rule.5.y + $py + 4) + (-22)) + $string)
    override tray.shape fill=boiler opacity=0.55
    override tray.t
      "£0"
  connector rule.7 x1=$m y1=(@rule.6.y + 6) x2=(100% - $m) y2=(@rule.6.y + 6) stroke=ink strokeWidth=2
  text foot.org x=$m y=(@rule.7.y + 12) w=(100% - $m * 2) h=28 font=head size=26 weight=500 lineHeight=1 fill=ink
    "Warmer Homes Wessex, the free advice line that took 6,200 calls last winter"
  text foot.note x=$m y=(@foot.org.bottom + 6) w=(100% - $m * 2) h=56 font=body size=13 weight=500 lineHeight=1.3 fill=ink
    "Figures are typical, not quotes. Heat pump efficiency 3.5. Gas 5.9p and electricity 27p a kWh, boiler 90% efficient. Carbon from 0.17 kg per kWh of grid electricity and 0.183 kg per kWh of gas. Grant is the Boiler Upgrade Scheme in England and Wales: check the current amount before you book."

frame tray x=0 y=1300 w=140 h=44 component
  vector tray.shape x=0 y=0 w=140 h=42 view="0 0 140 42" d="M0 0H140C140 26 112 42 70 42C28 42 0 26 0 0Z" fill=hp
  text tray.t x=0 y=2 w=140 h=32 font=head size=28 weight=600 lineHeight=1 align=center valign=middle fill=ink
    "£0"
```
