lib/write_xlsx/chart/axis.rb in write_xlsx-0.81.1 vs lib/write_xlsx/chart/axis.rb in write_xlsx-0.83.0

- old
+ new

@@ -12,11 +12,11 @@ attr_accessor :min, :max, :num_format, :position, :major_tick_mark attr_reader :minor_unit, :major_unit, :minor_unit_type, :major_unit_type attr_reader :log_base, :crossing, :position_axis, :label_position, :visible attr_reader :num_format_linked, :num_font, :layout, :interval_unit attr_reader :major_gridlines, :minor_gridlines, :reverse - attr_reader :line, :fill + attr_reader :line, :fill, :text_axis # # Convert user defined axis values into axis instance. # def merge_with_hash(params) # :nodoc: super @@ -35,9 +35,13 @@ set_position_axis set_font_properties(args) set_axis_name_layout(args) set_axis_line(args) set_axis_fill(args) + if ptrue?(args[:text_axis]) + @chart.date_category = false + @text_axis = true + end 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