Tamila Panahi

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.

Poster of a year of daylight in Lerwick. A yellow shape runs down a dark blue page, narrow in winter at the top and bottom and wide in midsummer, with an orange edge of twilight and the word Daylight set inside the longest days.
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

  1. 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.

  2. 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.

  3. 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.

  4. 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

The live piece. Choose a city, then drag across the year or use the arrow keys to read sunrise, sunset and day length for any date. Open it full screen

Tools used

  • JavaScript
  • SVG
  • NOAA solar equations
  • Bricolage Grotesque
  • AI coding assistant

Have a project in mind?

Want something like this? Tell me about your project and I will reply by email.

Start a project