lib/write_xlsx/chart/axis.rb in write_xlsx-0.73.0 vs lib/write_xlsx/chart/axis.rb in write_xlsx-0.74.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
+ attr_accessor :num_format, :num_format_linked, :num_font, :layout
attr_accessor :major_gridlines, :minor_gridlines, :major_tick_mark
#
# Convert user defined axis values into axis instance.
#
@@ -64,9 +64,12 @@
end
# Set the font properties if present.
@num_font = @chart.convert_font_args(args[:num_font])
@name_font = @chart.convert_font_args(args[:name_font])
+
+ # Set the axis name layout.
+ @layout = @chart.layout_properties(args[:name_layout], 1)
end
#
# Write the <c:numberFormat> element. Note: It is assumed that if a user
# defined number format is supplied (i.e., non-default) then the sourceLinked