lib/write_xlsx/chart/line.rb in write_xlsx-0.75.0 vs lib/write_xlsx/chart/line.rb in write_xlsx-0.76.0

- old
+ new

@@ -16,14 +16,15 @@ module Writexlsx class Chart class Line < self include Writexlsx::Utility + include Writexlsx::WriteDPtPoint def initialize(subtype) super(subtype) - @default_marker = {:type => 'none'} + @default_marker = Marker.new(:type => 'none') @smooth_allowed = 1 end # # Override the virtual superclass method with a chart specific method. @@ -58,24 +59,9 @@ # Write the c:marker element. write_marker_value # Write the c:axId elements write_axis_ids(params) - end - end - - # - # Write an individual <c:dPt> element. Override the parent method to add - # markers. - # - def write_d_pt_point(index, point) - @writer.tag_elements('c:dPt') do - # Write the c:idx element. - write_idx(index) - @writer.tag_elements('c:marker') do - # Write the c:spPr element. - write_sp_pr(point) - end end end end end end