Skip to content
v2.278.0

GradientStopProperty Struct ​

Determines the gradient stop configuration.

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 gradientStopProperty: quicksight.CfnAnalysis.GradientStopProperty = {
  gradientOffset: 123,

  // the properties below are optional
  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

gradient_stop_property = quicksight.CfnAnalysis.GradientStopProperty(
    gradient_offset=123,

    # the properties below are optional
    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.*;

GradientStopProperty gradientStopProperty = GradientStopProperty.builder()
        .gradientOffset(123)

        // the properties below are optional
        .color("color")
        .dataValue(123)
        .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 gradientStopProperty = new GradientStopProperty {
    GradientOffset = 123,

    // the properties below are optional
    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"

gradientStopProperty := &GradientStopProperty{
	GradientOffset: jsii.Number(123),

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

Properties ​

coloroptionalstringcoloroptionalstrcoloroptionalStringColoroptionalstringColoroptional*string #
Determines the color.
dataValueoptionalnumberdata_valueoptionalint | floatdataValueoptionalNumberDataValueoptionaldoubleDataValueoptional*float64 #
Determines the data value.
gradientOffsetnumbergradient_offsetint | floatgradientOffsetNumberGradientOffsetdoubleGradientOffset*float64 = 0 required #
Determines gradient offset value.