Skip to content
Browse files

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

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

0 comments on commit ddb30e7

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