Module: Writexlsx::WriteDPtPoint

Included in:
Chart::Line, Chart::Scatter
Defined in:
lib/write_xlsx/utility.rb

Instance Method Summary collapse

Instance Method Details

#write_d_pt_point(index, point) ⇒ Object

Write an individual <c:dPt> element. Override the parent method to add markers.


613
614
615
616
617
618
619
620
621
622
# File 'lib/write_xlsx/utility.rb', line 613

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