# DashboardWidgetAppearance Interface

> DashboardWidgetAppearance 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 > DashboardWidgetAppearance Interface
- **2688 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/llms-full.txt

---

Portable widget presentation, shared by browser authoring and headless rendering. Sizes are points (8..72); colors are six-digit hex. Omitted fields inherit the dashboard defaults.

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

### Members

| Property | Description |
|---|---|
| [backgroundColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/backgroundcolor-property/llms-full.txt) | Configures backgroundColor on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [gradient](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/gradient-property/llms-full.txt) | Portable color stops; backgrounds render identically in browser and headless SVG. |
| [padding](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/padding-property/llms-full.txt) | Card geometry in CSS pixels; padding 0..48, radius 0..32, border 0..8. |
| [borderRadius](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/borderradius-property/llms-full.txt) | Configures borderRadius on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [borderWidth](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/borderwidth-property/llms-full.txt) | Configures borderWidth on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [shadow](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/shadow-property/llms-full.txt) | Soft card shadow. Opacity 0..1, blur 0..40, offset -20..20 CSS pixels. |
| [borderColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/bordercolor-property/llms-full.txt) | Configures borderColor on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [titleColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/titlecolor-property/llms-full.txt) | Configures titleColor on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [titleFontSize](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/titlefontsize-property/llms-full.txt) | Configures titleFontSize on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [showTitle](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/showtitle-property/llms-full.txt) | Configures showTitle on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [textColor](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/textcolor-property/llms-full.txt) | Configures textColor on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [fontFamily](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/fontfamily-property/llms-full.txt) | Configures fontFamily on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [fontSize](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/fontsize-property/llms-full.txt) | Configures fontSize on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [bold](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/bold-property/llms-full.txt) | Configures bold on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [italic](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/italic-property/llms-full.txt) | Configures italic on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [underline](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/underline-property/llms-full.txt) | Configures underline on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [horizontalAlign](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/horizontalalign-property/llms-full.txt) | Configures horizontalAlign on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [chartColors](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/chartcolors-property/llms-full.txt) | Ordered palette, 1..12 colors. Bar/line series and pie/donut categories cycle through it. |
| [legend](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/legend-property/llms-full.txt) | Configures legend on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [showDataLabels](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/showdatalabels-property/llms-full.txt) | Configures showDataLabels on DashboardWidgetAppearance; apply the complete settings object through its owning dashboard. |
| [animation](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/animation-property/llms-full.txt) | Quick chart entrance animation; defaults to true. Browser reduced-motion preferences always take precedence. |

### 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 = {
        "gradient": {
            "type": "linear",
            "angle": 135,
            "stops": [
                {
                    "offset": 0,
                    "color": "#12335A"
                },
                {
                    "offset": 1,
                    "color": "#376E9C"
                }
            ]
        },
        "padding": 20,
        "borderRadius": 16,
        "borderWidth": 1,
        "shadow": {
            "color": "#000000",
            "opacity": 0.12,
            "blur": 16,
            "offsetX": 0,
            "offsetY": 4
        },
        "fontFamily": "Noto Sans",
        "fontSize": 11,
        "textColor": "#F2F6FF",
        "backgroundColor": "#17385A",
        "titleColor": "#FFFFFF",
        "borderColor": "#496586",
        "titleFontSize": 13,
        "showTitle": true,
        "bold": false,
        "italic": false,
        "underline": false,
        "horizontalAlign": "left",
        "chartColors": [
            "#75B5FF",
            "#5CD4B4"
        ],
        "legend": "bottom",
        "showDataLabels": true,
        "animation": true
    };
    dashboard.updateWidget('revenue', { appearance: settings });
    book.activeView = { type: 'dashboard', id: dashboard.id };
}
```

---

## In This Section

- [DashboardWidgetAppearance.animation Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/animation-property/llms-full.txt): DashboardWidgetAppearance.animation property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.
- [DashboardWidgetAppearance.backgroundColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/backgroundcolor-property/llms-full.txt): DashboardWidgetAppearance.backgroundColor property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardWidgetAppearance.bold Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/bold-property/llms-full.txt): DashboardWidgetAppearance.bold property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.
- [DashboardWidgetAppearance.borderColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/bordercolor-property/llms-full.txt): DashboardWidgetAppearance.borderColor property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardWidgetAppearance.borderRadius Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/borderradius-property/llms-full.txt): DashboardWidgetAppearance.borderRadius property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardWidgetAppearance.borderWidth Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/borderwidth-property/llms-full.txt): DashboardWidgetAppearance.borderWidth property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardWidgetAppearance.chartColors Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/chartcolors-property/llms-full.txt): DashboardWidgetAppearance.chartColors property in the TX Sheet Control JavaScript API for the browser, with its type string[] and a JavaScript example.
- [DashboardWidgetAppearance.fontFamily Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/fontfamily-property/llms-full.txt): DashboardWidgetAppearance.fontFamily property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardWidgetAppearance.fontSize Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/fontsize-property/llms-full.txt): DashboardWidgetAppearance.fontSize property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardWidgetAppearance.gradient Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/gradient-property/llms-full.txt): DashboardWidgetAppearance.gradient property in the TX Sheet Control JavaScript API for the browser, with its type DashboardGradient and a JavaScript example.
- [DashboardWidgetAppearance.horizontalAlign Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/horizontalalign-property/llms-full.txt): DashboardWidgetAppearance.horizontalAlign property in the browser JavaScript API, with its type 'left' | 'center' | 'right' and a JavaScript example.
- [DashboardWidgetAppearance.italic Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/italic-property/llms-full.txt): DashboardWidgetAppearance.italic property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.
- [DashboardWidgetAppearance.legend Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/legend-property/llms-full.txt): DashboardWidgetAppearance.legend property in the browser JavaScript API, with its type 'none' | 'bottom' | 'right' and a JavaScript example.
- [DashboardWidgetAppearance.padding Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/padding-property/llms-full.txt): DashboardWidgetAppearance.padding property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardWidgetAppearance.shadow Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/shadow-property/llms-full.txt): DashboardWidgetAppearance.shadow property in the TX Sheet Control JavaScript API for the browser, with its type DashboardShadow and a JavaScript example.
- [DashboardWidgetAppearance.showDataLabels Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/showdatalabels-property/llms-full.txt): DashboardWidgetAppearance.showDataLabels property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.
- [DashboardWidgetAppearance.showTitle Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/showtitle-property/llms-full.txt): DashboardWidgetAppearance.showTitle property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.
- [DashboardWidgetAppearance.textColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/textcolor-property/llms-full.txt): DashboardWidgetAppearance.textColor property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardWidgetAppearance.titleColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/titlecolor-property/llms-full.txt): DashboardWidgetAppearance.titleColor property in the TX Sheet Control JavaScript API for the browser, with its type string and a JavaScript example.
- [DashboardWidgetAppearance.titleFontSize Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/titlefontsize-property/llms-full.txt): DashboardWidgetAppearance.titleFontSize property in the TX Sheet Control JavaScript API for the browser, with its type number and a JavaScript example.
- [DashboardWidgetAppearance.underline Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/underline-property/llms-full.txt): DashboardWidgetAppearance.underline property in the TX Sheet Control JavaScript API for the browser, with its type boolean and a JavaScript example.

---

## Nearby

- **Previous:** [AnalyticsQuery.limit Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/analyticsquery/limit-property/llms-full.txt)
- **Next:** [DashboardWidgetAppearance.backgroundColor Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/dashboardwidgetappearance/backgroundcolor-property/llms-full.txt)
