lib/axlsx/drawing/bubble_chart.rb in caxlsx-3.4.1 vs lib/axlsx/drawing/bubble_chart.rb in caxlsx-4.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Axlsx
# The BubbleChart allows you to insert a bubble chart into your worksheet
# @see Worksheet#add_chart
# @see Chart#add_series
# @see README for an example
@@ -31,26 +33,26 @@
end
# Serializes the object
# @param [String] str
# @return [String]
- def to_xml_string(str = '')
+ def to_xml_string(str = +'')
super(str) do
str << '<c:bubbleChart>'
- str << ('<c:varyColors val="' << vary_colors.to_s << '"/>')
+ str << '<c:varyColors val="' << vary_colors.to_s << '"/>'
@series.each { |ser| ser.to_xml_string(str) }
d_lbls.to_xml_string(str) if @d_lbls
- axes.to_xml_string(str, :ids => true)
+ axes.to_xml_string(str, ids: true)
str << '</c:bubbleChart>'
axes.to_xml_string(str)
end
str
end
# The axes for the bubble chart. BubbleChart has an x_val_axis and
# a y_val_axis
# @return [Axes]
def axes
- @axes ||= Axes.new(:x_val_axis => ValAxis, :y_val_axis => ValAxis)
+ @axes ||= Axes.new(x_val_axis: ValAxis, y_val_axis: ValAxis)
end
end
end