# KPIComparisonValueConditionalFormattingProperty

The conditional formatting for the comparison value of a KPI visual.

- Source: Generated code
- Type last changed: v2.101.0 · 13 Oct 2023

## 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 kPIComparisonValueConditionalFormattingProperty: quicksight.CfnTemplate.KPIComparisonValueConditionalFormattingProperty = {
  icon: {
    customCondition: {
      expression: 'expression',
      iconOptions: {
        icon: 'icon',
        unicodeIcon: 'unicodeIcon',
      },

      // the properties below are optional
      color: 'color',
      displayConfiguration: {
        iconDisplayOption: 'iconDisplayOption',
      },
    },
    iconSet: {
      expression: 'expression',

      // the properties below are optional
      iconSetType: 'iconSetType',
    },
  },
  textColor: {
    gradient: {
      color: {
        stops: [{
          gradientOffset: 123,

          // the properties below are optional
          color: 'color',
          dataValue: 123,
        }],
      },
      expression: 'expression',
    },
    solid: {
      expression: 'expression',

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

## Properties

- `icon`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.ConditionalFormattingIconProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.ConditionalFormattingIconProperty.html) — The conditional formatting of the comparison value's icon.

- `textColor`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.ConditionalFormattingColorProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.ConditionalFormattingColorProperty.html) — The conditional formatting of the comparison value's text color.
