# LogQueryVisualizationType

Types of view.

- Source: [`aws-cloudwatch/lib/log-query.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cloudwatch/lib/log-query.ts#L8)

## Example

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

dashboard.addWidgets(new cloudwatch.LogQueryWidget({
  logGroupNames: ['my-log-group'],
  view: cloudwatch.LogQueryVisualizationType.TABLE,
  // The lines will be automatically combined using '\n|'.
  queryLines: [
    'fields @message',
    'filter @message like /Error/',
  ]
}));
```

## Members

| Member | Description |
| --- | --- |
| `TABLE` | Table view. |
| `LINE` | Line view. |
| `STACKEDAREA` | Stacked area view. |
| `BAR` | Bar view. |
| `PIE` | Pie view. |

## Referenced by

- [`LogQueryWidgetProps`](/v2/docs/aws-cdk-lib.aws_cloudwatch.LogQueryWidgetProps).view
