summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/validators.rb
diff options
context:
space:
mode:
authormfrank01 <[email protected]>2014-07-29 16:11:38 -0600
committermfrank01 <[email protected]>2014-07-29 16:21:37 -0600
commit1aed4d61f773fb24d198d643ae4ae062e2789620 (patch)
tree8bb6c71a1fddd8e87420fe04130ec44cc6655dd9 /lib/axlsx/util/validators.rb
parent2aec0203fcca35dcecd5dca5e9081bc6090f5e8b (diff)
downloadcaxlsx-1aed4d61f773fb24d198d643ae4ae062e2789620.tar.gz
caxlsx-1aed4d61f773fb24d198d643ae4ae062e2789620.zip
Allow custom marker symbol shapes on chart
Diffstat (limited to 'lib/axlsx/util/validators.rb')
-rw-r--r--lib/axlsx/util/validators.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb
index c9ee2e6e..9c6f34aa 100644
--- a/lib/axlsx/util/validators.rb
+++ b/lib/axlsx/util/validators.rb
@@ -304,4 +304,8 @@ module Axlsx
RestrictionValidator.validate :visibility, [:visible, :hidden, :very_hidden], v
end
+ # Requires that the value is one of :default, :circle, :dash, :diamond, :dot, :picture, :plus, :square, :star, :triangle, :x
+ def self.validate_marker_symbol(v)
+ RestrictionValidator.validate :marker_symbol, [:default, :circle, :dash, :diamond, :dot, :picture, :plus, :square, :star, :triangle, :x], v
+ end
end