Elm-Vega Axis Tests

Default Axes

Default quantitative axis on x and ordinal on y
Quantitative axis configured to show red grid lines.
Responsive width with associated responsive x axis
Default ordinal x-axis (numbers as strings in alphabetical order)
Default temporal x-axis
Temporal axis configured to show dashed domain and dashed red grid lines.

Explicit Axis Values

Explicit x-axis values at 1, 2, 4.5 ,9 and 11 (which should be ignored)
Explicit x-axis values at "1", "2", "4", "dummy" (should be ignored), "9" and "11" (which should also be ignored)
Explicit x-axis values at 4th Jan, 8th Jan and 20th Jan (should be ignored as outside of domain).

Axis label expressions

Should recalculate label to be 0.01 of data value.
Preface each label with the word 'number'

Axis Configuration

Should be identical to previous, but defined via an axis configuration.
Should be identical to previous, but configured to show 10 axis ticks on y axis
Red dashed X axis and blue Y axis each with 10 tick marks, configured via axStyle.
Identical to previous but created via nested styles.

Conditional Axis Properties

The '0' in the catX 10 label should be aligned with tick (conditional axis offset)
Square caps for dashed domain and rounded caps for grid lines. Dash styles conditional on data values.
Interactive parameterisation of axis properties.

Source