---
id: "packages/active-charts/all-exports/zoom-options"
title: "Zoom options"
description: "ZoomAnimationOptions, ZoomOptions: generated from the source of active-charts."
url: "/packages/active-charts/all-exports/zoom-options"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:zoom-options"
---

# Zoom options

Exported by `@workspace/active-charts`. Generated from the package source; part of [the index of every export](/packages/active-charts/all-exports).

## Types

**ZoomAnimationOptions**

```ts
interface ZoomAnimationOptions {
  enabled?: boolean;
  duration?: number;
  easing?: ChartMotionEasing;
}
```

The glide of a discrete zoom (reset, brush release, drag-select): plain,
serialisable data, with the easing names of the motion contract. Zoom is navigation, not a motion class: the profile does not
time it, but reduced motion and `animation: false` turn it into a jump.

**ZoomOptions**

```ts
interface ZoomOptions {
  enabled?: boolean;
  axes?: 'x' | 'y' | 'xy';
  scrollZoom?: boolean;
  dragPan?: boolean;
  minVisibleItems?: number;
  zoomSpeed?: number;
  showResetButton?: boolean;
  doubleClickReset?: boolean;
  animation?: ZoomAnimationOptions | boolean;
  dragSelect?: boolean;
  yAutoFit?: boolean;
}
```
