Skip to content
v2.278.0

ColorScaleProperty Struct ​

Determines the color scale that is applied to the visual.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const colorScaleProperty: quicksight.CfnAnalysis.ColorScaleProperty = {
  colorFillType: 'colorFillType',
  colors: [{
    color: 'color',
    dataValue: 123,
  }],

  // the properties below are optional
  nullValueColor: {
    color: 'color',
    dataValue: 123,
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

color_scale_property = quicksight.CfnAnalysis.ColorScaleProperty(
    color_fill_type="colorFillType",
    colors=[quicksight.CfnAnalysis.DataColorProperty(
        color="color",
        data_value=123
    )],

    # the properties below are optional
    null_value_color=quicksight.CfnAnalysis.DataColorProperty(
        color="color",
        data_value=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

ColorScaleProperty colorScaleProperty = ColorScaleProperty.builder()
        .colorFillType("colorFillType")
        .colors(List.of(DataColorProperty.builder()
                .color("color")
                .dataValue(123)
                .build()))

        // the properties below are optional
        .nullValueColor(DataColorProperty.builder()
                .color("color")
                .dataValue(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var colorScaleProperty = new ColorScaleProperty {
    ColorFillType = "colorFillType",
    Colors = new [] { new DataColorProperty {
        Color = "color",
        DataValue = 123
    } },

    // the properties below are optional
    NullValueColor = new DataColorProperty {
        Color = "color",
        DataValue = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

colorScaleProperty := &ColorScaleProperty{
	ColorFillType: jsii.String("colorFillType"),
	Colors: []interface{}{
		&DataColorProperty{
			Color: jsii.String("color"),
			DataValue: jsii.Number(123),
		},
	},

	// the properties below are optional
	NullValueColor: &DataColorProperty{
		Color: jsii.String("color"),
		DataValue: jsii.Number(123),
	},
}

Properties ​

colorFillTypestringcolor_fill_typestrcolorFillTypeStringColorFillTypestringColorFillType*string required #
Determines the color fill type.
colorsIResolvable | IResolvable | CfnAnalysis.DataColorProperty[]colorstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DataColorProperty]]]colorsIResolvableColorsIResolvableColorsinterface{} required #
Determines the list of colors that are applied to the visual.
nullValueColoroptionalIResolvable | CfnAnalysis.DataColorPropertynull_value_coloroptionaltyping.Union[IResolvable, DataColorProperty]nullValueColoroptionalIResolvableNullValueColoroptionalIResolvableNullValueColoroptionalinterface{} #
Determines the color that is applied to null values.