Class: AWSCDK::QuickSight::CfnAnalysis::SmallMultiplesOptionsProperty

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

Overview

Options that determine the layout and display options of a chart's small multiples.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_visible_columns: nil, max_visible_rows: nil, panel_configuration: nil, x_axis: nil, y_axis: nil) ⇒ SmallMultiplesOptionsProperty

Returns a new instance of SmallMultiplesOptionsProperty.

Parameters:



26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
# File 'quick_sight/cfn_analysis.rb', line 26936

def initialize(max_visible_columns: nil, max_visible_rows: nil, panel_configuration: nil, x_axis: nil, y_axis: nil)
  @max_visible_columns = max_visible_columns
  Jsii::Type.check_type(@max_visible_columns, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxVisibleColumns") unless @max_visible_columns.nil?
  @max_visible_rows = max_visible_rows
  Jsii::Type.check_type(@max_visible_rows, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxVisibleRows") unless @max_visible_rows.nil?
  @panel_configuration = panel_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::PanelConfigurationProperty.new(**panel_configuration.transform_keys(&:to_sym)) : panel_configuration
  Jsii::Type.check_type(@panel_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhbmVsQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "panelConfiguration") unless @panel_configuration.nil?
  @x_axis = x_axis.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SmallMultiplesAxisPropertiesProperty.new(**x_axis.transform_keys(&:to_sym)) : x_axis
  Jsii::Type.check_type(@x_axis, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNtYWxsTXVsdGlwbGVzQXhpc1Byb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "xAxis") unless @x_axis.nil?
  @y_axis = y_axis.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SmallMultiplesAxisPropertiesProperty.new(**y_axis.transform_keys(&:to_sym)) : y_axis
  Jsii::Type.check_type(@y_axis, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNtYWxsTXVsdGlwbGVzQXhpc1Byb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "yAxis") unless @y_axis.nil?
end

Instance Attribute Details

#max_visible_columnsNumeric? (readonly)

Sets the maximum number of visible columns to display in the grid of small multiples panels.

The default is Auto , which automatically adjusts the columns in the grid to fit the overall layout and size of the given chart.



26955
26956
26957
# File 'quick_sight/cfn_analysis.rb', line 26955

def max_visible_columns
  @max_visible_columns
end

#max_visible_rowsNumeric? (readonly)

Sets the maximum number of visible rows to display in the grid of small multiples panels.

The default value is Auto , which automatically adjusts the rows in the grid to fit the overall layout and size of the given chart.



26962
26963
26964
# File 'quick_sight/cfn_analysis.rb', line 26962

def max_visible_rows
  @max_visible_rows
end

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

Configures the display options for each small multiples panel.



26967
26968
26969
# File 'quick_sight/cfn_analysis.rb', line 26967

def panel_configuration
  @panel_configuration
end

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

The properties of a small multiples X axis.



26972
26973
26974
# File 'quick_sight/cfn_analysis.rb', line 26972

def x_axis
  @x_axis
end

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

The properties of a small multiples Y axis.



26977
26978
26979
# File 'quick_sight/cfn_analysis.rb', line 26977

def y_axis
  @y_axis
end

Class Method Details

.jsii_propertiesObject



26979
26980
26981
26982
26983
26984
26985
26986
26987
# File 'quick_sight/cfn_analysis.rb', line 26979

def self.jsii_properties
  {
    :max_visible_columns => "maxVisibleColumns",
    :max_visible_rows => "maxVisibleRows",
    :panel_configuration => "panelConfiguration",
    :x_axis => "xAxis",
    :y_axis => "yAxis",
  }
end

Instance Method Details

#to_jsiiObject



26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
# File 'quick_sight/cfn_analysis.rb', line 26989

def to_jsii
  result = {}
  result.merge!({
    "maxVisibleColumns" => @max_visible_columns,
    "maxVisibleRows" => @max_visible_rows,
    "panelConfiguration" => @panel_configuration,
    "xAxis" => @x_axis,
    "yAxis" => @y_axis,
  })
  result.compact
end