# EditorUi.selectChart Method

> EditorUi.selectChart method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > EditorUi > EditorUi.selectChart Method
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectchart-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectchart-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectchart-method/llms-full.txt

---

The selectChart operation of EditorUi.

Owner: [EditorUi](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
selectChart(chart: Chart): void
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `chart` | `Chart` | No | Value matching chart's declared type and the owning object's validation rules. |

### Return Value

`void`.

### Examples

Pass an existing EditorUi from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

```typescript
import type { EditorUi, ChartHandle } from '@txtextcontrol/tx-sheet-control';

function applyEditorUiSelectChart(editorUi: EditorUi, chart: ChartHandle) {
    editorUi['selectChart'](chart);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [EditorUi Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/llms-full.txt)
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt)
- [Chart Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chart/llms-full.txt)

---

## Nearby

- **Previous:** [EditorUi.ribbon Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/ribbon-property/llms-full.txt)
- **Next:** [EditorUi.selectDrawing Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectdrawing-method/llms-full.txt)
