Skip to main content

X-Axis

X-Axis Options

Note that axis options are distinct from controls over the series mapped to the axis, and control only the axis itself.

Controls are available:

  • name / sort
  • labels (font size, format, rotation)
  • vertical grid lines

Temporal/Quantitative (Continuous) vs Ordinal (Discrete) Axes

Omni adjusts axis treatment for different data types and visualization types.

  • For strings - axes will always be ordinal, and, by default, obey sort in the data table.
  • For numerics - bars are ordinal; line, scatter, area are quantitative (continuous)
  • For dates - bars are ordinal; line, scatter, area are temporal (continuous)

For the ordinal series, note that missing rows will not be displayed. It's recommended to fill missing rows to retrieve these values when that is desireable.

Axis Labels Spacing

Axis labels will behave differently for continuous / temporal axes (vs ordinal / string). In continuous mode, the labels will be spaced so as not to cut text, but may not align exactly with the visualization points. In ordinal mode, the values will be labeled one-by-one, and hidden in consistent intervals to, again, avoid collision.

There are no current controls for label sparseness, but will come in the future.

Other Notes

  • When tuning axis colors note that there is not indepdent configuration for light and dark mode. The default palette will adjust colors (ie dark axis in light mode; light axis in dark mode), but when they are hard-coded they will be respected in light and dark mode.
  • The configuration can be reset (note, entirely for the vis to defaults) under Tab > Reset Chart
  • Longtail axis configuration is available in the Vega-lite spec