Read one Vega-Lite specification (JSON) from standard input. For each encoding channel, in alphabetical order, print x: t (quantitative) - magnitude rank 1 (the field — or count for a count aggregate — and type; the rank suffix only for quantitative fields on x/y (rank 1), size (3), opacity or color (4)).
Then report issues in the same channel order:
- E1 nominal field on size, opacity or strokeWidth:
E1 nominal 'd' on size suggests an order that does not exist; - E2 quantitative field on shape:
E2 quantitative 'p' on shape cannot show magnitude; - E3 ordinal or quantitative field on color with a categorical scheme (category10, category20, tableau10, tableau20, set1, set2, set3, dark2, accent, paired):
E3 ordinal 'l' with categorical scheme 'category10' hides the order; - E4 nominal field on color with more than 9 distinct values in
data.values:E4 12 categories on color hue (more than 9 are hard to tell apart).
Finish with 3 expressiveness issue(s) or expressive: every attribute uses a channel that matches its type.