# DashboardChartSettings Interface

> DashboardChartSettings interface in the TX Sheet Control JavaScript API for the browser, with its syntax and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > DashboardChartSettings Interface
- **2801 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/llms-full.txt

---

Chart marks share query aliases rather than raw data access. Map geometry is supplied by the application, offline.

Package: `@txtextcontrol/tx-sheet-control`. This is a settings/result contract, not a runtime constructor.

### Members

| Property | Description |
|---|---|
| [axis](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/axis-property/llms-full.txt) | Configures axis on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [secondaryAxis](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/secondaryaxis-property/llms-full.txt) | Configures secondaryAxis on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [referenceLines](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/referencelines-property/llms-full.txt) | Configures referenceLines on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [target](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/target-property/llms-full.txt) | Configures target on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [bands](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/bands-property/llms-full.txt) | Configures bands on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [missingValues](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/missingvalues-property/llms-full.txt) | Configures missingValues on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [labelPosition](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/labelposition-property/llms-full.txt) | Configures labelPosition on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [conditionalColors](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/conditionalcolors-property/llms-full.txt) | Configures conditionalColors on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [xField](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/xfield-property/llms-full.txt) | Configures xField on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [yField](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/yfield-property/llms-full.txt) | Configures yField on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [sizeField](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/sizefield-property/llms-full.txt) | Configures sizeField on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [categoryField](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/categoryfield-property/llms-full.txt) | Configures categoryField on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [panelField](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/panelfield-property/llms-full.txt) | Configures panelField on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [secondaryMeasure](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/secondarymeasure-property/llms-full.txt) | Configures secondaryMeasure on DashboardChartSettings; apply the complete settings object through its owning dashboard. |
| [bins](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/bins-property/llms-full.txt) | Histogram bin count, 1..100; defaults to the square root of numeric observations, capped at 30. |
| [totals](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/totals-property/llms-full.txt) | Category labels whose waterfall bars are absolute totals rather than relative contributions. |
| [mapFeatures](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/mapfeatures-property/llms-full.txt) | Local GeoJSON-like Polygon/MultiPolygon features; coordinates are longitude/latitude, no network requests. |

### Examples

Configure a complete sales dashboard using this contract. Pass the workbook from your existing editor or server control.

```javascript
async function configureSalesDashboard(book) {
    const sheet = book.sheets.at(0);
    sheet.range('A1:G5').setValues([
        ['Region', 'Country', 'Customer', 'Revenue', 'Profit', 'Date', 'Units'],
        ['Europe', 'Germany', 'Studio', 42000, 12000, '2026-01-15', 12],
        ['Europe', 'France', 'Labs', 38000, 9000, '2026-02-15', 15],
        ['Americas', 'Canada', 'Partners', 31000, 8000, '2026-01-15', 9],
        ['Americas', 'United States', 'Design', 49000, 15000, '2026-02-15', 18]
    ]);
    book.analytics.setSource({ id: 'sales', name: 'Sales', sheetId: sheet.id, range: 'A1:G5', hasHeaderRow: true });
    const dashboard = book.dashboards.add('Sales Performance');
    dashboard.update({ sections: [{ id: 'summary', title: 'Executive Summary' }] });
    dashboard.addWidget({
        id: 'revenue', type: 'column', title: 'Regional Revenue',
        placement: { x: 0, y: 0, width: 8, height: 6 },
        query: { sourceId: 'sales', dimensions: ['Region'], measures: [
            { field: 'Revenue', aggregation: 'SUM', alias: 'Revenue' },
            { field: 'Profit', aggregation: 'SUM', alias: 'Profit' }
        ] }
    });
    const settings = {
        "axis": {
            "minimum": 0,
            "maximum": 200000,
            "title": "Revenue (USD)",
            "scale": "linear",
            "showGridlines": true
        },
        "secondaryAxis": {
            "minimum": 0,
            "maximum": 60000,
            "title": "Profit (USD)"
        },
        "referenceLines": [
            {
                "value": 100000,
                "label": "Regional Target",
                "color": "#B38538",
                "dashed": true
            }
        ],
        "target": 100000,
        "bands": [
            {
                "maximum": 200000,
                "color": "#DCE8F2"
            },
            {
                "maximum": 100000,
                "color": "#9EBFDB"
            }
        ],
        "missingValues": "gap",
        "labelPosition": "inside",
        "conditionalColors": [
            {
                "field": "Revenue",
                "operator": "lessThan",
                "value": 50000,
                "color": "#CD526B"
            }
        ],
        "xField": "Revenue",
        "yField": "Profit",
        "sizeField": "Units",
        "categoryField": "Region",
        "panelField": "Country",
        "secondaryMeasure": "Profit",
        "bins": 8,
        "totals": [
            "Total"
        ],
        "mapFeatures": [
            {
                "key": "Europe",
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            0,
                            40
                        ],
                        [
                            25,
                            40
                        ],
                        [
                            25,
                            60
                        ],
                        [
                            0,
                            60
                        ],
                        [
                            0,
                            40
                        ]
                    ]
                ]
            }
        ]
    };
    dashboard.updateWidget('revenue', { chart: settings });
    book.activeView = { type: 'dashboard', id: dashboard.id };
}
```

---

## In This Section

- [DashboardChartSettings.axis Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/axis-property/llms-full.txt): DashboardChartSettings.axis property in the TX Sheet Control JavaScript API for the browser, with its type DashboardAxis and a JavaScript example.
- [DashboardChartSettings.bands Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/bands-property/llms-full.txt): DashboardChartSettings.bands property in the TX Sheet Control JavaScript API for the browser, with a JavaScript example.
- [DashboardChartSettings.bins Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/bins-property/llms-full.txt): DashboardChartSettings.bins property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardChartSettings.categoryField Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/categoryfield-property/llms-full.txt): DashboardChartSettings.categoryField property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardChartSettings.conditionalColors Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/conditionalcolors-property/llms-full.txt): DashboardChartSettings.conditionalColors property in the TX Sheet Control JavaScript API for the browser, with a JavaScript example.
- [DashboardChartSettings.labelPosition Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/labelposition-property/llms-full.txt): DashboardChartSettings.labelPosition property in the browser JavaScript API, with its type 'inside' | 'outside' | 'none' and a JavaScript example.
- [DashboardChartSettings.mapFeatures Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/mapfeatures-property/llms-full.txt): DashboardChartSettings.mapFeatures property in the browser JavaScript API, with its type DashboardMapFeature[] and a JavaScript example.
- [DashboardChartSettings.missingValues Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/missingvalues-property/llms-full.txt): DashboardChartSettings.missingValues property in the browser JavaScript API, with its type 'gap' | 'zero' | 'connect' and a JavaScript example.
- [DashboardChartSettings.panelField Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/panelfield-property/llms-full.txt): DashboardChartSettings.panelField property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardChartSettings.referenceLines Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/referencelines-property/llms-full.txt): DashboardChartSettings.referenceLines property in the TX Sheet Control JavaScript API for the browser, with a JavaScript example.
- [DashboardChartSettings.secondaryAxis Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/secondaryaxis-property/llms-full.txt): DashboardChartSettings.secondaryAxis property in the TX Sheet Control JavaScript API for the browser, with its type DashboardAxis and a JavaScript example.
- [DashboardChartSettings.secondaryMeasure Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/secondarymeasure-property/llms-full.txt): DashboardChartSettings.secondaryMeasure property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardChartSettings.sizeField Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/sizefield-property/llms-full.txt): DashboardChartSettings.sizeField property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardChartSettings.target Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/target-property/llms-full.txt): DashboardChartSettings.target property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardChartSettings.totals Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/totals-property/llms-full.txt): DashboardChartSettings.totals property in the TX Sheet Control JavaScript API for the browser, with its type string[] and a JavaScript example.
- [DashboardChartSettings.xField Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/xfield-property/llms-full.txt): DashboardChartSettings.xField property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardChartSettings.yField Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/yfield-property/llms-full.txt): DashboardChartSettings.yField property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.

---

## Nearby

- **Previous:** [DashboardAxis.showGridlines Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardaxis/showgridlines-property/llms-full.txt)
- **Next:** [DashboardChartSettings.axis Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardchartsettings/axis-property/llms-full.txt)
