

# DataPathColor
<a name="API_DataPathColor"></a>

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

## Contents
<a name="API_DataPathColor_Contents"></a>

**Note**  
In the following list, the required parameters are described first.

 ** Color **   <a name="QS-Type-DataPathColor-Color"></a>
The color that needs to be applied to the element.  
Type: String  
Pattern: `^#[A-F0-9]{6}$`   
Required: Yes

 ** Element **   <a name="QS-Type-DataPathColor-Element"></a>
The element that the color needs to be applied to.  
Type: [DataPathValue](API_DataPathValue.md) object  
Required: Yes

 ** TimeGranularity **   <a name="QS-Type-DataPathColor-TimeGranularity"></a>
The time granularity of the field that the color needs to be applied to.  
Type: String  
Valid Values: `YEAR | QUARTER | MONTH | WEEK | DAY | HOUR | MINUTE | SECOND | MILLISECOND`   
Required: No

## See Also
<a name="API_DataPathColor_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/quicksight-2018-04-01/DataPathColor) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/quicksight-2018-04-01/DataPathColor) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/quicksight-2018-04-01/DataPathColor) 