Class: AWSCDK::QuickSight::CfnTheme::DataColorPaletteProperty

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

Overview

The theme colors that are used for data colors in charts.

The colors description is a hexadecimal color code that consists of six alphanumerical characters, prefixed with # , for example #37BFF5.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(colors: nil, empty_fill_color: nil, min_max_gradient: nil) ⇒ DataColorPaletteProperty

Returns a new instance of DataColorPaletteProperty.

Parameters:

  • colors (Array<String>, nil) (defaults to: nil)

    The hexadecimal codes for the colors.

  • empty_fill_color (String, nil) (defaults to: nil)

    The hexadecimal code of a color that applies to charts where a lack of data is highlighted.

  • min_max_gradient (Array<String>, nil) (defaults to: nil)

    The minimum and maximum hexadecimal codes that describe a color gradient.



752
753
754
755
756
757
758
759
# File 'quick_sight/cfn_theme.rb', line 752

def initialize(colors: nil, empty_fill_color: nil, min_max_gradient: nil)
  @colors = colors
  Jsii::Type.check_type(@colors, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "colors") unless @colors.nil?
  @empty_fill_color = empty_fill_color
  Jsii::Type.check_type(@empty_fill_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "emptyFillColor") unless @empty_fill_color.nil?
  @min_max_gradient = min_max_gradient
  Jsii::Type.check_type(@min_max_gradient, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "minMaxGradient") unless @min_max_gradient.nil?
end

Instance Attribute Details

#colorsArray<String>? (readonly)

The hexadecimal codes for the colors.



765
766
767
# File 'quick_sight/cfn_theme.rb', line 765

def colors
  @colors
end

#empty_fill_colorString? (readonly)

The hexadecimal code of a color that applies to charts where a lack of data is highlighted.



770
771
772
# File 'quick_sight/cfn_theme.rb', line 770

def empty_fill_color
  @empty_fill_color
end

#min_max_gradientArray<String>? (readonly)

The minimum and maximum hexadecimal codes that describe a color gradient.



775
776
777
# File 'quick_sight/cfn_theme.rb', line 775

def min_max_gradient
  @min_max_gradient
end

Class Method Details

.jsii_propertiesObject



777
778
779
780
781
782
783
# File 'quick_sight/cfn_theme.rb', line 777

def self.jsii_properties
  {
    :colors => "colors",
    :empty_fill_color => "emptyFillColor",
    :min_max_gradient => "minMaxGradient",
  }
end

Instance Method Details

#to_jsiiObject



785
786
787
788
789
790
791
792
793
# File 'quick_sight/cfn_theme.rb', line 785

def to_jsii
  result = {}
  result.merge!({
    "colors" => @colors,
    "emptyFillColor" => @empty_fill_color,
    "minMaxGradient" => @min_max_gradient,
  })
  result.compact
end