Class: AWSCDK::QuickSight::CfnDashboard::PieChartConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::PieChartConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 |
# File 'quick_sight/cfn_dashboard.rb', line 22184 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::CfnDashboard::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@category_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DaGFydEF4aXNMYWJlbE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "categoryLabelOptions") unless @category_label_options.nil? @contribution_analysis_defaults = contribution_analysis_defaults Jsii::Type.check_type(@contribution_analysis_defaults, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuQ29udHJpYnV0aW9uQW5hbHlzaXNEZWZhdWx0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "contributionAnalysisDefaults") unless @contribution_analysis_defaults.nil? @data_labels = data_labels.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DataLabelOptionsProperty.new(**data_labels.transform_keys(&:to_sym)) : data_labels Jsii::Type.check_type(@data_labels, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EYXRhTGFiZWxPcHRpb25zUHJvcGVydHkifV19fQ==")), "dataLabels") unless @data_labels.nil? @donut_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DonutOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Eb251dE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "donutOptions") unless @donut_options.nil? @field_wells = field_wells.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PieChartFieldWellsProperty.new(**field_wells.transform_keys(&:to_sym)) : field_wells Jsii::Type.check_type(@field_wells, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QaWVDaGFydEZpZWxkV2VsbHNQcm9wZXJ0eSJ9XX19")), "fieldWells") unless @field_wells.nil? @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5WaXN1YWxJbnRlcmFjdGlvbk9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "interactions") unless @interactions.nil? @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MZWdlbmRPcHRpb25zUHJvcGVydHkifV19fQ==")), "legend") unless @legend.nil? @small_multiples_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SmallMultiplesOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@small_multiples_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TbWFsbE11bHRpcGxlc09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "smallMultiplesOptions") unless @small_multiples_options.nil? @sort_configuration = sort_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::PieChartSortConfigurationProperty.new(**sort_configuration.transform_keys(&:to_sym)) : sort_configuration Jsii::Type.check_type(@sort_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5QaWVDaGFydFNvcnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "sortConfiguration") unless @sort_configuration.nil? @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Ub29sdGlwT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "tooltip") unless @tooltip.nil? @value_label_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ChartAxisLabelOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@value_label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DaGFydEF4aXNMYWJlbE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "valueLabelOptions") unless @value_label_options.nil? @visual_palette = visual_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::VisualPaletteProperty.new(**visual_palette.transform_keys(&:to_sym)) : visual_palette Jsii::Type.check_type(@visual_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5WaXN1YWxQYWxldHRlUHJvcGVydHkifV19fQ==")), "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.
22215 22216 22217 |
# File 'quick_sight/cfn_dashboard.rb', line 22215 def @category_label_options end |
#contribution_analysis_defaults ⇒ AWSCDK::IResolvable, ... (readonly)
The contribution analysis (anomaly configuration) setup of the visual.
22220 22221 22222 |
# File 'quick_sight/cfn_dashboard.rb', line 22220 def contribution_analysis_defaults @contribution_analysis_defaults end |
#data_labels ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine if visual data labels are displayed.
22225 22226 22227 |
# File 'quick_sight/cfn_dashboard.rb', line 22225 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.
22232 22233 22234 |
# File 'quick_sight/cfn_dashboard.rb', line 22232 def @donut_options end |
#field_wells ⇒ AWSCDK::IResolvable, ... (readonly)
The field wells of the visual.
22237 22238 22239 |
# File 'quick_sight/cfn_dashboard.rb', line 22237 def field_wells @field_wells end |
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
The general visual interactions setup for a visual.
22242 22243 22244 |
# File 'quick_sight/cfn_dashboard.rb', line 22242 def interactions @interactions end |
#legend ⇒ AWSCDK::IResolvable, ... (readonly)
The legend display setup of the visual.
22247 22248 22249 |
# File 'quick_sight/cfn_dashboard.rb', line 22247 def legend @legend end |
#small_multiples_options ⇒ AWSCDK::IResolvable, ... (readonly)
The small multiples setup for the visual.
22252 22253 22254 |
# File 'quick_sight/cfn_dashboard.rb', line 22252 def @small_multiples_options end |
#sort_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The sort configuration of a pie chart.
22257 22258 22259 |
# File 'quick_sight/cfn_dashboard.rb', line 22257 def sort_configuration @sort_configuration end |
#tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
The tooltip display setup of the visual.
22262 22263 22264 |
# File 'quick_sight/cfn_dashboard.rb', line 22262 def tooltip @tooltip end |
#value_label_options ⇒ AWSCDK::IResolvable, ... (readonly)
The label options for the value that is displayed in a pie chart.
22267 22268 22269 |
# File 'quick_sight/cfn_dashboard.rb', line 22267 def @value_label_options end |
#visual_palette ⇒ AWSCDK::IResolvable, ... (readonly)
The palette (chart color) display setup of the visual.
22272 22273 22274 |
# File 'quick_sight/cfn_dashboard.rb', line 22272 def visual_palette @visual_palette end |
Class Method Details
.jsii_properties ⇒ Object
22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 |
# File 'quick_sight/cfn_dashboard.rb', line 22274 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
22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 |
# File 'quick_sight/cfn_dashboard.rb', line 22291 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 |