summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/bar_3D_chart.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-31 17:19:35 +0200
committerGitHub <[email protected]>2023-05-31 17:19:35 +0200
commitad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd (patch)
tree1a666e99ccebefa4be1df5655b96f9f1337df794 /lib/axlsx/drawing/bar_3D_chart.rb
parentcbcf330ea266c96861e4029aaea6be1063862900 (diff)
parent42594ea9e486d3b0fe9c84ba1fc59140bb59439f (diff)
downloadcaxlsx-ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd.tar.gz
caxlsx-ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd.zip
Merge pull request #270 from tagliala/chore/use-ruby-19-hash-syntax
Use Ruby 1.9 hash syntax
Diffstat (limited to 'lib/axlsx/drawing/bar_3D_chart.rb')
-rw-r--r--lib/axlsx/drawing/bar_3D_chart.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/bar_3D_chart.rb b/lib/axlsx/drawing/bar_3D_chart.rb
index fe347d7c..604a9d17 100644
--- a/lib/axlsx/drawing/bar_3D_chart.rb
+++ b/lib/axlsx/drawing/bar_3D_chart.rb
@@ -77,7 +77,7 @@ module Axlsx
@gap_width, @gap_depth, @shape = nil, nil, nil
super(frame, options)
@series_type = BarSeries
- @view_3D = View3D.new({ :r_ang_ax => 1 }.merge(options))
+ @view_3D = View3D.new({ r_ang_ax: 1 }.merge(options))
@d_lbls = nil
end
@@ -131,7 +131,7 @@ module Axlsx
str << '<c:gapWidth val="' << @gap_width.to_s << '"/>' unless @gap_width.nil?
str << '<c:gapDepth val="' << @gap_depth.to_s << '"/>' unless @gap_depth.nil?
str << '<c:shape val="' << @shape.to_s << '"/>' unless @shape.nil?
- axes.to_xml_string(str, :ids => true)
+ axes.to_xml_string(str, ids: true)
str << '</c:bar3DChart>'
axes.to_xml_string(str)
end
@@ -141,7 +141,7 @@ module Axlsx
# category axes specified via axes[:val_axes] and axes[:cat_axis]
# @return [Axes]
def axes
- @axes ||= Axes.new(:cat_axis => CatAxis, :val_axis => ValAxis)
+ @axes ||= Axes.new(cat_axis: CatAxis, val_axis: ValAxis)
end
end
end