Class: AWSCDK::QuickSight::CfnDashboard::DonutOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::DonutOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options for configuring a donut chart or pie chart.
Instance Attribute Summary collapse
-
#arc_options ⇒ AWSCDK::IResolvable, ...
readonly
The option for define the arc of the chart shape.
-
#donut_center_options ⇒ AWSCDK::IResolvable, ...
readonly
The label options of the label that is displayed in the center of a donut chart.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty
constructor
A new instance of DonutOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty
Returns a new instance of DonutOptionsProperty.
9198 9199 9200 9201 9202 9203 |
# File 'quick_sight/cfn_dashboard.rb', line 9198 def initialize(arc_options: nil, donut_center_options: nil) @arc_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ArcOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@arc_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BcmNPcHRpb25zUHJvcGVydHkifV19fQ==")), "arcOptions") unless @arc_options.nil? @donut_center_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DonutCenterOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_center_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Eb251dENlbnRlck9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "donutCenterOptions") unless @donut_center_options.nil? end |
Instance Attribute Details
#arc_options ⇒ AWSCDK::IResolvable, ... (readonly)
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
9214 9215 9216 |
# File 'quick_sight/cfn_dashboard.rb', line 9214 def @arc_options end |
#donut_center_options ⇒ AWSCDK::IResolvable, ... (readonly)
The label options of the label that is displayed in the center of a donut chart.
This option isn't available for pie charts.
9221 9222 9223 |
# File 'quick_sight/cfn_dashboard.rb', line 9221 def @donut_center_options end |
Class Method Details
.jsii_properties ⇒ Object
9223 9224 9225 9226 9227 9228 |
# File 'quick_sight/cfn_dashboard.rb', line 9223 def self.jsii_properties { :arc_options => "arcOptions", :donut_center_options => "donutCenterOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
9230 9231 9232 9233 9234 9235 9236 9237 |
# File 'quick_sight/cfn_dashboard.rb', line 9230 def to_jsii result = {} result.merge!({ "arcOptions" => @arc_options, "donutCenterOptions" => @donut_center_options, }) result.compact end |