Elm-Vega Sort Tests

Sorting Quantitative Values

Sorted left-to-right by increasing horsepower
Sorted left-to-right by decreasing horsepower
Sorted by increasing weight (line should be vertically monotonic)

Custom Sorting of Categorical Values

Bars should appear in order B-A-C (specified by custom order) -Z-Y-X (in declaration order)

Mosaic Chart via stacking transform

Mosaic chart, blue-orange-red from left to right and dark to light top to bottom.

Source