# DataBarsOptionsProperty

Struct · External

The options for data bars.

- 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 dataBarsOptionsProperty: quicksight.CfnAnalysis.DataBarsOptionsProperty = {
  fieldId: 'fieldId',

  // the properties below are optional
  negativeColor: 'negativeColor',
  positiveColor: 'positiveColor',
};
```

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

data_bars_options_property = quicksight.CfnAnalysis.DataBarsOptionsProperty(
    field_id="fieldId",

    # the properties below are optional
    negative_color="negativeColor",
    positive_color="positiveColor"
)
```

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

DataBarsOptionsProperty dataBarsOptionsProperty = DataBarsOptionsProperty.builder()
        .fieldId("fieldId")

        // the properties below are optional
        .negativeColor("negativeColor")
        .positiveColor("positiveColor")
        .build();
```

C#:

```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 dataBarsOptionsProperty = new DataBarsOptionsProperty {
    FieldId = "fieldId",

    // the properties below are optional
    NegativeColor = "negativeColor",
    PositiveColor = "positiveColor"
};
```

Go:

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

dataBarsOptionsProperty := &DataBarsOptionsProperty{
	FieldId: jsii.String("fieldId"),

	// the properties below are optional
	NegativeColor: jsii.String("negativeColor"),
	PositiveColor: jsii.String("positiveColor"),
}
```

## Properties

- `fieldId`: string (required) — The field ID for the data bars options.

- `negativeColor`: string — The color of the negative data bar.

- `positiveColor`: string — The color of the positive data bar.
