# ChartElements Interface

> ChartElements interface in the TX Sheet Control TypeScript API for the browser: 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 > Browser Editor > ChartElements Interface
- **556 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartelements/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartelements/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartelements/llms-full.txt

---

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

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

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

### Members

#### Properties

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

function inspectChartElementsAxes(chartElements: ChartElements) {
    const value = chartElements['axes'];
    console.log('ChartElements.axes', 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

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

---

## Nearby

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