Class: AWSCDK::QuickSight::CfnAnalysis::PieChartConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::PieChartConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 |
# File 'quick_sight/cfn_analysis.rb', line 21212 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::CfnAnalysis::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@category_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNoYXJ0QXhpc0xhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "categoryLabelOptions") unless @category_label_options.nil? @contribution_analysis_defaults = contribution_analysis_defaults Jsii::Type.check_type(@contribution_analysis_defaults, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5Db250cmlidXRpb25BbmFseXNpc0RlZmF1bHRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "contributionAnalysisDefaults") unless @contribution_analysis_defaults.nil? @data_labels = data_labels.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DataLabelOptionsProperty.new(**data_labels.transform_keys(&:to_sym)) : data_labels Jsii::Type.check_type(@data_labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRhdGFMYWJlbE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "dataLabels") unless @data_labels.nil? @donut_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::DonutOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkRvbnV0T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "donutOptions") unless @donut_options.nil? @field_wells = field_wells.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::PieChartFieldWellsProperty.new(**field_wells.transform_keys(&:to_sym)) : field_wells Jsii::Type.check_type(@field_wells, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBpZUNoYXJ0RmllbGRXZWxsc1Byb3BlcnR5In1dfX0=")), "fieldWells") unless @field_wells.nil? @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbEludGVyYWN0aW9uT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "interactions") unless @interactions.nil? @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkxlZ2VuZE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "legend") unless @legend.nil? @small_multiples_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SmallMultiplesOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@small_multiples_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNtYWxsTXVsdGlwbGVzT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "smallMultiplesOptions") unless @small_multiples_options.nil? @sort_configuration = sort_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::PieChartSortConfigurationProperty.new(**sort_configuration.transform_keys(&:to_sym)) : sort_configuration Jsii::Type.check_type(@sort_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBpZUNoYXJ0U29ydENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "sortConfiguration") unless @sort_configuration.nil? @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRvb2x0aXBPcHRpb25zUHJvcGVydHkifV19fQ==")), "tooltip") unless @tooltip.nil? @value_label_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@value_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNoYXJ0QXhpc0xhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "valueLabelOptions") unless @value_label_options.nil? @visual_palette = visual_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::VisualPaletteProperty.new(**visual_palette.transform_keys(&:to_sym)) : visual_palette Jsii::Type.check_type(@visual_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbFBhbGV0dGVQcm9wZXJ0eSJ9XX19")), "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.
21243 21244 21245 |
# File 'quick_sight/cfn_analysis.rb', line 21243 def @category_label_options end |
#contribution_analysis_defaults ⇒ AWSCDK::IResolvable, ... (readonly)
The contribution analysis (anomaly configuration) setup of the visual.
21248 21249 21250 |
# File 'quick_sight/cfn_analysis.rb', line 21248 def contribution_analysis_defaults @contribution_analysis_defaults end |
#data_labels ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine if visual data labels are displayed.
21253 21254 21255 |
# File 'quick_sight/cfn_analysis.rb', line 21253 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.
21260 21261 21262 |
# File 'quick_sight/cfn_analysis.rb', line 21260 def @donut_options end |
#field_wells ⇒ AWSCDK::IResolvable, ... (readonly)
The field wells of the visual.
21265 21266 21267 |
# File 'quick_sight/cfn_analysis.rb', line 21265 def field_wells @field_wells end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general visual interactions setup for a visual.
21270 21271 21272 |
# File 'quick_sight/cfn_analysis.rb', line 21270 def interactions @interactions end |
#legend ⇒ AWSCDK::IResolvable, ... (readonly)
The legend display setup of the visual.
21275 21276 21277 |
# File 'quick_sight/cfn_analysis.rb', line 21275 def legend @legend end |
#small_multiples_options ⇒ AWSCDK::IResolvable, ... (readonly)
The small multiples setup for the visual.
21280 21281 21282 |
# File 'quick_sight/cfn_analysis.rb', line 21280 def @small_multiples_options end |
#sort_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The sort configuration of a pie chart.
21285 21286 21287 |
# File 'quick_sight/cfn_analysis.rb', line 21285 def sort_configuration @sort_configuration end |
#tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
The tooltip display setup of the visual.
21290 21291 21292 |
# File 'quick_sight/cfn_analysis.rb', line 21290 def tooltip @tooltip end |
#value_label_options ⇒ AWSCDK::IResolvable, ... (readonly)
The label options for the value that is displayed in a pie chart.
21295 21296 21297 |
# File 'quick_sight/cfn_analysis.rb', line 21295 def @value_label_options end |
#visual_palette ⇒ AWSCDK::IResolvable, ... (readonly)
The palette (chart color) display setup of the visual.
21300 21301 21302 |
# File 'quick_sight/cfn_analysis.rb', line 21300 def visual_palette @visual_palette end |
Class Method Details
.jsii_properties ⇒ Object
21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 |
# File 'quick_sight/cfn_analysis.rb', line 21302 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
21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 |
# File 'quick_sight/cfn_analysis.rb', line 21319 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 |