summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/chart.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-07-03 20:41:56 +0900
committerRandy Morgan <[email protected]>2012-07-03 20:41:56 +0900
commit0bc5ee2715578626ccd5c28e0246394917d55aea (patch)
tree24d83f406c9fe60efe11787af6c1af244b152e39 /lib/axlsx/drawing/chart.rb
parent807c9a3caccc9e96d06c31d8d55c1817e4718c0d (diff)
downloadcaxlsx-0bc5ee2715578626ccd5c28e0246394917d55aea.tar.gz
caxlsx-0bc5ee2715578626ccd5c28e0246394917d55aea.zip
more work on snake case standardization
Diffstat (limited to 'lib/axlsx/drawing/chart.rb')
-rw-r--r--lib/axlsx/drawing/chart.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb
index f0f0185b..1be4cf11 100644
--- a/lib/axlsx/drawing/chart.rb
+++ b/lib/axlsx/drawing/chart.rb
@@ -7,7 +7,8 @@ module Axlsx
# The 3D view properties for the chart
- attr_reader :view3D
+ attr_reader :view_3D
+ alias :view3D :view_3D
# A reference to the graphic frame that owns this chart
# @return [GraphicFrame]
@@ -45,7 +46,7 @@ module Axlsx
# @option options [Array|String|Cell] end_at The X, Y coordinates defining the bottom right corner of the chart.
def initialize(frame, options={})
@style = 18
- @view3D = nil
+ @view_3D = nil
@graphic_frame=frame
@graphic_frame.anchor.drawing.worksheet.workbook.charts << self
@series = SimpleTypedList.new Series
@@ -127,7 +128,7 @@ module Axlsx
@title.to_xml_string str
# do these need the c: namespace as well???
str << '<c:autoTitleDeleted val="' << (@title == nil).to_s << '"/>'
- @view3D.to_xml_string(str) if @view3D
+ @view_3D.to_xml_string(str) if @view_3D
str << '<c:floor><c:thickness val="0"/></c:floor>'
str << '<c:sideWall><c:thickness val="0"/></c:sideWall>'
str << '<c:backWall><c:thickness val="0"/></c:backWall>'
@@ -188,7 +189,8 @@ module Axlsx
[x, y]
end
- def view3D=(v) DataTypeValidator.validate "#{self.class}.view3D", View3D, v; @view3D = v; end
+ def view_3D=(v) DataTypeValidator.validate "#{self.class}.view_3D", View3D, v; @view_3D = v; end
+ alias :view3D= :view_3D=
end
end