~/todd-fleeman/case-study — session log entry

~/Shuffled Dial Clock

started 2026-10-20 · last touched 2026-10-20
why this exists

A clock that still tells the right time, even though its face won't hold still. Every hour, the twelve numbers scramble to new positions around the dial. The hands don't care where a number used to be; they chase it. The hour hand swings to wherever the current hour landed, the minute hand finds the right number for the five-minute block, and the second hand sweeps on like nothing happened. It's part of a set of clock experiments, each asking the same question differently: how far can you bend a clock face before it stops being

built on / learned
D3JS
Data Visualizations
Learned
  • Keyed joins make the shuffle possible. Each number is bound to D3 by its own value, not its position. When the slots shuffle, D3 knows that 7 is still 7 and slides it to its new place instead of redrawing a different number there.
  • Hands follow the data, not the angle. Normally a hand's angle comes straight from the time. Here it comes from looking up where the current number sits right now, so the hands are reading the face, not the clock.
  • Taking the shortest way around. Swinging from 350° to 10° the naive way spins the hand almost all the way around. A little modulo math picks the 20° route instead, so the hands chase the shuffle without spinning wildly.
  • Tweening something that isn't an attribute. The hand angles live in variables, not on the elements. A custom tween drives those numbers over the transition while the timer keeps redrawing, so the hands glide instead of jumping.
where this might go

Swap the numbers for pictures and the hands for a pointer, and this becomes a game for kids learning to tell time. The face scrambles, and they have to find where the hour went before the hands get there. Swap the data instead, and it's a living leaderboard: teams, songs or players sit around the ring, and when the rankings change, everything reshuffles and the pointers chase whoever's on top.