lib/write_xlsx/chart/stock.rb in write_xlsx-0.79.0 vs lib/write_xlsx/chart/stock.rb in write_xlsx-0.80.0

- old
+ new

@@ -33,9 +33,22 @@ # Override and reset the default axis values. @x_axis.defaults[:num_format] = 'dd/mm/yyyy' @x2_axis.defaults[:num_format] = 'dd/mm/yyyy' set_x_axis set_x2_axis + + # 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. #