Skip to content

Design study 12 · Self-drawing chart

Numbers that arrive with a little ceremony — and stay readable.

A twelve-month bar chart with a three-month rolling-average line. When it is 40% on screen the bars rise, the line traces across, and the totals count up. “New sample data” morphs the chart to a fresh series. Every number in this demo is random sample data, labelled as such.

Concept build · not client work

Written for this site to demonstrate the technique. On your project it would be designed around your brand, content, and performance budget.

Live demo: Self-drawing chart

Website enquiries by month

Monthly enquiries 3-month average

Sample data · illustrative
Enquiries, 12 mo
694
Best month
Oct
Latest 3-mo avg
75.3

Sample data (illustrative only): website enquiries by month, with 3-month average
MonthEnquiries3-month average
Jan 41 41.0
Feb 33 37.0
Mar 26 33.3
Apr 39 32.7
May 48 37.7
Jun 56 47.7
Jul 67 57.0
Aug 80 67.7
Sep 78 75.0
Oct 82 80.0
Nov 79 79.7
Dec 65 75.3
Try it: Scroll it into view, hover or use the arrow keys to step through months, or press “New sample data”. Live demo — running in your browser
Built with
SVG · Intersection Observer · Accessible data
Libraries
None — plain browser code
Starts
When it nears the screen
Reduced motion
Still frame + Play button
Script weight
Measured when the demo loads

The case study

What it solves, and how it stays fast.

01

The problem it’s built for

Service businesses often have numbers worth showing — projects completed, response times, seasonal demand — but a static chart is easy to skim past. Animation draws the eye to the trend; the hard part is keeping the chart honest, accessible, and readable without the animation.

02

How it’s built

  • Plain SVG: bars, axis, and a rolling-average path, all scaled to a rounded maximum so the axis reads cleanly.
  • Entrance animation triggers once at 40% visibility, with eased timing so bars and line arrive in sequence.
  • Morphing to new data interpolates every bar and point rather than redrawing from zero.
  • A hover tooltip and arrow-key navigation step through each month.
03

Performance choices

  • SVG and a short animation loop — no charting library.
  • Nothing runs until the chart is actually seen; after the entrance it is static.
  • Colours were checked against the dark surface for contrast, not just picked by eye.
04

Accessibility & fallbacks

  • A visually hidden table carries every value, so screen-reader users get the full data set.
  • Keyboard users can step through months with the arrow keys.
  • With reduced motion, the finished chart appears immediately.
  • Clearly badged as sample data — on a client site it would use real, sourced figures only.

Where it fits

Where a design like this earns its place.

Data visualisation and scroll-told stories, with your real, sourced numbers.

Proof sections

Real, sourced figures — never inflated — that deserve a moment of attention.

Lenders & financial services

Explainers for rates, terms, or trends, with an accessible table underneath.

Scroll-told reports

Annual reviews or seasonal guides where the data is the story.

Scoped like everything else: available on its own or added to any website package, flat-quoted in your launch plan with a written performance budget — what it does, what it may weigh, and how it behaves on phones and with reduced motion.

Want a moment like this on your site?

Tell us where it should go. You get a written scope, a performance budget, and one flat quote — before anything is built.

Prefer to start with a quick message? Use the message button in the corner — a real person replies, typically within one business day.

Use the up and down arrow keys to move through results, Enter to open one, Escape to close.