# LAYOUT

Layout functions can be used to set the layout, set a theme, enable/disable rails, or expand the hierarchy to a particular level. Let's take a look at the various options.

<table><thead><tr><th width="300">NAME</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><a href="#id-1.-layout.hierarchical">LAYOUT.HIERARCHY</a></td><td>Sets the layout to hierarchy</td></tr><tr><td><a href="#id-2.-layout.outline">LAYOUT.OUTLINE</a></td><td>Sets the layout to outline</td></tr><tr><td><a href="#id-3.-layout.table">LAYOUT.TABLE</a></td><td>Sets the layout to table</td></tr><tr><td><a href="#id-4.-layout.stepped">LAYOUT.STEPPED</a></td><td>Sets the layout to stepped</td></tr><tr><td><a href="#id-5.-layout.drilldown">LAYOUT.DRILLDOWN</a></td><td>Sets the layout to drilldown</td></tr><tr><td><a href="#id-6.-layout.lighttheme">LAYOUT.LIGHTTHEME</a></td><td>Applies a light canvas</td></tr><tr><td><a href="#id-7.-layout.darktheme">LAYOUT.DARKTHEME</a></td><td>Applies a dark canvas</td></tr><tr><td><a href="#id-8.-layout.autofit">LAYOUT.AUTOFIT</a></td><td>Fits the maximum possible data in the available space</td></tr><tr><td><a href="#id-9.-layout.setruler">LAYOUT.SETRULER</a></td><td>Enable or disable the ruler</td></tr><tr><td><a href="#id-10.-layout.gotocolumnlevel">LAYOUT.GOTOCOLUMNLEVEL</a></td><td>Expands the column hierarchy to the specified level</td></tr><tr><td><a href="#id-11.-layout.gotorowlevel">LAYOUT.GOTOROWLEVEL</a></td><td>Expands the row hierarchy to the specified level</td></tr></tbody></table>

## 1. LAYOUT.HIERARCHICAL

Sets the layout option to hierarchy and displays the data in a hierarchical format.

### Syntax

```javascript
LAYOUT.HIERARCHICAL
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FFDWVjOiHZfbSCvS34lz3%2Fimage.png?alt=media&#x26;token=1f4d0e58-49c4-4eac-86ef-2ee1dffc6425" alt=""><figcaption><p>Layout hierarchical</p></figcaption></figure>

## 2. LAYOUT.OUTLINE

Sets the layout option to outline.

### Syntax

```javascript
LAYOUT.OUTLINE
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FUfhU3lgDjY4YLfl4C6AQ%2Fimage.png?alt=media&#x26;token=e35d5a0d-47ef-47d2-b707-4ec2481de512" alt=""><figcaption><p>Setting the layout to outline</p></figcaption></figure>

## 3. LAYOUT.TABLE

Sets the layout option to table.

### Syntax

```javascript
LAYOUT.TABLE
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FOZ3qqjbJAYowGQTjRQNW%2Fimage.png?alt=media&#x26;token=19434661-ed1d-4e9b-9a67-57e2a56dab22" alt=""><figcaption><p>Setting the layout to table</p></figcaption></figure>

## 4. LAYOUT.STEPPED

Sets the layout option to stepped.

### Syntax

```javascript
LAYOUT.STEPPED
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FpI8IQA3v8bxbpGRv5ew1%2Fimage.png?alt=media&#x26;token=8d3b35cd-7222-433e-ac7b-3d9e38ea4fa8" alt=""><figcaption><p>Setting the layout to stepped</p></figcaption></figure>

## 5. LAYOUT.DRILLDOWN

Sets the layout option to drilldown.

### Syntax

```javascript
LAYOUT.DRILLDOWN
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FvvFFyyqVnXm0ckCW6fOx%2Fimage.png?alt=media&#x26;token=8e600ec3-60b9-42ea-ab83-b1612918af92" alt=""><figcaption><p>Setting the layout to drilldown</p></figcaption></figure>

## 6. LAYOUT.LIGHTTHEME

Sets a light background for the canvas.

### Syntax

```javascript
LAYOUT.LIGHTTHEME
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FK3AOLifUSsGAHT9rmbnI%2Fimage.png?alt=media&#x26;token=02be5f0f-7ee8-4858-adeb-8565f01d3a20" alt=""><figcaption><p>Setting a light canvas</p></figcaption></figure>

## 7. LAYOUT.DARKTHEME

Sets a light background for the canvas.

### Syntax

```javascript
LAYOUT.DARKTHEME
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FYYxZ2rDVZfbvYSVww7Qo%2Fimage.png?alt=media&#x26;token=d51a03ec-f14b-4980-aba0-5cf80caac59b" alt=""><figcaption><p>Setting a dark background</p></figcaption></figure>

## 8. LAYOUT.AUTOFIT

Fits the maximum possible data in the available space.

### Syntax

```javascript
LAYOUT.AUTOFIT
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F0FVPIt8e9MtK0rliYAbA%2Fimage.png?alt=media&#x26;token=bb4d40d9-5f06-43a6-b3e8-0026cdc511f5" alt=""><figcaption><p>Autofit layout</p></figcaption></figure>

## 9. LAYOUT.SETRULER

Fits the maximum possible data in the available space.

### Syntax

```javascript
LAYOUT.SETRULER(TRUE) #Enables the ruler
LAYOUT.SETRULER(FALSE) #Disables the ruler
LAYOUT.SETRULER(THIS) #Control the 'THIS' parameter using a toggle variable button
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FrSSwfr4WWRsChsr4SRcf%2Fimage.png?alt=media&#x26;token=fce81d22-e361-4e70-b52c-17a41a2de6e7" alt=""><figcaption><p>Ruler enabled using set ruler</p></figcaption></figure>

## 10. LAYOUT.GOTOCOLUMNLEVEL

Expands the column hierarchy to the specified level. The highest level of the hierarchy is denoted by '0'.&#x20;

### Syntax

```
LAYOUT.GOTOCOLUMNLEVEL(1) #Expands to the second level of the column hierarchy
LAYOUT.GOTOCOLUMNLEVEL(THIS) #Expands to the specified level which can be set using a numerical stepper variable
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FRujZ2dRTB65C6vLmg0nZ%2Fimage.png?alt=media&#x26;token=d8ad8da5-eace-4242-9c48-c8d43b15fc64" alt=""><figcaption><p>Expanding the column hierarchy</p></figcaption></figure>

## 11. LAYOUT.GOTOROWLEVEL

Expands the row hierarchy to the specified level. The highest level of the hierarchy is denoted by '0'.&#x20;

### Syntax

```
LAYOUT.GOTOROWLEVEL(2) #Expands to the third level of the column hierarchy
LAYOUT.GOTOROWLEVEL(THIS) #Expands to the specified level which can be set using a numerical stepper variable
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FJ7Yxok78uFAin6WjSeqR%2Fimage.png?alt=media&#x26;token=2848ffcc-30b0-43be-836d-7fdb4428e9a5" alt=""><figcaption><p>Expanded row hierarchy</p></figcaption></figure>
