lib/write_xlsx/chart.rb in write_xlsx-0.55.0 vs lib/write_xlsx/chart.rb in write_xlsx-0.56.0
- old
+ new
@@ -2176,10 +2176,13 @@
write_delete(1) unless ptrue?(x_axis[:_visible])
# Write the c:axPos element.
write_axis_pos(position, y_axis[:_reverse])
+ # Write the c:majorGridlines element.
+ write_major_gridlines(x_axis[:_major_gridlines])
+
# Write the axis title elements.
if title = x_axis[:_formula]
write_title_formula(title, y_axis[:_data_id], horiz, x_axis[:_name_font])
elsif title = x_axis[:_name]
write_title_rich(title, horiz, x_axis[:_name_font])
@@ -2275,9 +2278,13 @@
write_delete(1) unless ptrue?(x_axis[:_visible])
# Write the c:axPos element.
write_axis_pos(position, y_axis[:reverse])
+
+ # Write the c:majorGridlines element.
+ write_major_gridlines(x_axis[:_major_gridlines])
+
# Write the axis title elements.
if title = x_axis[:_formula]
write_title_formula(title, x_axis[:_data_id], nil, x_axis[:_name_font])
elsif title = x_axis[:_name]
write_title_rich(title, nil, x_axis[:_name_font])