# ExternalChartingOptions

Canonical page: https://www.adaptabletools.com/docs/reference/externalchartingoptions

Options for managing External (i.e. non AG Grid) Charts

```ts title="TypeScript"
export interface ExternalChartingOptions 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [isChartOpened](https://www.adaptabletools.com/docs/reference/externalchartingoptions.md#ischartopened) | `(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => boolean` | Needs to be implemented to specify if Chart is opened; used to set Show Button&#39;s highlighting |
| [onDeleteChart](https://www.adaptabletools.com/docs/reference/externalchartingoptions.md#ondeletechart) | `(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void` | Called when User deletes a persisted Chart |
| [onHideChart](https://www.adaptabletools.com/docs/reference/externalchartingoptions.md#onhidechart) | `(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void` | Called when User clicks on Hide button next to Chart |
| [onPreviewChart](https://www.adaptabletools.com/docs/reference/externalchartingoptions.md#onpreviewchart) | `(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => ExternalChartDefinition` | Shows Chart in Settings Panel preview (not saved into State); returned definition will be passed to &#39;onHideChart&#39; when Preview closes |
| [onShowChart](https://www.adaptabletools.com/docs/reference/externalchartingoptions.md#onshowchart) | `(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void` | Called when User clicks on Show button next to Chart |

## Property Details

### isChartOpened

Needs to be implemented to specify if Chart is opened; used to set Show Button&#39;s highlighting

```ts title="TypeScript"
isChartOpened?: (context: ExternalChartingContext) => boolean;
```

###### Property Value

`(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => boolean`

### onDeleteChart

Called when User deletes a persisted Chart

```ts title="TypeScript"
onDeleteChart?: (context: ExternalChartingContext) => void;
```

###### Property Value

`(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void`

### onHideChart

Called when User clicks on Hide button next to Chart

```ts title="TypeScript"
onHideChart?: (context: ExternalChartingContext) => void;
```

###### Property Value

`(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void`

### onPreviewChart

Shows Chart in Settings Panel preview (not saved into State); returned definition will be passed to &#39;onHideChart&#39; when Preview closes

```ts title="TypeScript"
onPreviewChart?: (context: ExternalChartingContext) => ExternalChartDefinition;
```

###### Property Value

`(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => ExternalChartDefinition`

### onShowChart

Called when User clicks on Show button next to Chart

```ts title="TypeScript"
onShowChart?: (context: ExternalChartingContext) => void;
```

###### Property Value

`(context: `[`ExternalChartingContext`](https://www.adaptabletools.com/docs/reference/externalchartingcontext.md)`) => void`
