# ChartObjectOptions Interface

> ChartObjectOptions interface in the browser 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 > Browser Editor > ChartObjectOptions Interface
- **1145 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/llms-full.txt

---

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

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [anchor](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/anchor-property/llms-full.txt) | The anchor value of ChartObjectOptions. |
| [axisTitles](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/axistitles-property/llms-full.txt) | The axisTitles value of ChartObjectOptions. |
| [colors](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/colors-property/llms-full.txt) | The colors value of ChartObjectOptions. |
| [dataRange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/datarange-property/llms-full.txt) | The dataRange value of ChartObjectOptions. |
| [elements](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/elements-property/llms-full.txt) | The elements value of ChartObjectOptions. |
| [filters](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/filters-property/llms-full.txt) | The filters value of ChartObjectOptions. |
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/id-property/llms-full.txt) | The id value of ChartObjectOptions. |
| [legend](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/legend-property/llms-full.txt) | The legend value of ChartObjectOptions. |
| [origin](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/origin-property/llms-full.txt) | The origin value of ChartObjectOptions. |
| [series](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/series-property/llms-full.txt) | The series value of ChartObjectOptions. |
| [seriesOrientation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/seriesorientation-property/llms-full.txt) | The seriesOrientation value of ChartObjectOptions. |
| [size](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/size-property/llms-full.txt) | The size value of ChartObjectOptions. |
| [style](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/style-property/llms-full.txt) | The style value of ChartObjectOptions. |
| [title](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/title-property/llms-full.txt) | The title value of ChartObjectOptions. |
| [type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/type-property/llms-full.txt) | The type value of ChartObjectOptions. |
| [presentation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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 { Workbook } from '@txtextcontrol/tx-sheet-control';
import type { ChartObjectOptions } from '@txtextcontrol/tx-sheet-control';

function createChartObjectOptionsReport(book: 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: ChartObjectOptions = {
        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 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

- [ChartObjectOptions.anchor Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/anchor-property/llms-full.txt): ChartObjectOptions.anchor property in the TX Sheet Control TypeScript API for the browser, with its type Anchor | undefined and a TypeScript example.
- [ChartObjectOptions.axisTitles Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/axistitles-property/llms-full.txt): ChartObjectOptions.axisTitles property in the TX Sheet Control TypeScript API for the browser, with a TypeScript example.
- [ChartObjectOptions.colors Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/colors-property/llms-full.txt): ChartObjectOptions.colors property in the TX Sheet Control TypeScript API for the browser, with its type string[] | undefined and a TypeScript example.
- [ChartObjectOptions.dataRange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/datarange-property/llms-full.txt): ChartObjectOptions.dataRange property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.elements Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/elements-property/llms-full.txt): ChartObjectOptions.elements property in the TX Sheet Control TypeScript API for the browser, with its type ChartElements | undefined and a TypeScript example.
- [ChartObjectOptions.filters Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/filters-property/llms-full.txt): ChartObjectOptions.filters property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [ChartObjectOptions.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/id-property/llms-full.txt): ChartObjectOptions.id property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.legend Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/legend-property/llms-full.txt): ChartObjectOptions.legend property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [ChartObjectOptions.origin Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/origin-property/llms-full.txt): ChartObjectOptions.origin property in the browser 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/browser/chartobjectoptions/presentation-property/llms-full.txt): ChartObjectOptions.presentation property in the browser TypeScript API, with its type ChartAppearance['presentation'] and a TypeScript example.
- [ChartObjectOptions.series Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/series-property/llms-full.txt): ChartObjectOptions.series property in the TX Sheet Control TypeScript API for the browser, with its type ChartSeries[] | undefined and a TypeScript example.
- [ChartObjectOptions.seriesOrientation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/seriesorientation-property/llms-full.txt): ChartObjectOptions.seriesOrientation property in the browser 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/browser/chartobjectoptions/size-property/llms-full.txt): ChartObjectOptions.size property in the TX Sheet Control TypeScript API for the browser, with its type Size | undefined and a TypeScript example.
- [ChartObjectOptions.style Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/style-property/llms-full.txt): ChartObjectOptions.style property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [ChartObjectOptions.title Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/title-property/llms-full.txt): ChartObjectOptions.title property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [ChartObjectOptions.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/chartobjectoptions/type-property/llms-full.txt): ChartObjectOptions.type property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.

---

## Nearby

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