Skip to content
v2.275.0

LegendPosition Enum ​

The position of the legend on a GraphWidget.

Example ​

ts
declare const dashboard: cloudwatch.Dashboard;

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

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

Members ​

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

Referenced by ​

  • GaugeWidgetProps.legendPositionlegend_positionlegendPositionLegendPositionLegendPosition
  • GraphWidgetProps.legendPositionlegend_positionlegendPositionLegendPositionLegendPosition