# ChartElements Interface

> ChartElements interface in the TX Sheet Control TypeScript API for Node.js: Optional chart titles, labels, legends, axes and gridline settings.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > ChartElements Interface
- **612 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/llms-full.txt

---

Optional chart titles, labels, legends, axes and gridline settings.

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 |
|---|---|
| [axes](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/axes-property/llms-full.txt) | The axes value of ChartElements. |
| [axisTitles](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/axistitles-property/llms-full.txt) | The axisTitles value of ChartElements. |
| [chartTitle](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/charttitle-property/llms-full.txt) | The chartTitle value of ChartElements. |
| [dataLabels](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/datalabels-property/llms-full.txt) | The dataLabels value of ChartElements. |
| [dataTable](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/datatable-property/llms-full.txt) | The dataTable value of ChartElements. |
| [errorBars](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/errorbars-property/llms-full.txt) | The errorBars value of ChartElements. |
| [gridlines](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/gridlines-property/llms-full.txt) | The gridlines value of ChartElements. |
| [legend](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/legend-property/llms-full.txt) | The legend value of ChartElements. |
| [trendline](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/trendline-property/llms-full.txt) | The trendline value of ChartElements. |

### Examples

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

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

function inspectChartElementsAxes(
    chartElements: NonNullable<
        Parameters<Awaited<ReturnType<ServerSheetControl['workbook']['sheets']['get']>>['charts']['add']>[0]['elements']
    >,
) {
    const value = chartElements['axes'];
    console.log('ChartElements.axes', 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

- [ChartElements.axes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/axes-property/llms-full.txt): ChartElements.axes property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.axisTitles Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/axistitles-property/llms-full.txt): ChartElements.axisTitles property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.chartTitle Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/charttitle-property/llms-full.txt): ChartElements.chartTitle property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.dataLabels Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/datalabels-property/llms-full.txt): ChartElements.dataLabels property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.dataTable Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/datatable-property/llms-full.txt): ChartElements.dataTable property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.errorBars Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/errorbars-property/llms-full.txt): ChartElements.errorBars property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.gridlines Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/gridlines-property/llms-full.txt): ChartElements.gridlines property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.legend Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/legend-property/llms-full.txt): ChartElements.legend property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [ChartElements.trendline Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/trendline-property/llms-full.txt): ChartElements.trendline property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [ChartData.values Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartdata/values-property/llms-full.txt)
- **Next:** [ChartElements.axes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartelements/axes-property/llms-full.txt)
