Class Color
A set of standard colours that can be used in annotations in a GraphWidget.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Color : DeputyBase
Syntax (vb)
Public Class Color
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new GraphWidget(new GraphWidgetProps {
// ...
LeftAnnotations = new [] { new HorizontalAnnotation { Value = 1800, Label = Duration.Minutes(30).ToHumanString(), Color = Color.RED }, new HorizontalAnnotation { Value = 3600, Label = "1 hour", Color = "#2ca02c" } },
VerticalAnnotations = new [] { new VerticalAnnotation { Date = "2022-10-19T00:00:00Z", Label = "Deployment", Color = Color.RED } }
}));
Synopsis
Constructors
Color(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Color(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
BLUE | blue - hex #1f77b4. |
BROWN | brown - hex #8c564b. |
GREEN | green - hex #2ca02c. |
GREY | grey - hex #7f7f7f. |
ORANGE | orange - hex #ff7f0e. |
PINK | pink - hex #e377c2. |
PURPLE | purple - hex #9467bd. |
RED | red - hex #d62728. |
Constructors
Color(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Color(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Color(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Color(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
BLUE
blue - hex #1f77b4.
public static string BLUE { get; }
Property Value
System.String
BROWN
brown - hex #8c564b.
public static string BROWN { get; }
Property Value
System.String
GREEN
green - hex #2ca02c.
public static string GREEN { get; }
Property Value
System.String
GREY
grey - hex #7f7f7f.
public static string GREY { get; }
Property Value
System.String
ORANGE
orange - hex #ff7f0e.
public static string ORANGE { get; }
Property Value
System.String
PINK
pink - hex #e377c2.
public static string PINK { get; }
Property Value
System.String
PURPLE
purple - hex #9467bd.
public static string PURPLE { get; }
Property Value
System.String
RED
red - hex #d62728.
public static string RED { get; }
Property Value
System.String