Class: AWSCDK::QuickSight::CfnAnalysis::DonutOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::DonutOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.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.
8577 8578 8579 8580 8581 8582 |
# File 'quick_sight/cfn_analysis.rb', line 8577 def initialize(arc_options: nil, donut_center_options: nil) @arc_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ArcOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@arc_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkFyY09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "arcOptions") unless @arc_options.nil? @donut_center_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DonutCenterOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_center_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRvbnV0Q2VudGVyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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
8593 8594 8595 |
# File 'quick_sight/cfn_analysis.rb', line 8593 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.
8600 8601 8602 |
# File 'quick_sight/cfn_analysis.rb', line 8600 def @donut_center_options end |
Class Method Details
.jsii_properties ⇒ Object
8602 8603 8604 8605 8606 8607 |
# File 'quick_sight/cfn_analysis.rb', line 8602 def self.jsii_properties { :arc_options => "arcOptions", :donut_center_options => "donutCenterOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
8609 8610 8611 8612 8613 8614 8615 8616 |
# File 'quick_sight/cfn_analysis.rb', line 8609 def to_jsii result = {} result.merge!({ "arcOptions" => @arc_options, "donutCenterOptions" => @donut_center_options, }) result.compact end |