Input lines: name type=KIND [n=COUNT] [mid=VALUE] where KIND is categorical, sequential, diverging or cyclic.
Rules: categorical with n ≤ 10 → scheme tableau10 (type N), reason 6 categories: distinct hues; categorical with n > 10 → print station: no colour encoding (80 categories: too many hues -> use position, facets or highlight a few); sequential → viridis (type Q), reason ordered low->high: perceptually uniform luminance ramp; diverging → blueorange with domainMid = mid (default 0), reason two directions around 0; cyclic → sinebow, reason wraps around: cyclic hue scheme.
Build the colour encoding with Altair (alt.Color(f"{name}:{type}", scale=alt.Scale(...)) on a mark_rect chart) and print the scale dictionary from the chart specification: pm25: sequential -> {'scheme': 'viridis'} (ordered low->high: perceptually uniform luminance ramp).