X-axis configuration
![]()
Options
Section titled “Options”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
Section titled “Axis types”The Type setting controls the type of X-axis used in the visualization. JustAsk will select a default axis type depending on the data in the query, but you can override it using this setting.
JustAsk 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 to retrieve these values when that is desirable.
Labels
Section titled “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
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-YYfor dates -
Label rotation - Controls the degree of rotation for X-axis labels
-
Ticks - Controls the number of ticks that display between labels
Label spacing
Section titled “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
Section titled “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.
Settings in the Grid tab control if and how grid lines display in the background of the visualization.
Vega-lite options
Section titled “Vega-lite options”Long-tail axis configuration is available in the Vega-lite spec.