# ChartData Interface

> ChartData interface in the TX Sheet Control TypeScript API for the browser: Worksheet references or inline values defining chart categories and series.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > ChartData Interface
- **327 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/llms-full.txt

---

Worksheet references or inline values defining chart categories and series.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [formula](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/formula-property/llms-full.txt) | The formula value of ChartData. |
| [values](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/values-property/llms-full.txt) | The values value of ChartData. |

### Examples

Pass the ChartData value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectChartDataFormula(chartData: ChartData) {
    const value = chartData['formula'];
    console.log('ChartData.formula', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt)

---

## In This Section

- [ChartData.formula Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/formula-property/llms-full.txt): ChartData.formula property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [ChartData.values Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/values-property/llms-full.txt): ChartData.values property in the TX Sheet Control TypeScript API for the browser, with its type (string | number | null)[] and a TypeScript example.

---

## Nearby

- **Previous:** [ChartCollection.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartcollection/sheet-property/llms-full.txt)
- **Next:** [ChartData.formula Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartdata/formula-property/llms-full.txt)
