LegendOptionsProperty Struct
The options for the legend setup of a visual.
| Source | |
|---|---|
| Type last changed |
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 legendOptionsProperty: quicksight.CfnDashboard.LegendOptionsProperty = {
height: 'height',
position: 'position',
title: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
valueFontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
width: 'width',
};
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
legend_options_property = quicksight.CfnDashboard.LegendOptionsProperty(
height="height",
position="position",
title=quicksight.CfnDashboard.LabelOptionsProperty(
custom_label="customLabel",
font_configuration=quicksight.CfnDashboard.FontConfigurationProperty(
font_color="fontColor",
font_decoration="fontDecoration",
font_family="fontFamily",
font_size=quicksight.CfnDashboard.FontSizeProperty(
absolute="absolute",
relative="relative"
),
font_style="fontStyle",
font_weight=quicksight.CfnDashboard.FontWeightProperty(
name="name"
)
),
visibility="visibility"
),
value_font_configuration=quicksight.CfnDashboard.FontConfigurationProperty(
font_color="fontColor",
font_decoration="fontDecoration",
font_family="fontFamily",
font_size=quicksight.CfnDashboard.FontSizeProperty(
absolute="absolute",
relative="relative"
),
font_style="fontStyle",
font_weight=quicksight.CfnDashboard.FontWeightProperty(
name="name"
)
),
visibility="visibility",
width="width"
)
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.*;
LegendOptionsProperty legendOptionsProperty = LegendOptionsProperty.builder()
.height("height")
.position("position")
.title(LabelOptionsProperty.builder()
.customLabel("customLabel")
.fontConfiguration(FontConfigurationProperty.builder()
.fontColor("fontColor")
.fontDecoration("fontDecoration")
.fontFamily("fontFamily")
.fontSize(FontSizeProperty.builder()
.absolute("absolute")
.relative("relative")
.build())
.fontStyle("fontStyle")
.fontWeight(FontWeightProperty.builder()
.name("name")
.build())
.build())
.visibility("visibility")
.build())
.valueFontConfiguration(FontConfigurationProperty.builder()
.fontColor("fontColor")
.fontDecoration("fontDecoration")
.fontFamily("fontFamily")
.fontSize(FontSizeProperty.builder()
.absolute("absolute")
.relative("relative")
.build())
.fontStyle("fontStyle")
.fontWeight(FontWeightProperty.builder()
.name("name")
.build())
.build())
.visibility("visibility")
.width("width")
.build();
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 legendOptionsProperty = new LegendOptionsProperty {
Height = "height",
Position = "position",
Title = new LabelOptionsProperty {
CustomLabel = "customLabel",
FontConfiguration = new FontConfigurationProperty {
FontColor = "fontColor",
FontDecoration = "fontDecoration",
FontFamily = "fontFamily",
FontSize = new FontSizeProperty {
Absolute = "absolute",
Relative = "relative"
},
FontStyle = "fontStyle",
FontWeight = new FontWeightProperty {
Name = "name"
}
},
Visibility = "visibility"
},
ValueFontConfiguration = new FontConfigurationProperty {
FontColor = "fontColor",
FontDecoration = "fontDecoration",
FontFamily = "fontFamily",
FontSize = new FontSizeProperty {
Absolute = "absolute",
Relative = "relative"
},
FontStyle = "fontStyle",
FontWeight = new FontWeightProperty {
Name = "name"
}
},
Visibility = "visibility",
Width = "width"
};
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"
legendOptionsProperty := &LegendOptionsProperty{
Height: jsii.String("height"),
Position: jsii.String("position"),
Title: &LabelOptionsProperty{
CustomLabel: jsii.String("customLabel"),
FontConfiguration: &FontConfigurationProperty{
FontColor: jsii.String("fontColor"),
FontDecoration: jsii.String("fontDecoration"),
FontFamily: jsii.String("fontFamily"),
FontSize: &FontSizeProperty{
Absolute: jsii.String("absolute"),
Relative: jsii.String("relative"),
},
FontStyle: jsii.String("fontStyle"),
FontWeight: &FontWeightProperty{
Name: jsii.String("name"),
},
},
Visibility: jsii.String("visibility"),
},
ValueFontConfiguration: &FontConfigurationProperty{
FontColor: jsii.String("fontColor"),
FontDecoration: jsii.String("fontDecoration"),
FontFamily: jsii.String("fontFamily"),
FontSize: &FontSizeProperty{
Absolute: jsii.String("absolute"),
Relative: jsii.String("relative"),
},
FontStyle: jsii.String("fontStyle"),
FontWeight: &FontWeightProperty{
Name: jsii.String("name"),
},
},
Visibility: jsii.String("visibility"),
Width: jsii.String("width"),
}
Properties
heightoptionalstringheightoptionalstrheightoptionalStringHeightoptionalstringHeightoptional*string #The height of the legend.
If this value is omitted, a default height is used when rendering.
positionoptionalstringpositionoptionalstrpositionoptionalStringPositionoptionalstringPositionoptional*string #The positions for the legend. Choose one of the following options:.
AUTORIGHTBOTTOMLEFT
titleoptionalIResolvable | CfnDashboard.titleoptionaltyping.Union[IResolvable, LabelOptionsProperty]titleoptionalIResolvableTitleoptionalIResolvableTitleoptionalinterface{} #The custom title for the legend.
valueFontConfigurationoptionalIResolvable | CfnDashboard.value_font_configurationoptionaltyping.Union[IResolvable, FontConfigurationProperty]valueFontConfigurationoptionalIResolvableValueFontConfigurationoptionalIResolvableValueFontConfigurationoptionalinterface{} #visibilityoptionalstringvisibilityoptionalstrvisibilityoptionalStringVisibilityoptionalstringVisibilityoptional*string #Determines whether or not the legend is visible.
The width of the legend.
If this value is omitted, a default width is used when rendering.