# TableLayout

Layout for TableWidget.

- Source: [`aws-cloudwatch/lib/graph.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts#L551)
- Type last changed: v2.128.0 · 14 Feb 2024

## Example

```ts
declare const dashboard: cloudwatch.Dashboard;

dashboard.addWidgets(new cloudwatch.TableWidget({
  // ...

  layout: cloudwatch.TableLayout.VERTICAL,
}));
```

## Members

| Member | Description |
| --- | --- |
| `HORIZONTAL` | Data points are laid out in columns. |
| `VERTICAL` | Data points are laid out in rows. |

## Referenced by

- [`TableWidgetProps`](/v2/docs/aws-cdk-lib.aws_cloudwatch.TableWidgetProps).layout
