# GeospatialGradientColorProperty

The definition for a gradient color.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## 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 geospatialGradientColorProperty: quicksight.CfnAnalysis.GeospatialGradientColorProperty = {
  stepColors: [{
    color: 'color',
    dataValue: 123,
  }],

  // the properties below are optional
  defaultOpacity: 123,
  nullDataSettings: {
    symbolStyle: {
      fillColor: 'fillColor',
      strokeColor: 'strokeColor',
      strokeWidth: 123,
    },
  },
  nullDataVisibility: 'nullDataVisibility',
};
```

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

geospatial_gradient_color_property = quicksight.CfnAnalysis.GeospatialGradientColorProperty(
    step_colors=[quicksight.CfnAnalysis.GeospatialGradientStepColorProperty(
        color="color",
        data_value=123
    )],

    # the properties below are optional
    default_opacity=123,
    null_data_settings=quicksight.CfnAnalysis.GeospatialNullDataSettingsProperty(
        symbol_style=quicksight.CfnAnalysis.GeospatialNullSymbolStyleProperty(
            fill_color="fillColor",
            stroke_color="strokeColor",
            stroke_width=123
        )
    ),
    null_data_visibility="nullDataVisibility"
)
```

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.*;

GeospatialGradientColorProperty geospatialGradientColorProperty = GeospatialGradientColorProperty.builder()
        .stepColors(List.of(GeospatialGradientStepColorProperty.builder()
                .color("color")
                .dataValue(123)
                .build()))

        // the properties below are optional
        .defaultOpacity(123)
        .nullDataSettings(GeospatialNullDataSettingsProperty.builder()
                .symbolStyle(GeospatialNullSymbolStyleProperty.builder()
                        .fillColor("fillColor")
                        .strokeColor("strokeColor")
                        .strokeWidth(123)
                        .build())
                .build())
        .nullDataVisibility("nullDataVisibility")
        .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 geospatialGradientColorProperty = new GeospatialGradientColorProperty {
    StepColors = new [] { new GeospatialGradientStepColorProperty {
        Color = "color",
        DataValue = 123
    } },

    // the properties below are optional
    DefaultOpacity = 123,
    NullDataSettings = new GeospatialNullDataSettingsProperty {
        SymbolStyle = new GeospatialNullSymbolStyleProperty {
            FillColor = "fillColor",
            StrokeColor = "strokeColor",
            StrokeWidth = 123
        }
    },
    NullDataVisibility = "nullDataVisibility"
};
```

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"

geospatialGradientColorProperty := &GeospatialGradientColorProperty{
	StepColors: []interface{}{
		&GeospatialGradientStepColorProperty{
			Color: jsii.String("color"),
			DataValue: jsii.Number(123),
		},
	},

	// the properties below are optional
	DefaultOpacity: jsii.Number(123),
	NullDataSettings: &GeospatialNullDataSettingsProperty{
		SymbolStyle: &GeospatialNullSymbolStyleProperty{
			FillColor: jsii.String("fillColor"),
			StrokeColor: jsii.String("strokeColor"),
			StrokeWidth: jsii.Number(123),
		},
	},
	NullDataVisibility: jsii.String("nullDataVisibility"),
}
```

## Properties

- `defaultOpacity`: number — The default opacity for the gradient color.

- `nullDataSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.GeospatialNullDataSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.GeospatialNullDataSettingsProperty.html) — The null data visualization settings.

- `nullDataVisibility`: string — The state of visibility for null data.

- `stepColors`: [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.GeospatialGradientStepColorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.GeospatialGradientStepColorProperty.html)[] (required) — A list of gradient step colors for the gradient.
