# TooltipOptionsProperty

The display options for the visual tooltip.

- 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 tooltipOptionsProperty: quicksight.CfnAnalysis.TooltipOptionsProperty = {
  fieldBasedTooltip: {
    aggregationVisibility: 'aggregationVisibility',
    tooltipFields: [{
      columnTooltipItem: {
        column: {
          columnName: 'columnName',

          // the properties below are optional
          dataSetIdentifier: 'dataSetIdentifier',
          topicIdentifier: 'topicIdentifier',
        },

        // the properties below are optional
        aggregation: {
          attributeAggregationFunction: {
            simpleAttributeAggregation: 'simpleAttributeAggregation',
            valueForMultipleValues: 'valueForMultipleValues',
          },
          categoricalAggregationFunction: 'categoricalAggregationFunction',
          dateAggregationFunction: 'dateAggregationFunction',
          numericalAggregationFunction: {
            percentileAggregation: {
              percentileValue: 123,
            },
            simpleNumericalAggregation: 'simpleNumericalAggregation',
          },
        },
        label: 'label',
        tooltipTarget: 'tooltipTarget',
        visibility: 'visibility',
      },
      fieldTooltipItem: {
        fieldId: 'fieldId',

        // the properties below are optional
        label: 'label',
        tooltipTarget: 'tooltipTarget',
        visibility: 'visibility',
      },
    }],
    tooltipTitleType: 'tooltipTitleType',
  },
  selectedTooltipType: 'selectedTooltipType',
  tooltipVisibility: 'tooltipVisibility',
};
```

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

tooltip_options_property = quicksight.CfnAnalysis.TooltipOptionsProperty(
    field_based_tooltip=quicksight.CfnAnalysis.FieldBasedTooltipProperty(
        aggregation_visibility="aggregationVisibility",
        tooltip_fields=[quicksight.CfnAnalysis.TooltipItemProperty(
            column_tooltip_item=quicksight.CfnAnalysis.ColumnTooltipItemProperty(
                column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
                    column_name="columnName",

                    # the properties below are optional
                    data_set_identifier="dataSetIdentifier",
                    topic_identifier="topicIdentifier"
                ),

                # the properties below are optional
                aggregation=quicksight.CfnAnalysis.AggregationFunctionProperty(
                    attribute_aggregation_function=quicksight.CfnAnalysis.AttributeAggregationFunctionProperty(
                        simple_attribute_aggregation="simpleAttributeAggregation",
                        value_for_multiple_values="valueForMultipleValues"
                    ),
                    categorical_aggregation_function="categoricalAggregationFunction",
                    date_aggregation_function="dateAggregationFunction",
                    numerical_aggregation_function=quicksight.CfnAnalysis.NumericalAggregationFunctionProperty(
                        percentile_aggregation=quicksight.CfnAnalysis.PercentileAggregationProperty(
                            percentile_value=123
                        ),
                        simple_numerical_aggregation="simpleNumericalAggregation"
                    )
                ),
                label="label",
                tooltip_target="tooltipTarget",
                visibility="visibility"
            ),
            field_tooltip_item=quicksight.CfnAnalysis.FieldTooltipItemProperty(
                field_id="fieldId",

                # the properties below are optional
                label="label",
                tooltip_target="tooltipTarget",
                visibility="visibility"
            )
        )],
        tooltip_title_type="tooltipTitleType"
    ),
    selected_tooltip_type="selectedTooltipType",
    tooltip_visibility="tooltipVisibility"
)
```

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

TooltipOptionsProperty tooltipOptionsProperty = TooltipOptionsProperty.builder()
        .fieldBasedTooltip(FieldBasedTooltipProperty.builder()
                .aggregationVisibility("aggregationVisibility")
                .tooltipFields(List.of(TooltipItemProperty.builder()
                        .columnTooltipItem(ColumnTooltipItemProperty.builder()
                                .column(ColumnIdentifierProperty.builder()
                                        .columnName("columnName")

                                        // the properties below are optional
                                        .dataSetIdentifier("dataSetIdentifier")
                                        .topicIdentifier("topicIdentifier")
                                        .build())

                                // the properties below are optional
                                .aggregation(AggregationFunctionProperty.builder()
                                        .attributeAggregationFunction(AttributeAggregationFunctionProperty.builder()
                                                .simpleAttributeAggregation("simpleAttributeAggregation")
                                                .valueForMultipleValues("valueForMultipleValues")
                                                .build())
                                        .categoricalAggregationFunction("categoricalAggregationFunction")
                                        .dateAggregationFunction("dateAggregationFunction")
                                        .numericalAggregationFunction(NumericalAggregationFunctionProperty.builder()
                                                .percentileAggregation(PercentileAggregationProperty.builder()
                                                        .percentileValue(123)
                                                        .build())
                                                .simpleNumericalAggregation("simpleNumericalAggregation")
                                                .build())
                                        .build())
                                .label("label")
                                .tooltipTarget("tooltipTarget")
                                .visibility("visibility")
                                .build())
                        .fieldTooltipItem(FieldTooltipItemProperty.builder()
                                .fieldId("fieldId")

                                // the properties below are optional
                                .label("label")
                                .tooltipTarget("tooltipTarget")
                                .visibility("visibility")
                                .build())
                        .build()))
                .tooltipTitleType("tooltipTitleType")
                .build())
        .selectedTooltipType("selectedTooltipType")
        .tooltipVisibility("tooltipVisibility")
        .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 tooltipOptionsProperty = new TooltipOptionsProperty {
    FieldBasedTooltip = new FieldBasedTooltipProperty {
        AggregationVisibility = "aggregationVisibility",
        TooltipFields = new [] { new TooltipItemProperty {
            ColumnTooltipItem = new ColumnTooltipItemProperty {
                Column = new ColumnIdentifierProperty {
                    ColumnName = "columnName",

                    // the properties below are optional
                    DataSetIdentifier = "dataSetIdentifier",
                    TopicIdentifier = "topicIdentifier"
                },

                // the properties below are optional
                Aggregation = new AggregationFunctionProperty {
                    AttributeAggregationFunction = new AttributeAggregationFunctionProperty {
                        SimpleAttributeAggregation = "simpleAttributeAggregation",
                        ValueForMultipleValues = "valueForMultipleValues"
                    },
                    CategoricalAggregationFunction = "categoricalAggregationFunction",
                    DateAggregationFunction = "dateAggregationFunction",
                    NumericalAggregationFunction = new NumericalAggregationFunctionProperty {
                        PercentileAggregation = new PercentileAggregationProperty {
                            PercentileValue = 123
                        },
                        SimpleNumericalAggregation = "simpleNumericalAggregation"
                    }
                },
                Label = "label",
                TooltipTarget = "tooltipTarget",
                Visibility = "visibility"
            },
            FieldTooltipItem = new FieldTooltipItemProperty {
                FieldId = "fieldId",

                // the properties below are optional
                Label = "label",
                TooltipTarget = "tooltipTarget",
                Visibility = "visibility"
            }
        } },
        TooltipTitleType = "tooltipTitleType"
    },
    SelectedTooltipType = "selectedTooltipType",
    TooltipVisibility = "tooltipVisibility"
};
```

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"

tooltipOptionsProperty := &TooltipOptionsProperty{
	FieldBasedTooltip: &FieldBasedTooltipProperty{
		AggregationVisibility: jsii.String("aggregationVisibility"),
		TooltipFields: []interface{}{
			&TooltipItemProperty{
				ColumnTooltipItem: &ColumnTooltipItemProperty{
					Column: &ColumnIdentifierProperty{
						ColumnName: jsii.String("columnName"),

						// the properties below are optional
						DataSetIdentifier: jsii.String("dataSetIdentifier"),
						TopicIdentifier: jsii.String("topicIdentifier"),
					},

					// the properties below are optional
					Aggregation: &AggregationFunctionProperty{
						AttributeAggregationFunction: &AttributeAggregationFunctionProperty{
							SimpleAttributeAggregation: jsii.String("simpleAttributeAggregation"),
							ValueForMultipleValues: jsii.String("valueForMultipleValues"),
						},
						CategoricalAggregationFunction: jsii.String("categoricalAggregationFunction"),
						DateAggregationFunction: jsii.String("dateAggregationFunction"),
						NumericalAggregationFunction: &NumericalAggregationFunctionProperty{
							PercentileAggregation: &PercentileAggregationProperty{
								PercentileValue: jsii.Number(123),
							},
							SimpleNumericalAggregation: jsii.String("simpleNumericalAggregation"),
						},
					},
					Label: jsii.String("label"),
					TooltipTarget: jsii.String("tooltipTarget"),
					Visibility: jsii.String("visibility"),
				},
				FieldTooltipItem: &FieldTooltipItemProperty{
					FieldId: jsii.String("fieldId"),

					// the properties below are optional
					Label: jsii.String("label"),
					TooltipTarget: jsii.String("tooltipTarget"),
					Visibility: jsii.String("visibility"),
				},
			},
		},
		TooltipTitleType: jsii.String("tooltipTitleType"),
	},
	SelectedTooltipType: jsii.String("selectedTooltipType"),
	TooltipVisibility: jsii.String("tooltipVisibility"),
}
```

## Properties

- `fieldBasedTooltip`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.FieldBasedTooltipProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.FieldBasedTooltipProperty.html) — The setup for the detailed tooltip.

  The tooltip setup is always saved. The display type is decided based on the tooltip type.

- `selectedTooltipType`: string — The selected type for the tooltip. Choose one of the following options:.

  - `BASIC` : A basic tooltip.
  - `DETAILED` : A detailed tooltip.

- `tooltipVisibility`: string — Determines whether or not the tooltip is visible.
