lib/write_xlsx/chart/pie.rb in write_xlsx-0.79.0 vs lib/write_xlsx/chart/pie.rb in write_xlsx-0.80.0
- old
+ new
@@ -28,9 +28,19 @@
def initialize(subtype)
super(subtype)
@vary_data_color = 1
@rotation = 0
+
+ # Set the available data label positions for this chart type.
+ @label_position_default = 'best_fit'
+ @label_positions = {
+ 'center' => 'ctr',
+ 'inside_base' => 'inBase',
+ 'inside_end' => 'inEnd',
+ 'outside_end' => 'outEnd',
+ 'best_fit' => 'bestFit'
+ }
end
#
# Set the Pie/Doughnut chart rotation: the angle of the first slice.
#