Slope between two years
One line per category from an earlier year to now, labelled at both ends. Rises are solid, falls are dashed, and the biggest move takes the accent.
What people borrow
Share of loans at Marlow Street Library. Audiobooks nearly tripled.
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-chart-slope-two-years">
<figure class="sl">
<figcaption><h3 class="ttl">What people borrow</h3><p class="sub">Share of loans at Marlow Street Library. Audiobooks nearly tripled.</p></figcaption>
<div class="pl" role="img" aria-label="Share of loans by format in 2019 and 2026. Print books fell from 58% to 41%. E-books rose from 22% to 30%. Audiobooks rose from 8% to 22%. DVDs and CDs fell from 12% to 7%.">
<p class="yr" aria-hidden="true"><span><b>2019</b><b>2026</b></span></p>
<div class="cols" aria-hidden="true">
<div class="side lft"><span class="lb" style="--y:6.45%"><span class="nm">Print books</span><b>58%</b></span><span class="lb" style="--y:64.52%"><span class="nm">E-books</span><b>22%</b></span><span class="lb on" style="--y:87.1%"><span class="nm">Audiobooks</span><b>8%</b></span><span class="lb" style="--y:80.65%"><span class="nm">DVDs and CDs</span><b>12%</b></span></div>
<div class="mid">
<svg viewBox="0 0 100 100" preserveAspectRatio="none"><line class="dn" x1="0" y1="6.45" x2="100" y2="33.87" vector-effect="non-scaling-stroke"/><line class="up" x1="0" y1="64.52" x2="100" y2="51.61" vector-effect="non-scaling-stroke"/><line class="up on" x1="0" y1="87.1" x2="100" y2="64.52" vector-effect="non-scaling-stroke"/><line class="dn" x1="0" y1="80.65" x2="100" y2="88.71" vector-effect="non-scaling-stroke"/></svg>
<i class="pt dn" style="--x:0%;--y:6.45%"></i><i class="pt dn" style="--x:100%;--y:33.87%"></i><i class="pt up" style="--x:0%;--y:64.52%"></i><i class="pt up" style="--x:100%;--y:51.61%"></i><i class="pt up on" style="--x:0%;--y:87.1%"></i><i class="pt up on" style="--x:100%;--y:64.52%"></i><i class="pt dn" style="--x:0%;--y:80.65%"></i><i class="pt dn" style="--x:100%;--y:88.71%"></i>
</div>
<div class="side rgt"><span class="lb" style="--y:33.87%"><b>41%</b><span class="nm">Print books</span></span><span class="lb" style="--y:51.61%"><b>30%</b><span class="nm">E-books</span></span><span class="lb on" style="--y:64.52%"><b>22%</b><span class="nm">Audiobooks</span></span><span class="lb" style="--y:88.71%"><b>7%</b><span class="nm">DVDs and CDs</span></span></div>
</div>
</div>
<p class="key" aria-hidden="true"><span><i class="ks"></i>Rose</span><span><i class="kd"></i>Fell</span></p>
</figure>
</div>
.ukc-chart-slope-two-years { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-chart-slope-two-years *, .ukc-chart-slope-two-years *::before, .ukc-chart-slope-two-years *::after { box-sizing: border-box; }
.ukc-chart-slope-two-years :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-chart-slope-two-years :where(ul, ol) { padding: 0; list-style: none; }
.ukc-chart-slope-two-years :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-chart-slope-two-years :where(a) { color: inherit; }
.ukc-chart-slope-two-years svg { flex: none; }
.ukc-chart-slope-two-years { container-type: inline-size; inline-size: 100%; }
.ukc-chart-slope-two-years .ttl { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ukc-chart-slope-two-years .sub { margin-top: 2px; font-size: 13px; color: var(--uk-muted); }
.ukc-chart-slope-two-years .sl { max-width: 500px; --lw: 44px; --rw: 124px; }
.ukc-chart-slope-two-years .yr, .ukc-chart-slope-two-years .cols { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); }
.ukc-chart-slope-two-years .yr { margin-top: 16px; padding-bottom: 8px; border-bottom: var(--uk-border-width) solid var(--uk-line); font: 11px/1.3 var(--uk-font-mono, ui-monospace, monospace); letter-spacing: 0.06em; color: var(--uk-muted); }
.ukc-chart-slope-two-years .yr span { grid-column: 2; display: flex; justify-content: space-between; margin: 0 -14px; }
.ukc-chart-slope-two-years .yr b { font-weight: 500; }
.ukc-chart-slope-two-years .cols { height: 268px; margin-top: 10px; }
.ukc-chart-slope-two-years .side, .ukc-chart-slope-two-years .mid { position: relative; }
.ukc-chart-slope-two-years .lb { position: absolute; top: var(--y); display: flex; gap: 6px; align-items: baseline; transform: translateY(-50%); font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--uk-muted); }
.ukc-chart-slope-two-years .lft .lb { right: 12px; }
.ukc-chart-slope-two-years .rgt .lb { left: 12px; }
.ukc-chart-slope-two-years .lft .nm { display: none; }
.ukc-chart-slope-two-years .lb b { font: 500 12px/1.2 var(--uk-font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--uk-ink); }
.ukc-chart-slope-two-years .lb.on { color: var(--uk-ink); font-weight: 600; }
.ukc-chart-slope-two-years .mid svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ukc-chart-slope-two-years .mid line { stroke: color-mix(in srgb, var(--uk-ink) 46%, var(--uk-paper)); stroke-width: 1.75; stroke-linecap: round; }
.ukc-chart-slope-two-years .mid .dn { stroke-dasharray: 5 4; }
.ukc-chart-slope-two-years .mid line.on { stroke: var(--uk-accent); stroke-width: 2.5; }
.ukc-chart-slope-two-years .pt { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid color-mix(in srgb, var(--uk-ink) 46%, var(--uk-paper)); border-radius: 999px; background: var(--uk-paper); }
.ukc-chart-slope-two-years .pt.up { background: color-mix(in srgb, var(--uk-ink) 46%, var(--uk-paper)); }
.ukc-chart-slope-two-years .pt.on { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-color: var(--uk-accent); background: var(--uk-accent); }
.ukc-chart-slope-two-years .key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; padding-top: 10px; border-top: var(--uk-border-width) solid var(--uk-line); font-size: 12px; color: var(--uk-muted); }
.ukc-chart-slope-two-years .key span { display: inline-flex; align-items: center; gap: 8px; }
.ukc-chart-slope-two-years .key i { width: 22px; height: 0; border-top: 2px solid color-mix(in srgb, var(--uk-ink) 46%, var(--uk-paper)); }
.ukc-chart-slope-two-years .key .kd { border-top-style: dashed; }
@container (min-width: 440px) {
.ukc-chart-slope-two-years .sl { --lw: 136px; --rw: 136px; }
.ukc-chart-slope-two-years .lft .nm { display: inline; }
}
More charts and kpis
All 24From the till to what is left
Dapple Bakery, October. Of $38,400 taken, $6,200 stayed after costs. Wages are the biggest bite.
- Counter sales$31,600
- Wholesale orders+$6,800
- Flour, butter, fillings−$11,200
- Wages−$14,600
- Rent and power−$4,900
- Card fees and waste−$1,500
- Left over$6,200
Walk-in waits by clinic
Average wait each day this week, Monday to Sunday. Every panel runs 0 to 50 minutes and the dashed line is the 30 minute target.
-
Harbour Road
24 min at worst
Under target all week
-
Millbrook
38 min at worst
Over target 3 days
-
Station Square
18 min at worst
Under target all week
-
Eastfield
29 min at worst
Under target all week
-
Quarry Lane
47 min at worst
Over target 5 days
-
Northgate
26 min at worst
Under target all week
-
Rainwater tank 2 · Fernhill Nursery
68% full
8,160 of 12,000 litres
About 19 days of watering at this week's rate.
Order a delivery under 25%
Kettle and Crank
Coffee cart · Pier 4 market
· 7 am to 3 pmWhat sold on Saturday Item Qty Amount Flat white 86 $387.00 Filter coffee 54 $189.00 Oat latte 41 $205.00 Cinnamon bun 37 $148.00 Everything else 22 $82.50 Total 240 $1,011.50 Last Saturday$893.50
Better by$118.00
Items by hour
78910111212Busiest hour 10 am · 52 items
Thank you. Back on the pier Sunday.
Studio B · room noise overnight
58dB
Loudest moment, 3:12 am. A freight train.
- Usual level
- 23 dB
- Over the line
- 1 time
Hollis Street Food Pantry · October 2026
1,946*
households collected groceries
Up, 212 more than last October
* A household counts once a month, however many times it visits. Home deliveries are included.