<!-- Public documentation export; not library implementation source. -->
# ITimeScaleApi

[Integration guide](https://docs.lumencharts.com/charting-library/configuration#chart-types-panes-and-scales) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## coordinateToTime {#coordinatetotime}

```ts
coordinateToTime(x: number): number | null;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `x` | `number` | Yes |

## barSpacingChanged {#barspacingchanged}

```ts
barSpacingChanged(): ISubscription<(newBarSpacing: number) => void>;
```

Use the type signature above and the integration guide for the owning capability.

## rightOffsetChanged {#rightoffsetchanged}

```ts
rightOffsetChanged(): ISubscription<(rightOffset: number) => void>;
```

Use the type signature above and the integration guide for the owning capability.

## setRightOffset {#setrightoffset}

```ts
setRightOffset(offset: number): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `offset` | `number` | Yes |

## setBarSpacing {#setbarspacing}

```ts
setBarSpacing(newBarSpacing: number): void;
```

Use the type signature above and the integration guide for the owning capability.

| Parameter | Type | Required |
| --- | --- | --- |
| `newBarSpacing` | `number` | Yes |

## barSpacing {#barspacing}

```ts
barSpacing(): number;
```

Use the type signature above and the integration guide for the owning capability.

## rightOffset {#rightoffset}

```ts
rightOffset(): number;
```

Use the type signature above and the integration guide for the owning capability.

## width {#width}

```ts
width(): number;
```

Use the type signature above and the integration guide for the owning capability.

## defaultRightOffset {#defaultrightoffset}

```ts
defaultRightOffset(): IWatchedValue<number>;
```

Use the type signature above and the integration guide for the owning capability.

## defaultRightOffsetPercentage {#defaultrightoffsetpercentage}

```ts
defaultRightOffsetPercentage(): IWatchedValue<number>;
```

Use the type signature above and the integration guide for the owning capability.

## usePercentageRightOffset {#usepercentagerightoffset}

```ts
usePercentageRightOffset(): IWatchedValue<boolean>;
```

Use the type signature above and the integration guide for the owning capability.

## Related types

- [ISubscription](https://docs.lumencharts.com/charting-library/api/ISubscription)
- [IWatchedValue](https://docs.lumencharts.com/charting-library/api/IWatchedValue)

---
Documentation page: https://docs.lumencharts.com/charting-library/api/ITimeScaleApi
