# Defect fishbone diagram

> A fishbone diagram for porosity in aluminium housings on line 3 at Brayford Castings, drawn as a fish skeleton with the defect at the head, six category ribs and three causes on each. Every cause is one component and every rib is a connector bound to its label, so a rib or cause can be reworded or moved without redrawing the bones.

- The design, as a .vd file: https://getv.design/library/defect-fishbone.vd
- Its page: https://getv.design/library/defect-fishbone

## How it was made

Drafted from this prompt:

> A fishbone diagram for porosity in aluminium castings on line 3 at Brayford Castings. Six categories, three causes on each, the defect at the head.

Then refined:

- Ringed the three most likely causes in orange and made the key beside the title match them.
- Enlarged the cause and category text so it reads across a meeting room.
- Shortened several causes so each sits on its own line clear of the rib.
- Moved the top row of causes down so the ringed ones do not crowd the category labels.

## Make it yours

- "Add a cause under measurement."
- "Change the defect to shrinkage and the figure to 4%."
- "Ring a different set of likely causes."

## The source

```vd
version 12
kind design
title "Porosity fishbone"
$foundry = #37474F
$molten = #FF6F00
$chalk = #FAFAFA
$steel = #546E7A
$m = 60
$spine = 590
$dx = 190
$dy = 381
$cw = 290
$sx1 = 520
$sx2 = 920
$sx3 = 1320
$headx = 1400

font head = "Oswald"
  fallback "system-ui, sans-serif"
  face asset=oswald-600 weight=600

font body = "Roboto Condensed"
  fallback "system-ui, sans-serif"
  face asset=roboto-condensed-400 weight=400
  face asset=roboto-condensed-700 weight=700

asset oswald-600 = font/woff2 hash=sha256-f6cb541f4d9794b86145c9c3e7d778ffb78c92f8180c577e245238991503da6f bytes=12740 license=OFL
asset roboto-condensed-400 = font/woff2 hash=sha256-543c03fff71d1b39590af102e0852c2dbce46f4dbe4faaebafbef6edc82e78f5 bytes=20820 license=OFL
asset roboto-condensed-700 = font/woff2 hash=sha256-ab74f0c2d7ec37e44e017b9586675dd00c519591207dc3bbc8e003c5628dc9b7 bytes=21128 license=OFL

frame page x=0 y=0 w=1920 h=1080 background=chalk
  text title x=$m y=36 w=1250 h=66 font=head size=52 weight=600 letterSpacing=-0.5 fill=foundry
    "Six places to look for the porosity on line 3"
  text sub x=$m y=(@title.bottom + 4) w=1250 h=32 font=body size=24 fill=steel
    "Brayford Castings, aluminium housings, root-cause meeting"
  text key x=1480 y=48 w=380 h=60 font=body size=22 lineHeight=1.25 fill=foundry
    "Orange rings mark the three causes the team rates most likely, to test first."
  rect key.ring x=1400 y=62 w=60 h=30 radius=15 fill=none stroke=molten strokeWidth=4
  connector spine x1=90 y1=$spine x2=@head.x y2=$spine stroke=foundry strokeWidth=9 cap=round
  vector tail x=48 y=($spine - 60) w=60 h=120 view="0 0 60 120" d="M60 60 L0 0 Q22 60 0 120 Z" fill=foundry
  vector head x=$headx y=($spine - 150) w=470 h=300 view="0 0 470 300" d="M0 0 C170 0 370 50 470 150 C370 250 170 300 0 300 Z" fill=foundry
  vector head.gill x=(@head.x + 36) y=(@head.y + 30) w=60 h=240 view="0 0 60 240" d="M40 0 Q-14 120 40 240" fill=none stroke=steel strokeWidth=5 cap=round
  ellipse head.eye x=(@head.x + 372) y=($spine - 66) w=26 h=26 fill=molten
  text head.pct x=(@head.x + 120) y=($spine - 128) w=250 h=116 font=head size=104 weight=600 lineHeight=1.1 fill=molten
    "6%"
  text head.what x=@head.pct.x y=(@head.pct.bottom - 4) w=250 h=38 font=body size=30 weight=700 fill=chalk
    "of housings porous"
  text head.where x=@head.pct.x y=(@head.what.bottom + 2) w=250 h=32 font=body size=24 fill=chalk
    "Line 3, found at X-ray"

  rect machine.pill x=($sx1 - $dx - 110) y=165 w=220 h=50 radius=25 fill=foundry
  text machine.label x=@machine.pill.x y=@machine.pill.y w=@machine.pill.w h=@machine.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "Machine"
  connector machine.rib x1=@machine.pill.cx y1=@machine.pill.bottom x2=$sx1 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance machine.c1 component=cause x=($sx1 - $dx * 0.78 - $cw) y=(($spine - $dy * 0.78) - 40)
    override cause.t
      "Die vent blocked"
  rect machine.c1.ring x=(@machine.c1.x - 10) y=(@machine.c1.y - 6) w=(16*11.4 + 20) h=48 radius=24 fill=none stroke=molten strokeWidth=4
  instance machine.c2 component=cause x=($sx1 - $dx * 0.55 - $cw) y=(($spine - $dy * 0.55) - 40)
    override cause.t
      "Shot speed set too high"
  instance machine.c3 component=cause x=($sx1 - $dx * 0.3 - $cw) y=(($spine - $dy * 0.3) - 40)
    override cause.t
      "Degassing rotor worn"
  rect method.pill x=($sx2 - $dx - 110) y=165 w=220 h=50 radius=25 fill=foundry
  text method.label x=@method.pill.x y=@method.pill.y w=@method.pill.w h=@method.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "Method"
  connector method.rib x1=@method.pill.cx y1=@method.pill.bottom x2=$sx2 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance method.c1 component=cause x=($sx2 - $dx * 0.78 - $cw) y=(($spine - $dy * 0.78) - 40)
    override cause.t
      "Melt held above 740 °C"
  rect method.c1.ring x=(@method.c1.x - 10) y=(@method.c1.y - 6) w=(22*11.4 + 20) h=48 radius=24 fill=none stroke=molten strokeWidth=4
  instance method.c2 component=cause x=($sx2 - $dx * 0.55 - $cw) y=(($spine - $dy * 0.55) - 40)
    override cause.t
      "Ladle skimmed late"
  instance method.c3 component=cause x=($sx2 - $dx * 0.3 - $cw) y=(($spine - $dy * 0.3) - 40)
    override cause.t
      "Die spray left wet"
  rect material.pill x=($sx3 - $dx - 110) y=165 w=220 h=50 radius=25 fill=foundry
  text material.label x=@material.pill.x y=@material.pill.y w=@material.pill.w h=@material.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "Material"
  connector material.rib x1=@material.pill.cx y1=@material.pill.bottom x2=$sx3 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance material.c1 component=cause x=($sx3 - $dx * 0.78 - $cw) y=(($spine - $dy * 0.78) - 40)
    override cause.t
      "Damp ingot from stores"
  rect material.c1.ring x=(@material.c1.x - 10) y=(@material.c1.y - 6) w=(22*11.4 + 20) h=48 radius=24 fill=none stroke=molten strokeWidth=4
  instance material.c2 component=cause x=($sx3 - $dx * 0.55 - $cw) y=(($spine - $dy * 0.55) - 40)
    override cause.t
      "Returns at 40% of melt"
  instance material.c3 component=cause x=($sx3 - $dx * 0.3 - $cw) y=(($spine - $dy * 0.3) - 40)
    override cause.t
      "Dirty flux batch"
  rect people.pill x=($sx1 - $dx - 110) y=($spine + $dy - 50) w=220 h=50 radius=25 fill=foundry
  text people.label x=@people.pill.x y=@people.pill.y w=@people.pill.w h=@people.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "People"
  connector people.rib x1=@people.pill.cx y1=@people.pill.y x2=$sx1 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance people.c1 component=cause x=($sx1 - $dx * 0.78 - $cw) y=(($spine + $dy * 0.78) - 40)
    override cause.t
      "Skim skipped on nights"
  instance people.c2 component=cause x=($sx1 - $dx * 0.55 - $cw) y=(($spine + $dy * 0.55) - 40)
    override cause.t
      "New starter on die spray"
  instance people.c3 component=cause x=($sx1 - $dx * 0.3 - $cw) y=(($spine + $dy * 0.3) - 40)
    override cause.t
      "Thin handover notes"
  rect measure.pill x=($sx2 - $dx - 110) y=($spine + $dy - 50) w=220 h=50 radius=25 fill=foundry
  text measure.label x=@measure.pill.x y=@measure.pill.y w=@measure.pill.w h=@measure.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "Measurement"
  connector measure.rib x1=@measure.pill.cx y1=@measure.pill.y x2=$sx2 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance measure.c1 component=cause x=($sx2 - $dx * 0.78 - $cw) y=(($spine + $dy * 0.78) - 40)
    override cause.t
      "Gas probe overdue"
  instance measure.c2 component=cause x=($sx2 - $dx * 0.55 - $cw) y=(($spine + $dy * 0.55) - 40)
    override cause.t
      "X-ray sampling 1 in 50"
  instance measure.c3 component=cause x=($sx2 - $dx * 0.3 - $cw) y=(($spine + $dy * 0.3) - 40)
    override cause.t
      "Melt read at furnace"
  rect environ.pill x=($sx3 - $dx - 110) y=($spine + $dy - 50) w=220 h=50 radius=25 fill=foundry
  text environ.label x=@environ.pill.x y=@environ.pill.y w=@environ.pill.w h=@environ.pill.h font=head size=30 weight=600 align=center valign=middle fill=chalk
    "Environment"
  connector environ.rib x1=@environ.pill.cx y1=@environ.pill.y x2=$sx3 y2=$spine stroke=steel strokeWidth=5 cap=round
  instance environ.c1 component=cause x=($sx3 - $dx * 0.78 - $cw) y=(($spine + $dy * 0.78) - 40)
    override cause.t
      "Humid afternoons"
  instance environ.c2 component=cause x=($sx3 - $dx * 0.55 - $cw) y=(($spine + $dy * 0.55) - 40)
    override cause.t
      "Wet floor beside the die"
  instance environ.c3 component=cause x=($sx3 - $dx * 0.3 - $cw) y=(($spine + $dy * 0.3) - 40)
    override cause.t
      "Draught from door 3"

frame cause x=0 y=1240 w=$cw h=44 component
  text cause.t x=0 y=0 w=($cw - 30) h=34 font=body size=26 valign=bottom fill=foundry
    "Cause"
  connector cause.ln x1=0 y1=40 x2=$cw y2=40 stroke=steel strokeWidth=3 cap=round
```
