

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::QuickSight::Template LegendOptions
<a name="aws-properties-quicksight-template-legendoptions"></a>

The options for the legend setup of a visual.

## Syntax
<a name="aws-properties-quicksight-template-legendoptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-quicksight-template-legendoptions-syntax.json"></a>

```
{
  "[Height](#cfn-quicksight-template-legendoptions-height)" : String,
  "[Position](#cfn-quicksight-template-legendoptions-position)" : String,
  "[Title](#cfn-quicksight-template-legendoptions-title)" : LabelOptions,
  "[ValueFontConfiguration](#cfn-quicksight-template-legendoptions-valuefontconfiguration)" : FontConfiguration,
  "[Visibility](#cfn-quicksight-template-legendoptions-visibility)" : String,
  "[Width](#cfn-quicksight-template-legendoptions-width)" : String
}
```

### YAML
<a name="aws-properties-quicksight-template-legendoptions-syntax.yaml"></a>

```
  [Height](#cfn-quicksight-template-legendoptions-height): String
  [Position](#cfn-quicksight-template-legendoptions-position): String
  [Title](#cfn-quicksight-template-legendoptions-title): 
    LabelOptions
  [ValueFontConfiguration](#cfn-quicksight-template-legendoptions-valuefontconfiguration): 
    FontConfiguration
  [Visibility](#cfn-quicksight-template-legendoptions-visibility): String
  [Width](#cfn-quicksight-template-legendoptions-width): String
```

## Properties
<a name="aws-properties-quicksight-template-legendoptions-properties"></a>

`Height`  <a name="cfn-quicksight-template-legendoptions-height"></a>
The height of the legend. If this value is omitted, a default height is used when rendering.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Position`  <a name="cfn-quicksight-template-legendoptions-position"></a>
The positions for the legend. Choose one of the following options:  
+  `AUTO` 
+  `RIGHT` 
+  `BOTTOM` 
+  `LEFT` 
*Required*: No  
*Type*: String  
*Allowed values*: `AUTO | RIGHT | BOTTOM | TOP`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Title`  <a name="cfn-quicksight-template-legendoptions-title"></a>
The custom title for the legend.  
*Required*: No  
*Type*: [LabelOptions](aws-properties-quicksight-template-labeloptions.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ValueFontConfiguration`  <a name="cfn-quicksight-template-legendoptions-valuefontconfiguration"></a>
Property description not available.  
*Required*: No  
*Type*: [FontConfiguration](aws-properties-quicksight-template-fontconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Visibility`  <a name="cfn-quicksight-template-legendoptions-visibility"></a>
Determines whether or not the legend is visible.  
*Required*: No  
*Type*: String  
*Allowed values*: `HIDDEN | VISIBLE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Width`  <a name="cfn-quicksight-template-legendoptions-width"></a>
The width of the legend. If this value is omitted, a default width is used when rendering.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)