# ColorScaleProperty

Determines the color scale that is applied to the visual.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `colorFillType`: string (required) — Determines the color fill type.

- `colors`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DataColorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DataColorProperty.html)[] (required) — Determines the list of colors that are applied to the visual.

- `nullValueColor`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DataColorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DataColorProperty.html) — Determines the color that is applied to null values.
