Class HorizontalAnnotation
Horizontal annotation to be added to a graph.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HorizontalAnnotation : Object, IHorizontalAnnotation
Syntax (vb)
Public Class HorizontalAnnotation
Inherits Object
Implements IHorizontalAnnotation
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var horizontalAnnotation = new HorizontalAnnotation {
Value = 123,
// the properties below are optional
Color = "color",
Fill = Shading.NONE,
Label = "label",
Visible = false
};
Synopsis
Constructors
HorizontalAnnotation() |
Properties
Color | The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The |
Fill | Add shading above or below the annotation. |
Label | Label for the annotation. |
Value | The value of the annotation. |
Visible | Whether the annotation is visible. |
Constructors
HorizontalAnnotation()
public HorizontalAnnotation()
Properties
Color
The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The Color
class has a set of standard colors that can be used here.
public string Color { get; set; }
Property Value
System.String
Remarks
Default: - Automatic color
Fill
Add shading above or below the annotation.
public Nullable<Shading> Fill { get; set; }
Property Value
System.Nullable<Shading>
Remarks
Default: No shading
Label
Label for the annotation.
public string Label { get; set; }
Property Value
System.String
Remarks
Default: - No label
Value
The value of the annotation.
public double Value { get; set; }
Property Value
System.Double
Visible
Whether the annotation is visible.
public Nullable<bool> Visible { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true