lib/write_xlsx/chart/line.rb in write_xlsx-0.79.0 vs lib/write_xlsx/chart/line.rb in write_xlsx-0.80.0
- old
+ new
@@ -22,9 +22,22 @@
def initialize(subtype)
super(subtype)
@default_marker = Marker.new(:type => 'none')
@smooth_allowed = 1
+
+ # Set the available data label positions for this chart type.
+ @label_position_default = 'right'
+ @label_positions = {
+ 'center' => 'ctr',
+ 'right' => 'r',
+ 'left' => 'l',
+ 'above' => 't',
+ 'below' => 'b',
+ # For backward compatibility.
+ 'top' => 't',
+ 'bottom' => 'b'
+ }
end
#
# Override the virtual superclass method with a chart specific method.
#