# DataPathColorProperty

The color map that determines the color options for a particular element.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 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 dataPathColorProperty: quicksight.CfnAnalysis.DataPathColorProperty = {
  color: 'color',
  element: {
    dataPathType: {
      pivotTableDataPathType: 'pivotTableDataPathType',
    },
    fieldId: 'fieldId',
    fieldValue: 'fieldValue',
  },

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

## Properties

- `color`: string (required) — The color that needs to be applied to the element.

- `element`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.DataPathValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.DataPathValueProperty.html) (required) — The element that the color needs to be applied to.

- `timeGranularity`: string — The time granularity of the field that the color needs to be applied to.
