---
id: "packages/active-charts/all-exports/menu"
title: "Menu"
description: "ChartCopyError, ChartCopyAction, ChartCopyErrorCode: generated from the source of active-charts."
url: "/packages/active-charts/all-exports/menu"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:menu"
---

# Menu

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

## Functions, hooks and constants

**ChartCopyError**

```ts
class ChartCopyError extends Error {
  readonly code: ChartCopyErrorCode;
  readonly action: ChartCopyAction;
  readonly errorName?: string;
  constructor(options: {
    code: ChartCopyErrorCode;
    action: ChartCopyAction;
    errorName?: string;
  });
}
```

A copy from the chart menu that did not reach the clipboard,
given to `contextMenu.onCopyError`. It carries what failed, never what
was being copied.

## Types

**ChartCopyAction**

```ts
type ChartCopyAction = 'copyValue' | 'copyValues' | 'copyAsTable';
```

The menu's copy actions.

**ChartCopyErrorCode**

```ts
type ChartCopyErrorCode = 'COPY_REJECTED' | 'COPY_UNAVAILABLE';
```

Why a copy failed: the browser refused or failed the write
(`COPY_REJECTED`), or the clipboard was no longer there when the reader
chose the item (`COPY_UNAVAILABLE`).
