# YAxis

Auto-generated from the config schema in the source — see the [config guide](https://jbrowse.org/jb2/docs/config_guide) for concepts. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/wiggle-core/src/yAxisConfigSchema.ts).

A [YChannel](../ychannel)'s `axis`, the guide it draws: its `title` and
`grid`.

## Example usage

```js
{
  type: 'LinearAlignmentsDisplay',
  coverage: { encoding: { y: { axis: { title: 'depth', grid: true } } } },
}
```

## Config slots

A setting written to it names members one by one: a member left out stays as it is, and `null` resets one. Slot types (`fileLocation`, `frozen`, ...) are explained in the [config slot types reference](https://jbrowse.org/jb2/docs/config_guides/slot_types). Slots a base configuration contributes are listed here too, so this table is the whole surface.

| Slot | Description |
| --- | --- |
| **title**<br>[`maybeString`](https://jbrowse.org/jb2/docs/config_guides/slot_types#the-maybe-types) | The caption beside the axis, drawn once however many bands the scale rules. Unset, `""` or `null` draws none. |
| **grid**<br>[`boolean`](https://jbrowse.org/jb2/docs/config_guides/slot_types#boolean) = <code>false</code> | Rule the plot across at every tick, Vega-Lite's `axis.grid`. The axis panel's "Grid lines" toggles it. |

