Method: Axlsx::CatAxis#initialize

Defined in:
lib/axlsx/drawing/cat_axis.rb

#initialize(options = {}) ⇒ CatAxis

Creates a new CatAxis object

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • tick_lbl_skip (Integer)
  • tick_mark_skip (Integer)


9
10
11
12
13
14
15
16
# File 'lib/axlsx/drawing/cat_axis.rb', line 9

def initialize(options={})
  @tick_lbl_skip = 1
  @tick_mark_skip = 1
  self.auto = 1
  self.lbl_algn = :ctr
  self.lbl_offset = "100"
  super(options)
end