programlibs/Grouping/demos/sales.xtl
A month of sales: totals, averages and the best sale per region, set as a table, and the totals as bars. Run with "just demo Grouping sales".
region : Box Char
region ← "north" "south" "east" "north" "west" "east" "south" "north" "east" "west"
amount : Int
amount ← 120 340 95 210 180 60 400 75 150 220
Used in: cells, libs/Grouping/demos/sales.xtl:17
cells : Box Char
cells ← ((n c̲at 1) r̲eshape regions) c̲at₂ ((n c̲at 1) r̲eshape 'f̲ormat m̲ap ᵍʳc̲ount region) c̲at₂ ((n c̲at 1) r̲eshape ᶠt̲housands region ᵍʳs̲um amount) c̲at₂ ((n c̲at 1) r̲eshape 1 ᶠf̲ixed region ᵍʳm̲ean amount) c̲at₂ (n c̲at 1) r̲eshape ᶠt̲housands region ᵍʳg̲reatest amount
Used in: libs/Grouping/demos/sales.xtl:15