Skip to main content

X-axis configuration

To access the configuration options for the X-axis, click the (configuration options) icon to the right of the X-Axis label:

Options

tip

These settings control only the axis itself. To customize the series mapped to the axis, use the dropdown next to the series/field.

The settings in the X-Axis tab control the title, type, and sorting of the axis.

Axis types

The Type setting controls the type of X-axis used in the visualization. Omni will select a default axis type depending on the data in the query, but you can override it using this setting.

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

  • Strings - Axes will always be ordinal, and, by default, obey sort in the data table
  • Numbers - Bars are ordinal; line, scatter, area are quantitative (continuous)
  • Dates - Bars are ordinal; line, scatter, area are temporal (continuous)

For the ordinal series, note that missing rows will not be displayed. We recommend that you fill missing rows to retrieve these values when that is desirable.

Labels

The settings in the Labels tab allow you to customize how labels associated with the X-axis display in the visualization:

  • Show labels - If enabled, labels will display on the X-axis

  • Show axis line - If enabled, a line representing the X-axis will display

  • Show ticks - If enabled, ticks will display along the X-axis

  • Font - Options for customizing the styling and color of X-axis labels

    Axis colors & light/dark mode

    When selecting axis colors, note that there aren't separate settings for light and dark mode.

    The default palette will adjust colors based on the selected mode - such as a dark axis in light mode - but when explicitly defined, the color you select will be used in both light and dark mode.

  • Format - Defines the format X-axis labels use, such as MMM-DD-YY for dates

  • Label rotation - Controls the degree of rotation for X-axis labels

  • Tickets - Controls the number of ticks that display between labels

Label 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 avoid collision.

Currently, there aren't controls for label sparseness.

Reference line

Settings in the Reference line tab allow you to define a reference line, which is a quick way to set targets on a chart. There is limited configuration for these, so more complex use cases may be better served with table calculations as a regular, independent series.

Grid

Settings in the Grid tab control if and how grid lines display in the background of the visualization.

Vega-lite options

Long-tail axis configuration is available in the Vega-lite spec.