lib/axlsx/drawing/cat_axis.rb in axlsx-1.0.13 vs lib/axlsx/drawing/cat_axis.rb in axlsx-1.0.14
- old
+ new
@@ -27,11 +27,11 @@
# @option options [Symbol] crosses. Inherited
# @option options [Boolean] auto
# @option options [Symbol] lblAlgn
# @option options [Integer] lblOffset
def initialize(axId, crossAx, options={})
- self.auto = true
+ self.auto = 1
self.lblAlgn = :ctr
self.lblOffset = "100%"
super(axId, crossAx, options)
end
@@ -48,14 +48,14 @@
# Serializes the category axis
# @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
# @return [String]
def to_xml(xml)
- xml.send('c:catAx') {
+ xml.catAx {
super(xml)
- xml.send('c:auto', :val=>@auto)
- xml.send('c:lblAlgn', :val=>@lblAlgn)
- xml.send('c:lblOffset', :val=>@lblOffset)
+ xml.auto :val=>@auto
+ xml.lblAlgn :val=>@lblAlgn
+ xml.lblOffset :val=>@lblOffset
}
end
end