DonutOptionsProperty Struct
The options for configuring a donut chart or pie chart.
| 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 donutOptionsProperty: quicksight.CfnDashboard.DonutOptionsProperty = {
arcOptions: {
arcThickness: 'arcThickness',
},
donutCenterOptions: {
labelVisibility: 'labelVisibility',
},
};
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
donut_options_property = quicksight.CfnDashboard.DonutOptionsProperty(
arc_options=quicksight.CfnDashboard.ArcOptionsProperty(
arc_thickness="arcThickness"
),
donut_center_options=quicksight.CfnDashboard.DonutCenterOptionsProperty(
label_visibility="labelVisibility"
)
)
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.*;
DonutOptionsProperty donutOptionsProperty = DonutOptionsProperty.builder()
.arcOptions(ArcOptionsProperty.builder()
.arcThickness("arcThickness")
.build())
.donutCenterOptions(DonutCenterOptionsProperty.builder()
.labelVisibility("labelVisibility")
.build())
.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 donutOptionsProperty = new DonutOptionsProperty {
ArcOptions = new ArcOptionsProperty {
ArcThickness = "arcThickness"
},
DonutCenterOptions = new DonutCenterOptionsProperty {
LabelVisibility = "labelVisibility"
}
};
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"
donutOptionsProperty := &DonutOptionsProperty{
ArcOptions: &ArcOptionsProperty{
ArcThickness: jsii.String("arcThickness"),
},
DonutCenterOptions: &DonutCenterOptionsProperty{
LabelVisibility: jsii.String("labelVisibility"),
},
}
Properties
arcOptionsoptionalIResolvable | CfnDashboard.ArcOptionsPropertyarc_optionsoptionaltyping.Union[IResolvable, ArcOptionsProperty]arcOptionsoptionalIResolvableArcOptionsoptionalIResolvableArcOptionsoptionalinterface{} #The option for define the arc of the chart shape. Valid values are as follows:.
WHOLE- A pie chartSMALL- A small-sized donut chartMEDIUM- A medium-sized donut chartLARGE- A large-sized donut chart
donutCenterOptionsoptionalIResolvable | CfnDashboard.donut_center_optionsoptionaltyping.Union[IResolvable, DonutCenterOptionsProperty]donutCenterOptionsoptionalIResolvableDonutCenterOptionsoptionalIResolvableDonutCenterOptionsoptionalinterface{} #The label options of the label that is displayed in the center of a donut chart.
This option isn't available for pie charts.