# YAxisProps

Properties for a Y-Axis.

- 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#L59)
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

```ts
declare const dashboard: cloudwatch.Dashboard;
declare const errorAlarm: cloudwatch.Alarm;
declare const gaugeMetric: cloudwatch.Metric;

dashboard.addWidgets(new cloudwatch.GaugeWidget({
  metrics: [gaugeMetric],
  leftYAxis: {
    min: 0,
    max: 1000,
  }
}));
```

## Properties

- `label`: string — The label.

  **Default:** No label

- `max`: number = Auto — The max value.

- `min`: number = Auto — The min value.

- `showUnits`: boolean = true — Whether to show units.
