# ChartObjectOptions Interface

> ChartObjectOptions interface in the Node.js TypeScript API: Chart creation settings with worksheet-bound anchors and unscaled CSS pixel dimensions.

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

---

Chart creation settings with worksheet-bound anchors and unscaled CSS pixel dimensions.

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 |
|---|---|
| [anchor](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/anchor-property/llms-full.txt) | The anchor value of ChartObjectOptions. |
| [axisTitles](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/axistitles-property/llms-full.txt) | The axisTitles value of ChartObjectOptions. |
| [colors](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/colors-property/llms-full.txt) | The colors value of ChartObjectOptions. |
| [dataRange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/datarange-property/llms-full.txt) | The dataRange value of ChartObjectOptions. |
| [elements](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/elements-property/llms-full.txt) | The elements value of ChartObjectOptions. |
| [filters](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/filters-property/llms-full.txt) | The filters value of ChartObjectOptions. |
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/id-property/llms-full.txt) | The id value of ChartObjectOptions. |
| [legend](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/legend-property/llms-full.txt) | The legend value of ChartObjectOptions. |
| [origin](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/origin-property/llms-full.txt) | The origin value of ChartObjectOptions. |
| [series](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/series-property/llms-full.txt) | The series value of ChartObjectOptions. |
| [seriesOrientation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/seriesorientation-property/llms-full.txt) | The seriesOrientation value of ChartObjectOptions. |
| [size](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/size-property/llms-full.txt) | The size value of ChartObjectOptions. |
| [style](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/style-property/llms-full.txt) | The style value of ChartObjectOptions. |
| [title](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/title-property/llms-full.txt) | The title value of ChartObjectOptions. |
| [type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/type-property/llms-full.txt) | The type value of ChartObjectOptions. |
| [presentation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/presentation-property/llms-full.txt) | Configure chart layout, independent axes and native labels. |

### Examples

Use a fresh workbook. Create and format the sample data, apply this API and retain the returned document or result in your application. In the browser pass editor.workbook; in Node.js pass the server control.

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

function createChartObjectOptionsReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.range('A1:B5').setValues([
        ['Region', 'Revenue'],
        ['North', 42000],
        ['South', 38500],
        ['East', 31200],
        ['West', 44900],
    ]);

    const chart = sheet.charts.add({
        type: 'column',
        title: 'Revenue by region',
        dataRange: 'A1:B5',
        anchor: { cell: 'D2' },
        size: { width: 480, height: 240 },
    });

    const chartObjectSettings: Parameters<
        Awaited<ReturnType<ServerSheetControl['workbook']['sheets']['get']>>['charts']['add']
    >[0] = {
        anchor: { cell: 'D2' },
        size: { width: 640, height: 360 },
        title: 'Revenue by region',
        type: 'column',
        dataRange: 'A1:B5',
    };

    sheet.charts.add(chartObjectSettings);
    return sheet;
}
```

### 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

- [ChartObjectOptions.anchor Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/anchor-property/llms-full.txt): ChartObjectOptions.anchor property in the TX Sheet Control TypeScript API for Node.js, with its type Anchor | undefined and a TypeScript example.
- [ChartObjectOptions.axisTitles Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/axistitles-property/llms-full.txt): ChartObjectOptions.axisTitles property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [ChartObjectOptions.colors Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/colors-property/llms-full.txt): ChartObjectOptions.colors property in the TX Sheet Control TypeScript API for Node.js, with its type string[] | undefined and a TypeScript example.
- [ChartObjectOptions.dataRange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/datarange-property/llms-full.txt): ChartObjectOptions.dataRange property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.elements Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/elements-property/llms-full.txt): ChartObjectOptions.elements property in the TX Sheet Control TypeScript API for Node.js, with its type ChartElements | undefined and a TypeScript example.
- [ChartObjectOptions.filters Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/filters-property/llms-full.txt): ChartObjectOptions.filters property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [ChartObjectOptions.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/id-property/llms-full.txt): ChartObjectOptions.id property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.legend Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/legend-property/llms-full.txt): ChartObjectOptions.legend property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [ChartObjectOptions.origin Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/origin-property/llms-full.txt): ChartObjectOptions.origin property in the Node.js TypeScript API, with its type { sheetId: string; chartId: string; } | undefined and a TypeScript example.
- [ChartObjectOptions.presentation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/presentation-property/llms-full.txt): ChartObjectOptions.presentation property in the Node.js TypeScript API, with its type ChartAppearance['presentation'] and a TypeScript example.
- [ChartObjectOptions.series Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/series-property/llms-full.txt): ChartObjectOptions.series property in the TX Sheet Control TypeScript API for Node.js, with its type ChartSeries[] | undefined and a TypeScript example.
- [ChartObjectOptions.seriesOrientation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/seriesorientation-property/llms-full.txt): ChartObjectOptions.seriesOrientation property in the Node.js TypeScript API, with its type "columns" | "rows" | undefined and a TypeScript example.
- [ChartObjectOptions.size Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/size-property/llms-full.txt): ChartObjectOptions.size property in the TX Sheet Control TypeScript API for Node.js, with its type Size | undefined and a TypeScript example.
- [ChartObjectOptions.style Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/style-property/llms-full.txt): ChartObjectOptions.style property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [ChartObjectOptions.title Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/title-property/llms-full.txt): ChartObjectOptions.title property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/type-property/llms-full.txt): ChartObjectOptions.type property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [ChartHandle.update Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/charthandle/update-method/llms-full.txt)
- **Next:** [ChartObjectOptions.anchor Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/chartobjectoptions/anchor-property/llms-full.txt)
