Write a tiny encoding recommender for point/line charts. Input lines: name type distinct (type is quantitative, ordinal or categorical), in order of importance.
Channel preference lists (best first): quantitative → x, y, size (area), luminance; ordinal → x, y, luminance, size (area); categorical → x, y, color hue, shape. Each channel is used at most once. Color hue can carry at most 9 categories and shape at most 6: if an attribute has more distinct values, skip that channel with a warning warning: station: 12 categories are too many for color hue (max ~9) (warnings printed after all assignments, in the order they occur). If no channel is left, print name (type) -> facet into small multiples.
Print pm25 (quantitative) -> x per attribute, then the warnings, then channels used: 4.