lib/write_xlsx/chart/axis.rb in write_xlsx-0.74.0 vs lib/write_xlsx/chart/axis.rb in write_xlsx-0.75.0
- old
+ new
@@ -10,11 +10,11 @@
attr_accessor :defaults, :reverse
attr_accessor :min, :max
attr_accessor :minor_unit, :major_unit, :minor_unit_type, :major_unit_type
attr_accessor :log_base, :crossing, :position, :position_axis, :label_position, :visible
- attr_accessor :num_format, :num_format_linked, :num_font, :layout
+ attr_accessor :num_format, :num_format_linked, :num_font, :layout, :interval_unit
attr_accessor :major_gridlines, :minor_gridlines, :major_tick_mark
#
# Convert user defined axis values into axis instance.
#
@@ -33,9 +33,10 @@
@crossing = args[:crossing]
@position_axis = args[:position_axis]
@label_position = args[:label_position]
@num_format = args[:num_format]
@num_format_linked = args[:num_format_linked]
+ @interval_unit = args[:interval_unit]
@visible = args[:visible] || 1
# Map major/minor_gridlines properties.
[:major_gridlines, :minor_gridlines].each do |lines|
if args[lines] && ptrue?(args[lines][:visible])