Class: AWSCDK::QuickSight::CfnTemplate::PieChartConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::PieChartConfigurationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The configuration of a pie chart.
Instance Attribute Summary collapse
-
#category_label_options ⇒ AWSCDK::IResolvable, ...
readonly
The label options of the group/color that is displayed in a pie chart.
-
#contribution_analysis_defaults ⇒ AWSCDK::IResolvable, ...
readonly
The contribution analysis (anomaly configuration) setup of the visual.
-
#data_labels ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine if visual data labels are displayed.
-
#donut_options ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the shape of the chart.
-
#field_wells ⇒ AWSCDK::IResolvable, ...
readonly
The field wells of the visual.
-
#interactions ⇒ AWSCDK::IResolvable, ...
readonly
The general visual interactions setup for a visual.
-
#legend ⇒ AWSCDK::IResolvable, ...
readonly
The legend display setup of the visual.
-
#small_multiples_options ⇒ AWSCDK::IResolvable, ...
readonly
The small multiples setup for the visual.
-
#sort_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The sort configuration of a pie chart.
-
#tooltip ⇒ AWSCDK::IResolvable, ...
readonly
The tooltip display setup of the visual.
-
#value_label_options ⇒ AWSCDK::IResolvable, ...
readonly
The label options for the value that is displayed in a pie chart.
-
#visual_palette ⇒ AWSCDK::IResolvable, ...
readonly
The palette (chart color) display setup of the visual.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(category_label_options: nil, contribution_analysis_defaults: nil, data_labels: nil, donut_options: nil, field_wells: nil, interactions: nil, legend: nil, small_multiples_options: nil, sort_configuration: nil, tooltip: nil, value_label_options: nil, visual_palette: nil) ⇒ PieChartConfigurationProperty
constructor
A new instance of PieChartConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(category_label_options: nil, contribution_analysis_defaults: nil, data_labels: nil, donut_options: nil, field_wells: nil, interactions: nil, legend: nil, small_multiples_options: nil, sort_configuration: nil, tooltip: nil, value_label_options: nil, visual_palette: nil) ⇒ PieChartConfigurationProperty
Returns a new instance of PieChartConfigurationProperty.
19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 |
# File 'quick_sight/cfn_template.rb', line 19338 def initialize(category_label_options: nil, contribution_analysis_defaults: nil, data_labels: nil, donut_options: nil, field_wells: nil, interactions: nil, legend: nil, small_multiples_options: nil, sort_configuration: nil, tooltip: nil, value_label_options: nil, visual_palette: nil) @category_label_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@category_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNoYXJ0QXhpc0xhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "categoryLabelOptions") unless @category_label_options.nil? @contribution_analysis_defaults = contribution_analysis_defaults Jsii::Type.check_type(@contribution_analysis_defaults, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5Db250cmlidXRpb25BbmFseXNpc0RlZmF1bHRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "contributionAnalysisDefaults") unless @contribution_analysis_defaults.nil? @data_labels = data_labels.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DataLabelOptionsProperty.new(**data_labels.transform_keys(&:to_sym)) : data_labels Jsii::Type.check_type(@data_labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRhdGFMYWJlbE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "dataLabels") unless @data_labels.nil? @donut_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DonutOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRvbnV0T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "donutOptions") unless @donut_options.nil? @field_wells = field_wells.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::PieChartFieldWellsProperty.new(**field_wells.transform_keys(&:to_sym)) : field_wells Jsii::Type.check_type(@field_wells, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlBpZUNoYXJ0RmllbGRXZWxsc1Byb3BlcnR5In1dfX0=")), "fieldWells") unless @field_wells.nil? @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbEludGVyYWN0aW9uT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "interactions") unless @interactions.nil? @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxlZ2VuZE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "legend") unless @legend.nil? @small_multiples_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::SmallMultiplesOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@small_multiples_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNtYWxsTXVsdGlwbGVzT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "smallMultiplesOptions") unless @small_multiples_options.nil? @sort_configuration = sort_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::PieChartSortConfigurationProperty.new(**sort_configuration.transform_keys(&:to_sym)) : sort_configuration Jsii::Type.check_type(@sort_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlBpZUNoYXJ0U29ydENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "sortConfiguration") unless @sort_configuration.nil? @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlRvb2x0aXBPcHRpb25zUHJvcGVydHkifV19fQ==")), "tooltip") unless @tooltip.nil? @value_label_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@value_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNoYXJ0QXhpc0xhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "valueLabelOptions") unless @value_label_options.nil? @visual_palette = visual_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::VisualPaletteProperty.new(**visual_palette.transform_keys(&:to_sym)) : visual_palette Jsii::Type.check_type(@visual_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlZpc3VhbFBhbGV0dGVQcm9wZXJ0eSJ9XX19")), "visualPalette") unless @visual_palette.nil? end |
Instance Attribute Details
#category_label_options ⇒ AWSCDK::IResolvable, ... (readonly)
The label options of the group/color that is displayed in a pie chart.
19369 19370 19371 |
# File 'quick_sight/cfn_template.rb', line 19369 def @category_label_options end |
#contribution_analysis_defaults ⇒ AWSCDK::IResolvable, ... (readonly)
The contribution analysis (anomaly configuration) setup of the visual.
19374 19375 19376 |
# File 'quick_sight/cfn_template.rb', line 19374 def contribution_analysis_defaults @contribution_analysis_defaults end |
#data_labels ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine if visual data labels are displayed.
19379 19380 19381 |
# File 'quick_sight/cfn_template.rb', line 19379 def data_labels @data_labels end |
#donut_options ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the shape of the chart.
This option determines whether the chart is a pie chart or a donut chart.
19386 19387 19388 |
# File 'quick_sight/cfn_template.rb', line 19386 def @donut_options end |
#field_wells ⇒ AWSCDK::IResolvable, ... (readonly)
The field wells of the visual.
19391 19392 19393 |
# File 'quick_sight/cfn_template.rb', line 19391 def field_wells @field_wells end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general visual interactions setup for a visual.
19396 19397 19398 |
# File 'quick_sight/cfn_template.rb', line 19396 def interactions @interactions end |
#legend ⇒ AWSCDK::IResolvable, ... (readonly)
The legend display setup of the visual.
19401 19402 19403 |
# File 'quick_sight/cfn_template.rb', line 19401 def legend @legend end |
#small_multiples_options ⇒ AWSCDK::IResolvable, ... (readonly)
The small multiples setup for the visual.
19406 19407 19408 |
# File 'quick_sight/cfn_template.rb', line 19406 def @small_multiples_options end |
#sort_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The sort configuration of a pie chart.
19411 19412 19413 |
# File 'quick_sight/cfn_template.rb', line 19411 def sort_configuration @sort_configuration end |
#tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
The tooltip display setup of the visual.
19416 19417 19418 |
# File 'quick_sight/cfn_template.rb', line 19416 def tooltip @tooltip end |
#value_label_options ⇒ AWSCDK::IResolvable, ... (readonly)
The label options for the value that is displayed in a pie chart.
19421 19422 19423 |
# File 'quick_sight/cfn_template.rb', line 19421 def @value_label_options end |
#visual_palette ⇒ AWSCDK::IResolvable, ... (readonly)
The palette (chart color) display setup of the visual.
19426 19427 19428 |
# File 'quick_sight/cfn_template.rb', line 19426 def visual_palette @visual_palette end |
Class Method Details
.jsii_properties ⇒ Object
19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 |
# File 'quick_sight/cfn_template.rb', line 19428 def self.jsii_properties { :category_label_options => "categoryLabelOptions", :contribution_analysis_defaults => "contributionAnalysisDefaults", :data_labels => "dataLabels", :donut_options => "donutOptions", :field_wells => "fieldWells", :interactions => "interactions", :legend => "legend", :small_multiples_options => "smallMultiplesOptions", :sort_configuration => "sortConfiguration", :tooltip => "tooltip", :value_label_options => "valueLabelOptions", :visual_palette => "visualPalette", } end |
Instance Method Details
#to_jsii ⇒ Object
19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 |
# File 'quick_sight/cfn_template.rb', line 19445 def to_jsii result = {} result.merge!({ "categoryLabelOptions" => @category_label_options, "contributionAnalysisDefaults" => @contribution_analysis_defaults, "dataLabels" => @data_labels, "donutOptions" => @donut_options, "fieldWells" => @field_wells, "interactions" => @interactions, "legend" => @legend, "smallMultiplesOptions" => @small_multiples_options, "sortConfiguration" => @sort_configuration, "tooltip" => @tooltip, "valueLabelOptions" => @value_label_options, "visualPalette" => @visual_palette, }) result.compact end |