# GraphWidgetView

Types of view.

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

## Example

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

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

  view: cloudwatch.GraphWidgetView.BAR,
}));
```

## Members

| Member | Description |
| --- | --- |
| `TIME_SERIES` | Display as a line graph. |
| `BAR` | Display as a bar graph. |
| `PIE` | Display as a pie graph. |

## Referenced by

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