Sha256: c5fbaf167cdbf9559612a55f7a01eae7177d0740ccf41774b89fea95c840f1c2
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
module Axlsx class CatAxisData < SimpleTypedList def initialize(data=[]) super Object @list.concat data if data.is_a?(Array) end def to_xml(xml) xml.send('c:cat') { xml.send('c:strRef') { xml.send('c:f', Axlsx::cell_range(@list)) xml.send('c:strCache') { xml.send('c:ptCount', :val=>size) each_with_index do |item, index| v = item.is_a?(Cell) ? item.value : item xml.send('c:pt', :idx=>index) { xml.send('c:v', v) } end } } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.0.7 | lib/axlsx/drawing/cat_axis_data.rb~ |