# YEncoding

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/yEncodingConfigSchema.ts).

A display's `encoding` holding the y channel alone: the mark display's,
whose marks each name the field their `encoding.y` reads through it.

## Example usage

```js
{
  type: 'LinearMarkDisplay',
  encoding: { y: { scale: { type: 'log' }, axis: { title: 'depth' } } },
}
```

## 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 |
| --- | --- |
| **y**<br><code>y</code> | The value axis every mark's `encoding.y` is read through: `scale`, `axis` and `rules`. |

