One set of stars, five pictures — scroll and the stars become a chart
What was tried
Tried the move from the decidr.ai home page: a single field of background stars spans the whole page, and each time you scroll into a new section the same stars break apart and re-form as the diagram that explains that section's text. This entry uses the same move to tell chapter 4 of the chart-perception handbook. The 100 stars are the 100 units of the book's synthetic dataset (A to E = 22, 18, 25, 16, 19), each star belongs to the same unit in every picture, and the scroll passes through five scenes: a star field with nothing encoded, bars, pie slices, bubbles done right, and bubbles with the radius scaled directly. The picture is 3D, built with three: the star field is a cloud with depth, stars glow on black, background stars sit far behind for a sense of distance, and between scenes the camera swings while stars rush toward and away from the screen. Every chart scene, though, flattens the stars onto one plane with the camera facing it squarely, because chapters 4 and 5 of the book say that tilted angles and areas in 3D are read wrongly. The picture is tied to the scroll position alone, with no clock; the labels are HTML text placed by the camera, and a device without WebGL falls back to a 2D picture that matches the chart scenes pixel for pixel.
- 01
100 stars = 100 units
Each star is one unit of the synthetic dataset in chapter 4 of the chart-perception handbook: five departments, A to E, worth 22, 18, 25, 16 and 19, which add up to exactly 100. Nothing is encoded yet. The orange stars belong to B and E, the pair that differs by a single point — and a picture like this cannot tell you which one is larger.
- 02
Length — one star of difference shows
The same stars line up as bars on a common baseline, one star per unit. E stands one star taller than B, and that one star takes 4.00% of the range the bars can use (the tallest bar is C with 25), so the eye separates them at once without reading a number.
- 03
Angle — the same difference shrinks to 3.6 degrees
Every star moves into its own unit's slice, starting at twelve o'clock and going clockwise as encode.py does. The same one-unit difference becomes a 3.60-degree angle, 1.00% of the circle: the pie squeezes the difference four times smaller before it reaches the eye, though not a single star has gone missing.
- 04
Area — done right
Each unit's stars are packed into a bubble at the same density, so a bubble's area follows its star count exactly — the same as setting the radius to the square root of the value. The picture does not lie, but the eye compares areas far more coarsely than lengths. Try telling B from E by eye again.
- 05
Area — with the radius scaled directly
The same stars are packed into bubbles whose radius follows the value directly, so the small units' bubbles come out too small. The bottom row is the value the eye reads from the area: D is really 16 but reads as 10.24, 36% too low, while its bubble still holds all 16 stars. What is wrong is the frame, not the data.
What was learned
First, from taking their page apart: the whole page has one 2D canvas fixed behind the content, no WebGL, and if you stop scrolling halfway and wait, the picture does not move, because it is a function of scroll position, not of time. Second, the move works best when the dots are real, countable things rather than a backdrop. Once one star equals one unit and keeps its owner in every scene, the phrase "same values, different channel" from section 4.2 becomes something you can watch: no star is lost or added between the bars and the pie; only the one-star difference, which took 4.00% of the bar range, turns into a 3.60-degree angle, 1.00% of the circle. The wrong-bubble scene is clearer than in the book, since D's bubble still holds all 16 stars while the eye reads its area as 10.24 — what is wrong is the frame, not the data. Third, the scenes need a hold: the picture changes only in the middle stretch of the scroll from one step to the next, otherwise it keeps moving while you read. Fourth came from a wrong first turn: the first version was 2D because the original was, and it came out correct but flatter than this site's own home-page galaxy — what is worth copying is the feel of stars flying and gathering, not the API the original happened to pick. Going 3D then meant placing the camera so the chart plane exactly fills the stage when facing it (distance = half the height ÷ tan of half the field of view), so the HTML labels can sit where they did in 2D, and the camera has to return to exactly face-on at the end of each stretch, because sin(π) is not exactly 0 in floating point — the test caught a leftover angle of 4×10⁻¹⁷ radians. Every number in the entry is locked to encode.py's recorded output by a test that reads the book's file directly.
What fell short
It is an entry inside the lab's frame, not a whole page like the original, so the stars live in one framed stage instead of being a backdrop the content floats over. The three engine loads as the entry nears the screen, so the 2D picture shows first and is then swapped; how slow that swap is on a slow device has not been measured. The light theme has no glow (ink on paper cannot glow), so its sense of 3D rests on the camera swing and the depth of the background stars alone. It has not been tried on anything other than charts yet — for example letting the stars form the Airflow handbook's DAG for the section being read, which was the reason to try this move in the first place. On a narrow screen the picture sticks to the top and takes about a third of the screen, and its labels shrink to 10 pixels. Nobody but the author has scrolled through it, and nothing measures whether readers grasp section 4.2 faster or the page merely looks nicer.