lib/write_xlsx/chart/series.rb in write_xlsx-1.10.0 vs lib/write_xlsx/chart/series.rb in write_xlsx-1.10.1
- old
+ new
@@ -75,16 +75,16 @@
private
def types
{
- :exponential => 'exp',
- :linear => 'linear',
- :log => 'log',
- :moving_average => 'movingAvg',
- :polynomial => 'poly',
- :power => 'power'
+ exponential: 'exp',
+ linear: 'linear',
+ log: 'log',
+ moving_average: 'movingAvg',
+ polynomial: 'poly',
+ power: 'power'
}
end
end
class Marker < Chartline
@@ -106,24 +106,24 @@
private
def types
{
- :automatic => 'automatic',
- :none => 'none',
- :square => 'square',
- :diamond => 'diamond',
- :triangle => 'triangle',
- :x => 'x',
- :star => 'star',
- :dot => 'dot',
- :short_dash => 'dot',
- :dash => 'dash',
- :long_dash => 'dash',
- :circle => 'circle',
- :plus => 'plus',
- :picture => 'picture'
+ automatic: 'automatic',
+ none: 'none',
+ square: 'square',
+ diamond: 'diamond',
+ triangle: 'triangle',
+ x: 'x',
+ star: 'star',
+ dot: 'dot',
+ short_dash: 'dot',
+ dash: 'dash',
+ long_dash: 'dash',
+ circle: 'circle',
+ plus: 'plus',
+ picture: 'picture'
}
end
end
class Errorbars
@@ -153,15 +153,15 @@
private
def types
{
- :fixed => 'fixedVal',
- :percentage => 'percentage',
- :standard_deviation => 'stdDev',
- :standard_error => 'stdErr',
- :custom => 'cust'
+ fixed: 'fixedVal',
+ percentage: 'percentage',
+ standard_deviation: 'stdDev',
+ standard_error: 'stdErr',
+ custom: 'cust'
}
end
def error_bar_direction(direction)
case direction
@@ -259,11 +259,11 @@
@name_id = @chart.data_id(@name_formula, params[:name_data])
end
def errorbars(x, y)
{
- :_x_error_bars => x ? Errorbars.new(x) : nil,
- :_y_error_bars => y ? Errorbars.new(y) : nil
+ _x_error_bars: x ? Errorbars.new(x) : nil,
+ _y_error_bars: y ? Errorbars.new(y) : nil
}
end
#
# Convert user defined labels properties to the structure required internally.