lib/write_xlsx/chart/pie.rb in write_xlsx-0.73.0 vs lib/write_xlsx/chart/pie.rb in write_xlsx-0.74.0
- old
+ new
@@ -61,11 +61,11 @@
# Write the <c:plotArea> element.
#
def write_plot_area
@writer.tag_elements('c:plotArea') do
# Write the c:layout element.
- write_layout
+ write_layout(@plotarea[:_layout], 'plot')
# Write the subclass chart type element.
write_chart_type
end
end
@@ -97,10 +97,10 @@
@writer.tag_elements('c:legend') do
# Write the c:legendPos element.
write_legend_pos(position)
# Write the c:layout element.
- write_layout
+ write_layout(@legend_layout, 'legend')
# Write the c:overlay element.
write_overlay if overlay != 0
# Write the c:txPr element. Over-ridden.
write_tx_pr_legend
end