summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-25 19:17:14 +0900
committerRandy Morgan <[email protected]>2012-05-25 19:17:14 +0900
commitddb30e7e45e88082c268b902e60f62d48d855c70 (patch)
tree448cad7b5efb2ef2e1dd371f72aa8b2bedea3e86
parent3dcd106b47cb49aaac8c23a13e95b32a91b566d0 (diff)
downloadcaxlsx-ddb30e7e45e88082c268b902e60f62d48d855c70.tar.gz
caxlsx-ddb30e7e45e88082c268b902e60f62d48d855c70.zip
doc fix for bar series and removing ECMA specific sheet password protection from example
-rw-r--r--examples/sheet_protection.rb1
-rw-r--r--lib/axlsx/drawing/bar_series.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/sheet_protection.rb b/examples/sheet_protection.rb
index 68d1fe8d..e8d87e12 100644
--- a/examples/sheet_protection.rb
+++ b/examples/sheet_protection.rb
@@ -4,7 +4,6 @@ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
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'
diff --git a/lib/axlsx/drawing/bar_series.rb b/lib/axlsx/drawing/bar_series.rb
index 5863dacc..182f94c5 100644
--- a/lib/axlsx/drawing/bar_series.rb
+++ b/lib/axlsx/drawing/bar_series.rb
@@ -42,7 +42,7 @@ module Axlsx
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