From ddb30e7e45e88082c268b902e60f62d48d855c70 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Fri, 25 May 2012 19:17:14 +0900 Subject: doc fix for bar series and removing ECMA specific sheet password protection from example --- examples/sheet_protection.rb | 1 - lib/axlsx/drawing/bar_series.rb | 2 +- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3