# ChartData Interface

> ChartData interface in the TX Sheet Control TypeScript API for Node.js: 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 > Node.js Server > ChartData Interface
- **324 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/llms-full.txt

---

Worksheet references or inline values defining chart categories and series.

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [formula](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/formula-property/llms-full.txt) | The formula value of ChartData. |
| [values](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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
function inspectChartDataFormula(chartData: { formula: string | undefined }) {
    const value = chartData['formula'];
    console.log('ChartData.formula', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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/nodejs/chartdata/formula-property/llms-full.txt): ChartData.formula property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [ChartData.values Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/values-property/llms-full.txt): ChartData.values property in the TX Sheet Control TypeScript API for Node.js, 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/nodejs/chartcollection/sheet-property/llms-full.txt)
- **Next:** [ChartData.formula Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/formula-property/llms-full.txt)
