Donut with center total
A gapped donut with the total in the middle and a small table of hours and shares beside it. For a part-to-whole split of up to five parts.
Hours by job type
October, all crews
| Type | Hours | Share |
|---|---|---|
| Framing | 248 | 41% |
| Finishing | 176 | 29% |
| Roofing | 118 | 19% |
| Other | 70 | 11% |
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-donut-total">
<figure class="dn">
<figcaption><h3 class="ttl">Hours by job type</h3><p class="sub">October, all crews</p></figcaption>
<div class="bd">
<div class="dial">
<svg viewBox="0 0 120 120" role="img" aria-label="612 hours in October. Framing took the most, 248 hours or 41%, then finishing, roofing and other work."><g transform="rotate(-90 60 60)"><circle class="c1" cx="60" cy="60" r="48" pathLength="100" stroke-dasharray="39.72 60.28" stroke-dashoffset="0"/><circle class="c2" cx="60" cy="60" r="48" pathLength="100" stroke-dasharray="27.96 72.04" stroke-dashoffset="-40.52"/><circle class="c3" cx="60" cy="60" r="48" pathLength="100" stroke-dasharray="18.48 81.52" stroke-dashoffset="-69.28"/><circle class="c4" cx="60" cy="60" r="48" pathLength="100" stroke-dasharray="10.64 89.36" stroke-dashoffset="-88.56"/></g></svg>
<p class="mid" aria-hidden="true"><b>612</b><span>hours</span></p>
</div>
<table class="lgd">
<thead><tr><th scope="col">Type</th><th scope="col">Hours</th><th scope="col">Share</th></tr></thead>
<tbody>
<tr class="on"><th scope="row"><i class="c1"></i>Framing</th><td>248</td><td>41%</td></tr>
<tr><th scope="row"><i class="c2"></i>Finishing</th><td>176</td><td>29%</td></tr>
<tr><th scope="row"><i class="c3"></i>Roofing</th><td>118</td><td>19%</td></tr>
<tr><th scope="row"><i class="c4"></i>Other</th><td>70</td><td>11%</td></tr>
</tbody>
</table>
</div>
</figure>
</div>
.ukc-chart-donut-total { 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-donut-total *, .ukc-chart-donut-total *::before, .ukc-chart-donut-total *::after { box-sizing: border-box; }
.ukc-chart-donut-total :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-chart-donut-total :where(ul, ol) { padding: 0; list-style: none; }
.ukc-chart-donut-total :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-chart-donut-total :where(a) { color: inherit; }
.ukc-chart-donut-total svg { flex: none; }
.ukc-chart-donut-total { container-type: inline-size; inline-size: 100%; }
.ukc-chart-donut-total .ttl { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ukc-chart-donut-total .sub { margin-top: 2px; font-size: 13px; color: var(--uk-muted); }
.ukc-chart-donut-total .dn { max-width: 520px; }
.ukc-chart-donut-total .bd { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 16px; }
.ukc-chart-donut-total .dial { position: relative; flex: none; width: 148px; height: 148px; }
.ukc-chart-donut-total .dial svg { display: block; width: 100%; height: 100%; }
.ukc-chart-donut-total .dial circle { fill: none; stroke-width: 14; }
.ukc-chart-donut-total .c1 { stroke: var(--uk-accent); background: var(--uk-accent); }
.ukc-chart-donut-total .c2 { stroke: color-mix(in srgb, var(--uk-ink) 78%, var(--uk-paper)); background: color-mix(in srgb, var(--uk-ink) 78%, var(--uk-paper)); }
.ukc-chart-donut-total .c3 { stroke: color-mix(in srgb, var(--uk-ink) 42%, var(--uk-paper)); background: color-mix(in srgb, var(--uk-ink) 42%, var(--uk-paper)); }
.ukc-chart-donut-total .c4 { stroke: color-mix(in srgb, var(--uk-ink) 18%, var(--uk-paper)); background: color-mix(in srgb, var(--uk-ink) 18%, var(--uk-paper)); }
.ukc-chart-donut-total .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ukc-chart-donut-total .mid b { font-family: var(--uk-font-display, inherit); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.ukc-chart-donut-total .mid span { margin-top: 2px; font-size: 12px; color: var(--uk-muted); }
.ukc-chart-donut-total .lgd { flex: 1 1 200px; border-collapse: collapse; font-size: 14px; }
.ukc-chart-donut-total .lgd th, .ukc-chart-donut-total .lgd td { padding: 7px 0; border-bottom: var(--uk-border-width) solid var(--uk-line); text-align: left; }
.ukc-chart-donut-total .lgd td { padding-left: 12px; text-align: right; font-family: var(--uk-font-mono, ui-monospace, monospace); font-size: 13px; font-variant-numeric: tabular-nums; }
.ukc-chart-donut-total .lgd thead th { padding-top: 0; border-bottom-color: var(--line-strong); font: 500 11px/1.4 var(--uk-font-mono, ui-monospace, monospace); letter-spacing: 0.04em; text-transform: uppercase; color: var(--uk-muted); }
.ukc-chart-donut-total .lgd thead th + th { text-align: right; }
.ukc-chart-donut-total .lgd tbody th { font-weight: 400; }
.ukc-chart-donut-total .lgd tbody th i { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: min(var(--uk-radius-sm), 3px); vertical-align: 0; }
.ukc-chart-donut-total .lgd .on th { font-weight: 600; }
.ukc-chart-donut-total .lgd tbody td:last-child { color: var(--uk-muted); }
.ukc-chart-donut-total .lgd tbody tr:last-child > * { border-bottom: 0; }
@container (max-width: 360px) { .ukc-chart-donut-total .bd { justify-content: center; } .ukc-chart-donut-total .lgd { flex-basis: 100%; } }
More charts and kpis
All 24October
Change against September
- Outstanding
- $24,880
- Up, worse: $1,840
- Days to get paid
- 18 days
- Down, better: 3 days
- Billable hours
- 612
- Up, better: 24 h
- Gross margin
- 34.2%
- Down, worse: 0.8 pts
Hours by crewLast 8 weeks, one shared scale Crew Trend This week Change Reyes crew 162 h +4.5% Akande crew 138 h +3.0% Ortega crewDown 5 weeks 118 h −4.8% Lindgren crew 100 h +3.1% Park crew 96 h −2.0% Job sheets filed
312 in 16 weeks · busiest day Tue, Oct 13, with 10
Quote to cash, last 90 days
37% of quotes become paid jobs. Most are lost after the client opens the quote.
80% opened · 24 never opened
53% accepted · 45 lost here
94% invoiced · 3 not yet
92% paid · 4 overdue
October against target
Two of three on target. Billable hours fell short.
-
Invoiced$28,400 / $26,0009% over
-
Billable hours612 h / 640 h28 h short
-
Gross margin34.2% / 32%2.2 pts over
-
27%
of October's invoices were paid late
Up from 19% in September
- Paid late27
- Paid on time58
- Still open15