Method: Writeexcel::Chart::Bar#set_embedded_config_data

Defined in:
lib/writeexcel/charts/bar.rb

#set_embedded_config_dataObject

_set_embedded_config_data()

Override some of the default configuration data for an embedded chart.



164
165
166
167
168
169
170
171
172
173
# File 'lib/writeexcel/charts/bar.rb', line 164

def set_embedded_config_data   # :nodoc:
  # Set the parent configuration first.
  super

  # The axis positions are reversed for a bar chart so we change the config.
  @config[:x_axis_text]     = [ 0x57,   0x5BC,  0xB5,   0x214, 0x281, 0x0, 90 ]
  @config[:x_axis_text_pos] = [ 2,      2,      0,      0,     0x17,  0x2A ]
  @config[:y_axis_text]     = [ 0x074A, 0x0C8F, 0x021F, 0x123, 0x81,  0x0000 ]
  @config[:y_axis_text_pos] = [ 2,      2,      0,      0,     0x45,  0x17 ]
end