durian-hypermediaStyle

All fixtures · The composed stage (from the Format page) · stage/22-animation-a-bar-chart-in-a-scene.dh.md

Source
---
title: "Animation: a bar chart in a scene"
description: A fixture made from the Format page section of the same name (a composed stage).
roles:
  client: c1
  server: c2
  store: c3
  job: c4
  cache: c5
  ops: c6
  plain: c0
---

## Animation: a bar chart in a scene

A `bars` block is a small bar chart on one value axis: grid values, reference lines, and per step new values, a dotted peak line, a dashed limit (bars over it light up in its step), and moves from one bar to others, drawn as dashed arrows with the moved amount stacked on the taker. Every bar top and line sits at its true value.

```animation
title: A café | cups sold, by day
bars 7 server: day of the week · bar = cups sold ÷ the weekly average | ×
  axis 0, 0.5, 1, 1.5
  line average: 1
  labels: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  tabs One barista: 1..3; Two baristas: 4
@step Busy Friday: Friday sells 1.4 times the average day.
values: 0.7 0.8 0.9 1.0 1.4 1.3 0.9
peak: busiest 1.4×
heading: cups by day | the week of 3 March
big: 1.4× | busiest ÷ average
@step A cap: No day should go over 1.2 times the average; two days do.
limit 1.2: cap 1.2×
heading: cap = 1.2 × the average · 2 days are over it
@step Move orders: Friday and Saturday hand pre-orders to Monday and Tuesday.
values: 0.9 0.9 0.9 1.0 1.2 1.2 0.9
move 2 from Fri to Mon; 1 from Sat to Tue
peak: busiest 1.2×
big: 1.2× | busiest ÷ average
heading: the moves: Fri → Mon (2 trays), Sat → Tue (1 tray) | the week's total does not change
@step Two baristas: Saturday remains the busiest day; Friday is also above average.
values: 0.9 0.9 1.0 1.0 1.1 1.2 0.9
light Sat: the busiest
heading: two baristas, a month later
```
LLM view
---
title: "Animation: a bar chart in a scene"
description: A fixture made from the Format page section of the same name (a composed stage).
source: stage/22-animation-a-bar-chart-in-a-scene.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

## Animation: a bar chart in a scene

A `bars` block is a small bar chart on one value axis: grid values, reference lines, and per step new values, a dotted peak line, a dashed limit (bars over it light up in its step), and moves from one bar to others, drawn as dashed arrows with the moved amount stacked on the taker. Every bar top and line sits at its true value.

A café (cups sold, by day)
Bars: day of the week · bar = cups sold ÷ the weekly average (×), 7 bars, axis 0, 0.5, 1, 1.5.
Tabs: One barista (steps 1 to 3), Two baristas (step 4).
Line average at 1.
1. Busy Friday: Friday sells 1.4 times the average day.
   Tab: One barista.
   cups by day · the week of 3 March.
   Values: Mon 0.7, Tue 0.8, Wed 0.9, Thu 1, Fri 1.4, Sat 1.3, Sun 0.9.
   Peak: busiest 1.4×.
   1.4×: busiest ÷ average.
   Lit bars: Fri 1.4 (the peak).
2. A cap: No day should go over 1.2 times the average; two days do.
   cap = 1.2 × the average · 2 days are over it.
   Limit 1.2: cap 1.2×.
   Lit bars: Fri 1.4 (the peak), Sat 1.3 (over the limit).
3. Move orders: Friday and Saturday hand pre-orders to Monday and Tuesday.
   the moves: Fri → Mon (2 trays), Sat → Tue (1 tray) · the week's total does not change.
   Values: Mon 0.9, Tue 0.9, Wed 0.9, Thu 1, Fri 1.2, Sat 1.2, Sun 0.9.
   Peak: busiest 1.2×.
   1.2×: busiest ÷ average.
   Moves: Fri to Mon (2), Sat to Tue (1).
   Lit bars: Mon 0.9 (takes), Tue 0.9 (takes), Fri 1.2 (the peak; at the limit), Sat 1.2 (the peak; at the limit).
4. Two baristas: Saturday remains the busiest day; Friday is also above average.
   Tab: Two baristas.
   two baristas, a month later.
   Values: Mon 0.9, Tue 0.9, Wed 1, Thu 1, Fri 1.1, Sat 1.2, Sun 0.9.
   Lit bars: Sat 1.2 (lit: the busiest; at the limit).

Animation: a bar chart in a scene

A bars block is a small bar chart on one value axis: grid values, reference lines, and per step new values, a dotted peak line, a dashed limit (bars over it light up in its step), and moves from one bar to others, drawn as dashed arrows with the moved amount stacked on the taker. Every bar top and line sits at its true value.

A cafécups sold, by day1 / 4

A café (cups sold, by day) Bars: day of the week · bar = cups sold ÷ the weekly average (×), 7 bars, axis 0, 0.5, 1, 1.5. Tabs: One barista (steps 1 to 3), Two baristas (step 4). Line average at 1. 1. Busy Friday: Friday sells 1.4 times the average day. Tab: One barista. cups by day · the week of 3 March. Values: Mon 0.7, Tue 0.8, Wed 0.9, Thu 1, Fri 1.4, Sat 1.3, Sun 0.9. Peak: busiest 1.4×. 1.4×: busiest ÷ average. Lit bars: Fri 1.4 (the peak). 2. A cap: No day should go over 1.2 times the average; two days do. cap = 1.2 × the average · 2 days are over it. Limit 1.2: cap 1.2×. Lit bars: Fri 1.4 (the peak), Sat 1.3 (over the limit). 3. Move orders: Friday and Saturday hand pre-orders to Monday and Tuesday. the moves: Fri → Mon (2 trays), Sat → Tue (1 tray) · the week's total does not change. Values: Mon 0.9, Tue 0.9, Wed 0.9, Thu 1, Fri 1.2, Sat 1.2, Sun 0.9. Peak: busiest 1.2×. 1.2×: busiest ÷ average. Moves: Fri to Mon (2), Sat to Tue (1). Lit bars: Mon 0.9 (takes), Tue 0.9 (takes), Fri 1.2 (the peak; at the limit), Sat 1.2 (the peak; at the limit). 4. Two baristas: Saturday remains the busiest day; Friday is also above average. Tab: Two baristas. two baristas, a month later. Values: Mon 0.9, Tue 0.9, Wed 1, Thu 1, Fri 1.1, Sat 1.2, Sun 0.9. Lit bars: Sat 1.2 (lit: the busiest; at the limit).

Friday sells 1.4 times the average day.