---
schema_version: "1"
id: bf7252b1ffd0f8c94f28a8fce0c3e3f462316f3ac3c9c7d05f3d55f569a8c265
title: widgets JSON
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_json/guides/bi-dbjson-widgets.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-json/guide/bi-dbjson-widgets.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 49e3efdaadf5c6697968c86eef5a3ebb45660077df43cdeb5821ea1bb462bf4f
products:
  - Analytics Dashboard JSON Developer Guide
  - analytics
---

# widgets JSON

The `widgets` section defines the widgets that appear in the dashboard. Each widget has a name.

## Example

```nolang
"widgets": {
	"text_1": {
		"parameters": {
			"fontSize": 20,
			"text": "Grouping",
			"textAlignment": "center",
			"textColor": "#091A3E"
		},
		"type": "text"
	},
	"pillbox_1": {
		"parameters": {
			"compact": false,
			"exploreLink": false,
			"step": "StaticSAQLMinRanges"
		},
		"type": "pillbox"
	},
	"chart_1": {
		"parameters": {
			"autoFitMode": "fit",
			"showValues": true,
			"legend": {
				"showHeader": true,
				"show": true,
				"position": "right-top",
				"inside": false
			},
			"axisMode": "multi",
			"visualizationType": "hbar",
			"exploreLink": true,
			"title": {
				"label": "",
				"align": "center",
				"subtitleLabel": ""
			},
			"trellis": {
				"enable": false,
				"type": "x",
				"chartsPerLine": 4
			},
			"measureAxis2": {
				"showTitle": true,
				"showAxis": true,
				"title": ""
			},
			"measureAxis1": {
				"showTitle": true,
				"showAxis": true,
				"title": ""
			},
			"theme": "wave",
			"step": "Account_BillingCount_1",
			"dimensionAxis": {
				"showTitle": true,
				"showAxis": true,
				"title": ""
			}
		},
		"type": "chart"
	}
}
```

- **[widget Properties](https://developer.salesforce.com/docs/analytics/bi-dev-guide-json/guide/bi-dbjson-widgets-parameters.md)**


    The `widgets` key defines all widgets that are available in the dashboard. It contains a separate node for each widget. Each widget appears in all layouts to which it’s added. The properties available for each widget depend on the widget type. For example, a chart widget has the `legend` property, but a text widget doesn’t.

- **[parameters Properties](https://developer.salesforce.com/docs/analytics/bi-dev-guide-json/guide/bi-dbjson-widgets-parameters-properties.md)**


    The `parameters` key contains a list of properties that control the appearance of the widget. Each widget type, including each chart type, contains a unique set of properties.
