summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/bar_series.rb
diff options
context:
space:
mode:
authorStefan Daschek <[email protected]>2019-12-15 19:27:18 +0100
committerStefan Daschek <[email protected]>2019-12-15 19:27:18 +0100
commit75cec07c450378a597c8bbae1ca10229b6fb2bf1 (patch)
treeacfa6b30fe7657060443156bca769d9b532dd83c /lib/axlsx/drawing/bar_series.rb
parent198f6b7f9203451898d9fef0c7ecf12eabe1a02f (diff)
downloadcaxlsx-75cec07c450378a597c8bbae1ca10229b6fb2bf1.tar.gz
caxlsx-75cec07c450378a597c8bbae1ca10229b6fb2bf1.zip
Fix rdoc for BarSeries#shape
Diffstat (limited to 'lib/axlsx/drawing/bar_series.rb')
-rw-r--r--lib/axlsx/drawing/bar_series.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/axlsx/drawing/bar_series.rb b/lib/axlsx/drawing/bar_series.rb
index a649a68a..d266dd09 100644
--- a/lib/axlsx/drawing/bar_series.rb
+++ b/lib/axlsx/drawing/bar_series.rb
@@ -15,9 +15,8 @@ module Axlsx
# @return [Array, SimpleTypedList]
attr_reader :labels
- # The shabe of the bars or columns
- # must be one of [:percentStacked, :clustered, :standard, :stacked]
- # @return [Symbol]
+ # The shape of the bars or columns
+ # @return [Symbol] must be one of [:cone, :coneToMax, :box, :cylinder, :pyramid, :pyramidToMax]
attr_reader :shape
# An array of rgb colors to apply to your bar chart.
@@ -41,8 +40,7 @@ module Axlsx
# @see colors
def colors=(v) DataTypeValidator.validate "BarSeries.colors", [Array], v; @colors = v end
- # The shabe of the bars or columns
- # must be one of [:cone, :coneToMax, :box, :cylinder, :pyramid, :pyramidToMax]
+ # @see shape
def shape=(v)
RestrictionValidator.validate "BarSeries.shape", [:cone, :coneToMax, :box, :cylinder, :pyramid, :pyramidToMax], v
@shape = v