Y-Axis (Left Axis / Right Axis)
Y-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 / min / max
- labels (font size, format, rotation)
- reference lines
- horinzontal grid lines
![](/assets/images/y-axis-options-e6b1c9f29c31170efd4e6a1ae7dd499a.png)
Reference Lines
![](/assets/images/y-axis-reference-line-a26e17563d421a65b61f5b184a39cc46.png)
Reference lines offer 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.
Axis Labels Spacing
Integer values will sometimes display decimals on the y-axis, this is not currently configurable, but planned work 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