> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/visualize-present/visualizations/configuration/x-axis",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# X-axis configuration

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

<img src="https://mintcdn.com/omni-e7402367/LV2c4CXjbFMv1AXp/images/docs/visualization-and-dashboards/configuration/assets/images/x-axis-options-icon-2e4196f89ce00fe6c665a02ef4e9070f.png?fit=max&auto=format&n=LV2c4CXjbFMv1AXp&q=85&s=b1b97bcf4d7555f6d6216cce7a975f01" alt="" width="502" height="146" data-path="images/docs/visualization-and-dashboards/configuration/assets/images/x-axis-options-icon-2e4196f89ce00fe6c665a02ef4e9070f.png" />

## Options

<Check>
  These settings control only the axis itself. To customize the [series mapped to the axis](/visualize-present/visualizations/configuration/series-configuration), use the dropdown next to the series/field.
</Check>

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 results 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](/analyze-explore/point-click-queries#filling-missing-data) 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

  <Check>
    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.
  </Check>

* **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

* **Ticks** - 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](https://vega.github.io/vega-lite/docs/axis.html).
