lib/write_xlsx/chart/radar.rb in write_xlsx-0.75.0 vs lib/write_xlsx/chart/radar.rb in write_xlsx-0.76.0
- old
+ new
@@ -30,11 +30,11 @@
def initialize(subtype)
super(subtype)
@subtype = subtype || 'marker'
if @subtype == 'marker'
- @default_marker = { :type => 'none' }
+ @default_marker = Marker.new(:type => 'none')
end
# Override and reset the default axis values.
@x_axis.defaults[:major_gridlines] = { :visible => 1 }
set_x_axis
@@ -78,13 +78,10 @@
#
# Write the <c:radarStyle> element.
#
def write_radar_style
val = 'marker'
-
- if @subtype == 'filled'
- val = 'filled'
- end
+ val = 'filled' if @subtype == 'filled'
attributes = [ ['val', val] ]
@writer.empty_tag('c:radarStyle', attributes)
end