aws-cdk-lib.aws_cloudwatch.LegendPosition

enum LegendPosition

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.LegendPosition
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#LegendPosition
Javasoftware.amazon.awscdk.services.cloudwatch.LegendPosition
Pythonaws_cdk.aws_cloudwatch.LegendPosition
TypeScript (source)aws-cdk-lib » aws_cloudwatch » LegendPosition

The position of the legend on a GraphWidget.

Example

declare const dashboard: cloudwatch.Dashboard;

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

  legendPosition: cloudwatch.LegendPosition.RIGHT,
}));

Members

NameDescription
BOTTOMLegend appears below the graph (default).
RIGHTAdd shading above the annotation.
HIDDENAdd shading below the annotation.

BOTTOM

Legend appears below the graph (default).


RIGHT

Add shading above the annotation.


HIDDEN

Add shading below the annotation.