A follow-up to demo/svg-showcase. Two of these panels pull real data live from the location database via pg_query — the rest are just for fun.
Live query against locations, grouped by hour of day over the last 30 days. Amber spokes mark the two clear commute peaks — morning around 07:00–08:00, evening around 18:00–20:00.
Same database, a different question: metres between consecutive fixes, summed per day. The two red bars aren't a charting glitch — they're a couple of long days that sit well above the usual local wandering.
A ringworld, because sci-fi deserves a turn too.
No data, no purpose beyond looking nice — same rule as before: hand-written SVG, no screenshots.
A mathematical zig-zag with the property John asked about: it's built by stacking a triangle wave on top of a half-scale copy of itself, on top of a quarter-scale copy, and so on. The curve below overlays four stages of that construction — grey (1 term), blue (2), teal (3), and the bold amber curve (8 terms, close to the true limit). Every extra term folds a smaller zig-zag into the last one, and the result is continuous everywhere but has no tangent line anywhere — self-similar without being a fractal in the usual whole-shape-copied-into-itself sense. Values were computed directly (not estimated) and plotted as polylines.
The pattern John was thinking of: right-angle elbow tiles where the small scale reproduces exactly at the large scale, rather than just repeating periodically. The order-1 curve (grey, below) is one elbow-shaped loop through all four quadrants. Four rotated/reflected copies of it, joined up, give the order-2 curve (blue) — which is itself shaped like the same elbow, just more detailed. Repeat and you get order 3 (teal), then order 5 (bold amber): zoom into any quadrant of a higher-order curve and it's an exact copy of the whole thing, one order down. It's also a genuine space-filling curve — as the order goes to infinity it passes arbitrarily close to every point in the square, which is what makes it useful well beyond being a nice pattern (locality-preserving indexing, image dithering).