Skip to content
This repository
Browse code

doc fix for bar series and removing ECMA specific sheet password prot…

…ection from example
  • Loading branch information...
commit ddb30e7e45e88082c268b902e60f62d48d855c70 1 parent 3dcd106
Randy Morgan (@morgan_randy) authored May 25, 2012
1  examples/sheet_protection.rb
@@ -4,7 +4,6 @@
4 4
 require 'axlsx'
5 5
 
6 6
 p = Axlsx::Package.new
7  
-p.workbook.add_worksheet(:name => 'ECMA-376') { |ws| ws.sheet_protection.propper_password = 'fish' }
8 7
 p.workbook.add_worksheet(:name => 'Open Office') { |ws| ws.sheet_protection.password = 'fish' }
9 8
 p.serialize 'sheet_protection.xlsx'
10 9
 
2  lib/axlsx/drawing/bar_series.rb
@@ -42,7 +42,7 @@ def initialize(chart, options={})
42 42
     def colors=(v) DataTypeValidator.validate "BarSeries.colors", [Array], v; @colors = v end
43 43
 
44 44
     # The shabe of the bars or columns
45  
-    # must be one of  [:percentStacked, :clustered, :standard, :stacked]
  45
+    # must be one of  [:cone, :coneToMax, :box, :cylinder, :pyramid, :pyramidToMax]
46 46
     def shape=(v)
47 47
       RestrictionValidator.validate "BarSeries.shape", [:cone, :coneToMax, :box, :cylinder, :pyramid, :pyramidToMax], v
48 48
       @shape = v

0 notes on commit ddb30e7

Please sign in to comment.
Something went wrong with that request. Please try again.