# Sandbox.UI.GraphAxis

A horizontal or vertical graph axis with numeric or custom ticks, an optional title,
rotated tick labels and optional editable endpoints. It does not own the graph's view or data.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)

## Constructors

- [`GraphAxis`](/api/Sandbox.UI.GraphAxis/.ctor)

## Properties

- [`EditableBounds`](/api/Sandbox.UI.GraphAxis/EditableBounds): Show editable endpoints instead of tick labels at the ends of the axis.
- [`FontSize`](/api/Sandbox.UI.GraphAxis/FontSize): Tick-label font size in logical pixels.
- [`Label`](/api/Sandbox.UI.GraphAxis/Label): Optional axis title, drawn below a horizontal axis or rotated beside a vertical axis.
- [`LabelFormatter`](/api/Sandbox.UI.GraphAxis/LabelFormatter): Optional formatter for generated tick labels. Editable endpoints still use NumberFormat.
- [`LabelRotation`](/api/Sandbox.UI.GraphAxis/LabelRotation): Clockwise rotation of tick labels in degrees. Negative angles suit month names on a horizontal axis.
- [`LabelWidth`](/api/Sandbox.UI.GraphAxis/LabelWidth): Space reserved for each tick label, in logical pixels. Also determines the axis gutter size.
- [`Maximum`](/api/Sandbox.UI.GraphAxis/Maximum)
- [`MaximumBound`](/api/Sandbox.UI.GraphAxis/MaximumBound)
- [`Minimum`](/api/Sandbox.UI.GraphAxis/Minimum): Visible range in axis units.
- [`MinimumBound`](/api/Sandbox.UI.GraphAxis/MinimumBound): Override the values shown in endpoint fields, independently of the visible range.
- [`NumberFormat`](/api/Sandbox.UI.GraphAxis/NumberFormat): Fixed numeric format. For example "0.00" or "$#,0". Never changes with zoom.
- [`Orientation`](/api/Sandbox.UI.GraphAxis/Orientation): Direction along which values increase, before applying Reversed.
- [`Reversed`](/api/Sandbox.UI.GraphAxis/Reversed): Reverse the direction of increasing values, for example for an upward vertical axis.
- [`ShowLine`](/api/Sandbox.UI.GraphAxis/ShowLine): Draw a baseline along the edge of the plot.
- [`Thickness`](/api/Sandbox.UI.GraphAxis/Thickness): Required gutter size in logical pixels, including rotated labels and the optional title.
- [`TickInterval`](/api/Sandbox.UI.GraphAxis/TickInterval): Optional fixed major tick interval in axis units. Null chooses spacing from the visible range.
- [`TickLength`](/api/Sandbox.UI.GraphAxis/TickLength): Length of major tick marks in logical pixels. Set to zero for grid-only graphs.
- [`Ticks`](/api/Sandbox.UI.GraphAxis/Ticks): Explicit tick positions and labels. Null generates numeric ticks automatically.

## Methods

- [`Fraction`](/api/Sandbox.UI.GraphAxis/Fraction): Map an axis value to its fraction along the axis, including reversal.
- [`GetTicks`](/api/Sandbox.UI.GraphAxis/GetTicks): Generate the ticks shared by the axis labels and the graph's grid. Length is in logical pixels.
- [`OnDraw`](/api/Sandbox.UI.GraphAxis/OnDraw)
- [`Tick`](/api/Sandbox.UI.GraphAxis/Tick)
