lib/write_xlsx/chartsheet.rb in write_xlsx-0.64.1 vs lib/write_xlsx/chartsheet.rb in write_xlsx-0.65.0
- old
+ new
@@ -22,11 +22,11 @@
@drawing = Drawing.new
@is_chartsheet = true
@chart = nil
@charts = [1]
@zoom_scale_normal = 0
- @print_style.orientation = false
+ @page_setup.orientation = false
end
#
# Assemble and write the XML file.
#
@@ -132,22 +132,46 @@
def show_hidden_data(*args)
@chart.show_hidden_data(*args)
end
+ def set_size(*args)
+ @chart.set_size(*args)
+ end
+
+ def set_table(*args)
+ @chart.set_table(*args)
+ end
+
+ def set_up_down_bars(*args)
+ @chart.set_up_down_bars(*args)
+ end
+
+ def set_drop_lines(*args)
+ @chart.set_drop_lines(*args)
+ end
+
+ def set_high_low_lines(*args)
+ @chart.set_high_low_lines(*args)
+ end
+
#
# Set up chart/drawings.
#
def prepare_chart(index, chart_id, drawing_id) # :nodoc:
@chart.id = chart_id - 1
drawing = Drawing.new
@drawing = drawing
- @drawing.orientation = @print_style.orientation
+ @drawing.orientation = @page_setup.orientation
@external_drawing_links << [ '/drawing', "../drawings/drawing#{drawing_id}.xml" ]
@drawing_links << [ '/chart', "../charts/chart#{chart_id}.xml"]
+ end
+
+ def external_links
+ [@external_drawing_links]
end
private
#