Class: AWSCDK::QuickSight::CfnAnalysis::DonutOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The options for configuring a donut chart or pie chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty

Returns a new instance of DonutOptionsProperty.

Parameters:



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 = arc_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ArcOptionsProperty.new(**arc_options.transform_keys(&:to_sym)) : arc_options
  Jsii::Type.check_type(@arc_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkFyY09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "arcOptions") unless @arc_options.nil?
  @donut_center_options = donut_center_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DonutCenterOptionsProperty.new(**donut_center_options.transform_keys(&:to_sym)) : donut_center_options
  Jsii::Type.check_type(@donut_center_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRvbnV0Q2VudGVyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "donutCenterOptions") unless @donut_center_options.nil?
end

Instance Attribute Details

#arc_optionsAWSCDK::IResolvable, ... (readonly)

The option for define the arc of the chart shape. Valid values are as follows:.

  • WHOLE - A pie chart
  • SMALL - A small-sized donut chart
  • MEDIUM - A medium-sized donut chart
  • LARGE - A large-sized donut chart


8593
8594
8595
# File 'quick_sight/cfn_analysis.rb', line 8593

def arc_options
  @arc_options
end

#donut_center_optionsAWSCDK::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
  @donut_center_options
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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