Method: Axlsx::ColorScale.three_tone

Defined in:
lib/axlsx/workbook/worksheet/color_scale.rb

.three_toneObject

A builder for three tone color gradient

Examples:

#this creates a three tone color scale
color_scale = Axlsx::ColorScale.three_tone 

See Also:

  • conditional formatting examples.


33
34
35
36
37
# File 'lib/axlsx/workbook/worksheet/color_scale.rb', line 33

def three_tone
  self.new({:type => :min, :val => 0, :color => 'FFF8696B'},
           {:type => :percent, :val => '50', :color => 'FFFFEB84'},
           {:type => :max, :val => 0, :color => 'FF63BE7B'})
end