# Pareto chart

> A one-page 1920 × 1080 Pareto chart for a plastics moulding shop: seven reasons for rejected parts as descending bars with a cumulative line and a dashed 80% mark. The bars and the cumulative line are two charts drawn from the same list of values, so changing a count redraws them; the title, callout and percentage scale are plain text.

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

## How it was made

Drafted from this prompt:

> A Pareto chart for Sedgley Plastics of reasons for rejected parts in a month, 1,860 total. Seven reasons, bars in descending order and a cumulative line that passes 80% after the third.

Then refined:

- Moved the counts into the bars and set them in bold so the line no longer runs through the first number.
- Replaced the side panel with a large 81% in the empty space under the line.
- Coloured the top three bars teal and the rest grey, and put the percentage scale on the right.

## Make it yours

- "Make a Pareto chart template for late deliveries instead of rejected parts."
- "Change the counts to my own and keep the cumulative line."
- "Colour the top two bars and set the cut off at 70%."

## The source

```vd
version 12
kind design
title "Pareto chart"
$plant = #2F3E46
$paper = #F6F6F3
$teal = #2A9D8F
$orange = #E76F51
$mute = #B9C2C4
$m = 72
$cx = 52
$cy = 250
$cw = 1700
$ch = 780

font head = "Electrolize"
  fallback "sans-serif"
  face asset=electrolize-400 weight=400

font body = "Anonymous Pro"
  fallback "monospace"
  face asset=anonymous-pro-400 weight=400
  face asset=anonymous-pro-700 weight=700

asset electrolize-400 = font/woff2 hash=sha256-821b2ac55948ff3d568ec4b472b2c241cc41fa52df6a9484076f30ad92a09636 bytes=16684 license=OFL
asset anonymous-pro-400 = font/woff2 hash=sha256-148b358d5c6a32ff44aa901fdd583519210675846edb6ccf8913a402054196a0 bytes=17528 license=OFL
asset anonymous-pro-700 = font/woff2 hash=sha256-375e14fc0e64a2339788b0e6cf9a7b2ac9eef20314cfab80373eded4708f7dfc bytes=16180 license=OFL

frame page x=0 y=0 w=1920 h=1080 background=paper
  text page.title x=$m y=48 w=1240 h=140 font=head size=60 lineHeight=1.12 letterSpacing=-0.5 fill=plant
    "Three causes make up 81% of Sedgley's rejected parts"
  text page.sub x=$m y=(@page.title.bottom + 6) w=1240 h=34 font=body size=26 fill=plant
    "Sedgley Plastics, Wolverhampton: 1,860 rejects in October 2026, seven causes"

  chart page.chart x=$cx y=$cy w=$cw h=$ch kind=column labels="Short shots",Flash,"Sink marks","Burn marks",Warpage,Splay,Contamination axis=none font=body size=24 fill=plant gap=34 legend=none min=0 max=1860 plot=0.02,0.04,0.93,0.82
    series page.chart.count name="Rejects" values=642,497,369,142,98,71,41 fills=teal,teal,teal,mute,mute,mute,mute
  chart page.line x=$cx y=$cy w=$cw h=$ch kind=line labels="Short shots",Flash,"Sink marks","Burn marks",Warpage,Splay,Contamination axis=none font=body size=24 fill=plant legend=none min=0 max=1860 plot=0.02,0.04,0.93,0.82 markers strokeWidth=6
    series page.line.cum name="Cumulative" values=642,1139,1508,1650,1748,1819,1860 fill=orange marker=circle markerSize=12 width=6
  connector page.eighty x1=52 y1=398.0 x2=1752 y2=398.0 stroke=orange strokeWidth=2.5 dash="10 8"
  text page.ax.0 x=1766 y=(990.0-14) w=110 h=28 font=body size=22 fill=plant
    "0%"
  text page.ax.20 x=1766 y=(842.0-14) w=110 h=28 font=body size=22 fill=plant
    "20%"
  text page.ax.40 x=1766 y=(694.0-14) w=110 h=28 font=body size=22 fill=plant
    "40%"
  text page.ax.60 x=1766 y=(546.0-14) w=110 h=28 font=body size=22 fill=plant
    "60%"
  text page.ax.80 x=1766 y=(398.0-14) w=110 h=28 font=body size=22 weight=700 fill=orange
    "80%"
  text page.ax.100 x=1766 y=(250.0-14) w=110 h=28 font=body size=22 fill=plant
    "100%"
  text page.n.0 x=93.4 y=950 w=160 h=36 font=body size=28 weight=700 align=center fill=paper
    "642"
  text page.n.1 x=336.3 y=950 w=160 h=36 font=body size=28 weight=700 align=center fill=paper
    "497"
  text page.n.2 x=579.1 y=950 w=160 h=36 font=body size=28 weight=700 align=center fill=paper
    "369"
  text page.n.3 x=822.0 y=895.5 w=160 h=36 font=body size=28 weight=700 align=center fill=plant
    "142"
  text page.n.4 x=1064.9 y=913.0 w=160 h=36 font=body size=28 weight=700 align=center fill=plant
    "98"
  text page.n.5 x=1307.7 y=923.8 w=160 h=36 font=body size=28 weight=700 align=center fill=plant
    "71"
  text page.n.6 x=1550.6 y=935.7 w=160 h=36 font=body size=28 weight=700 align=center fill=plant
    "41"
  text page.vital x=110 y=290 w=560 h=100 font=body size=28 fill=plant
    "The vital few: "
    "short shots, flash and sink marks" weight=700
    ", 1,508 of 1,860 parts"
  text page.big x=800 y=520 w=430 h=220 font=head size=210 lineHeight=1 letterSpacing=-4 fill=orange
    "81%"
  text page.big.l x=1250 y=600 w=380 h=130 font=body size=26 fill=plant
    "of rejects come from the first three causes. The other four add 352 parts."
```
