Daylight
Personal project, digital, 2026
An interactive chart of sunrise, sunset and day length through the year in ten UK cities, calculated in the browser.

- Type
- Interactive data visual
- Data
- Computed in the browser from latitude and longitude
- Coverage
- Ten UK cities, Lerwick to Plymouth
- Accuracy
- Within a minute or two of published times
The brief
I wanted to see the shape of a British year: how fast the evenings go in autumn, what the clock changes really do, and how different June is in Shetland and Devon. Sunrise tables give the numbers but not the shape.
I set myself two rules. Every figure had to be calculated on the page from a city's coordinates, with no stored data, and the chart had to work under a thumb on a small phone as well as on a wide screen.
Process
Getting the maths right first
I wrote the sun calculation as its own module using the NOAA solar equations, then tested it against published times for London, Edinburgh and Lerwick at both solstices before drawing anything. All twelve times came out within a minute.
Clock time, not sun time
I put the clock people live by on the vertical axis, including British Summer Time. That keeps the two one-hour steps in March and October, which are the most recognisable thing in the picture, and I drew them as real breaks in the shape.
Tone steps in place of gridlines
There are no lines in the chart. Months are alternate steps of tone that run through night, twilight and day, the hours are five labels at the edge, and the solstices, equinoxes and clock changes are labelled where they happen.
One sentence that says it
Under the chart a sentence rewrites itself as you move through the year. It gives the day length, the gap to the other end of the country and how many minutes of light that city is gaining or losing each day.
Final work
Tools used
- JavaScript
- SVG
- NOAA solar equations
- Bricolage Grotesque
- AI coding assistant